@@ -56,10 +56,10 @@ Registering custom properties {#registering-custom-properties}
56
56
57
57
<pre class='idl'>
58
58
dictionary PropertyDescriptor {
59
- DOMString name;
60
- DOMString syntax;
61
- boolean inherits;
62
- DOMString initialValue;
59
+ required DOMString name;
60
+ DOMString syntax = '*' ;
61
+ boolean inherits = false ;
62
+ DOMString initialValue;
63
63
};
64
64
65
65
partial interface CSS {
@@ -85,7 +85,7 @@ following members:
85
85
:: True if this custom property should inherit down the DOM tree; False otherwise.
86
86
87
87
: <dfn dict-member for=PropertyDescriptor>initialValue</dfn>
88
- :: The initial value of this custom property.
88
+ :: The initial value of this custom property.
89
89
90
90
The {{registerProperty()}} function {#the-registerproperty-function}
91
91
--------------------------------------------------------------------
@@ -111,7 +111,10 @@ Note: in future levels we anticipate supporting more sophisticated parse strings
111
111
112
112
Attempting to call {{registerProperty()}} with an {{PropertyDescriptor/initialValue}} that is
113
113
not parseable using the provided {{PropertyDescriptor/syntax}} must cause it to
114
- throw a {{SyntaxError}} .
114
+ throw a {{SyntaxError}} . If no {{PropertyDescriptor/initialValue}} is provided and the
115
+ {{PropertyDescriptor/syntax}} is '*' , then a special initial value used. This initial
116
+ value must be considered parseable by {{registerProperty()}} but invalid at computed
117
+ value time.
115
118
116
119
When a custom property is registered with a given type, the process via which specified
117
120
values for that property are turned into computed values is defined
0 commit comments