-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-syntax-3
Description
In consume a declaration, it is currently consumed as a (unrestricted) list of component values.
But in the current version of Chrome and FF (at least), it seems to be consumed as a <declaration-value>:
<style>
style {
color: var(--color) url(bad url);
color: var(--color) );
color: var(--color) !;
}
</style>
<script>
document.styleSheets[0].cssRules[0].cssText; // style {}
</script>I could not say whether CSS2 also considered these declarations as invalid.
CSS Syntax 3 is less restrictive, which can change the declared value:
<p style="color: green; color: var(--opacity) url(bad url);">
black per spec,
otherwise green
</p>Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-syntax-3