Skip to content

Commit ec02741

Browse files
committed
[css-properties-values-api] registerProperty() doesn't CSS-parse the property name string, just takes it literally and verifies it's a custom property name, like Typed OM does.
1 parent 7434eda commit ec02741

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

css-properties-values-api/Overview.bs

+1-3
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,7 @@ as arguments of the same names.
629629
<a>associated <code>Document</code></a>'s
630630
{{[[registeredPropertySet]]}} slot.
631631

632-
2. Attempt to parse |name|
633-
as a <<custom-property-name>>.
634-
If this fails,
632+
2. If |name| is not a [=custom property name string=],
635633
<a>throw</a> a {{SyntaxError}}
636634
and exit this algorithm.
637635

0 commit comments

Comments
 (0)