Skip to content

Commit 47269f7

Browse files
committed
[css-conditional-3] Revert text about CSS.supports(prop,val) checking the grammar of registered custom properties, so we can support @Property.
1 parent 82bab8c commit 47269f7

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

css-conditional-3/Overview.bs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -627,23 +627,13 @@ partial namespace CSS {
627627
for any defined CSS property that the UA supports,
628628
and |value| successfully [=CSS/parses=] according to that property's grammar,
629629
return <code>true</code>.
630-
2. Otherwise, if |property| is an exact match for the property name of any item
631-
in the document's {{[[registeredPropertySet]]}} slot,
632-
and the syntax of that item is not "*":
633-
634-
1. If |value| successfully [=CSS/parses=] according to the syntax of that item,
635-
return <code>true</code>.
636-
2. Otherwise, return <code>false</code>.
637-
3. Otherwise, if |property| is a [=custom property name string=],
630+
2. Otherwise, if |property| is a [=custom property name string=],
638631
return <code>true</code>.
639-
4. Otherwise, return <code>false</code>.
632+
3. Otherwise, return <code>false</code>.
640633

641634
Note: No CSS escape or whitespace processing is performed on the property name,
642635
so <code>CSS.supports(" width", "5px")</code> will return <code>false</code>,
643636
as " width" isn't the name of any property due to the leading space.
644-
645-
Note: This version of the method will verify the grammar of registered custom properties,
646-
but the other version will not.
647637
</div>
648638

649639
When the {{supports(conditionText)}} method is invoked

0 commit comments

Comments
 (0)