Skip to content

add TokenStreamValue and VariableReferenceValue #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,21 @@ The <dfn method for=StyleValue>parse(DOMString <var>property</var>, DOMString <v
method attempts to parse <var>cssText</var> as a valid {{StyleValue}} or sequence&lt;{{StyleValue}}> for
<var>property</var>, returning null on failure.

Issue(41): Need to add a section describing values that reference custom properties. Should StyleValue handle
this or should it be a subclass?
{{TokenStreamValue}} objects {#tokenstreamvalue-objects}
----------------------------------------------

<pre class='idl'>
interface TokenStreamValue : StyleValue {
iterable<(DOMString or VariableReferenceValue)>;
};

interface VariableReferenceValue {
attribute string variable;
attribute TokenStreamValue fallback;
};
</pre>

{{TokenStreamValue}} objects represent unsupported values and values that reference custom properties. They represent a list of string fragments and variable references.

The {{StylePropertyMap}} {#the-stylepropertymap}
================================================
Expand Down