Skip to content

Commit 76a155c

Browse files
committed
[css-conditional-3] Add note clarifying that !important is not part of property grammar. w3c#5692
1 parent c4f3a5f commit 76a155c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css-conditional-3/Overview.bs

+4
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,10 @@ partial namespace CSS {
660660
Note: No CSS escape or whitespace processing is performed on the property name,
661661
so <code>CSS.supports(" width", "5px")</code> will return <code>false</code>,
662662
as " width" isn't the name of any property due to the leading space.
663+
664+
Note: ''!important'' flags are not part of property grammars,
665+
and will cause |value| to parse as invalid,
666+
just as they would in the value argument to ''element.style.setProperty()''.
663667
</div>
664668

665669
<dt><code>supports(CSSOMString conditionText)</code>, returns <code>boolean</code>

0 commit comments

Comments
 (0)