Skip to content

Commit 3059811

Browse files
committed
[css-typed-om] Ensure unsupported values are represented as CSSStyleValues rather than CSSTokenStreamValues.
(w3c#181)
1 parent fcb5864 commit 3059811

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

css-typed-om/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ interface CSSStyleValue {
6666
};
6767
</pre>
6868

69-
{{CSSStyleValue}} objects are the base class of all CSS Values accessible via the Typed OM API.
69+
{{CSSStyleValue}} objects are the base class of all CSS Values accessible via the Typed OM API. Unsupported values
70+
are also represented as {{CSSStyleValue}} objects.
7071

7172
The <dfn attribute for=CSSStyleValue>cssText</dfn> attribute provides a normalized
7273
representation (see <a section href="#stylevalue-normalization"></a>) of the value
@@ -90,7 +91,7 @@ interface CSSVariableReferenceValue {
9091
};
9192
</pre>
9293

93-
{{CSSTokenStreamValue}} objects represent unsupported values and values that reference custom properties. They represent a list of string fragments and variable references.
94+
{{CSSTokenStreamValue}} objects represent values that reference custom properties. They represent a list of string fragments and variable references.
9495

9596
The {{StylePropertyMap}} {#the-stylepropertymap}
9697
================================================
@@ -1041,14 +1042,14 @@ procedure defined by each of the CSSStyleValue subclasses listed for that proper
10411042
turn, falling back to the next subclass in the list if the current one
10421043
fails to normalize.
10431044

1044-
If all listed subclasses fail, then the value is normalized as a
1045-
{{CSSTokenStreamValue}}.
1045+
If all listed subclasses fail, then the value is normalized as a raw
1046+
{{CSSStyleValue}}, with the <a attribute for=CSSStyleValue>cssText</a> attribute
1047+
set to the input value.
10461048

10471049
{{CSSTokenStreamValue}} normalization {#tokenstreamvalue-normalization}
10481050
-----------------------------------------------------------------------
10491051

1050-
Values which contain custom property references, as well as values
1051-
for unsupported CSS properties, are tokenized then split into runs of
1052+
Values which contain custom property references are tokenized then split into runs of
10521053
tokens separated by custom property references.
10531054

10541055
The token runs are serialized, while each custom property reference

0 commit comments

Comments
 (0)