Skip to content

Commit 04dc814

Browse files
committed
Merge pull request #169 from nainar/issue2
add TokenStreamValue and VariableReferenceValue
2 parents f939401 + 687d72a commit 04dc814

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

css-typed-om/Overview.bs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,21 @@ The <dfn method for=StyleValue>parse(DOMString <var>property</var>, DOMString <v
5252
method attempts to parse <var>cssText</var> as a valid {{StyleValue}} or sequence&lt;{{StyleValue}}> for
5353
<var>property</var>, returning null on failure.
5454

55-
Issue(41): Need to add a section describing values that reference custom properties. Should StyleValue handle
56-
this or should it be a subclass?
55+
{{TokenStreamValue}} objects {#tokenstreamvalue-objects}
56+
----------------------------------------------
57+
58+
<pre class='idl'>
59+
interface TokenStreamValue : StyleValue {
60+
iterable<(DOMString or VariableReferenceValue)>;
61+
};
62+
63+
interface VariableReferenceValue {
64+
attribute string variable;
65+
attribute TokenStreamValue fallback;
66+
};
67+
</pre>
68+
69+
{{TokenStreamValue}} objects represent unsupported values and values that reference custom properties. They represent a list of string fragments and variable references.
5770

5871
The {{StylePropertyMap}} {#the-stylepropertymap}
5972
================================================

0 commit comments

Comments
 (0)