Skip to content
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
14 changes: 13 additions & 1 deletion css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ probably in an appendix.
and a [=string=] or {{CSSStyleValue}} |value|:

: If |value| is a {{CSSStyleValue}},
:: If |value| does not match the grammar of a [=list-valued property iteration=] of |property|,
:: If |value| does not [=match a CSS production|match the grammar=] of a [=list-valued property iteration=] of |property|,
[=throw=] a {{TypeError}} and exit this algorithm.
Otherwise, return the |value|.

Expand All @@ -366,6 +366,18 @@ probably in an appendix.
Note: This can throw a {{TypeError}} instead.
</div>

<div algorithm>
A {{CSSStyleValue}} is said to <dfn>match a CSS production</dfn>
based on the following rules:

* A {{CSSKeywordValue}} always matches <<ident>>.
* A {{CSSTransformValue}} always matches <<transform>>.
* A {{CSSPositionValue}} always matches <<position>>.
* A {{CSSNumericValue}} matches what its type [=CSSNumericValue/matches=].
* A {{CSSURLImageValue}} always matches <<url>>.
* Any subclass of {{CSSImageValue}} always matches <<image>>.
</div>

<div algorithm>
The <dfn method for="StylePropertyMapReadOnly, StylePropertyMap">get(|property|)</dfn> method,
when called on a {{StylePropertyMap}} |this|,
Expand Down