Skip to content

Commit 580f755

Browse files
cdoublevsvgeesus
authored andcommitted
[css-conditional-3] supports() must return false for invalid custom property value
1 parent dcd8236 commit 580f755

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

css-conditional-3/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,10 @@ partial namespace CSS {
901901

902902
1. If |property| is an [=ASCII case-insensitive=] match
903903
for any defined CSS property that the UA supports,
904+
or is a [=custom property name string=],
904905
and |value| successfully [=CSS/parses=] according to that property's grammar,
905906
return <code>true</code>.
906-
2. Otherwise, if |property| is a [=custom property name string=],
907-
return <code>true</code>.
908-
3. Otherwise, return <code>false</code>.
907+
2. Otherwise, return <code>false</code>.
909908

910909
Note: No CSS escape or whitespace processing is performed on the property name,
911910
so <code>CSS.supports(" width", "5px")</code> will return <code>false</code>,

0 commit comments

Comments
 (0)