Skip to content

Serialize out of range values as calcs #647

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

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 3 additions & 1 deletion css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ probably in an appendix.
: If |value| is a {{CSSStyleValue}},
:: 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|.
If the |property| only allows certain values, and is passed a {{CSSUnitValue}} |value| that is outside that range,
wrap |value| in a {{CSSMathSum}}, with only one entry in |values|, so that it serializes to 'calc(' + |value| + ')'.
Return the |value|.

: If |value| is a {{DOMString}},
:: [=Parse a CSSStyleValue=] with property |property|, cssText |value|, and parseMultiple set to `false`,
Expand Down