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
Add type checking to CSSNumericValue.parse
Fixes #1064
  • Loading branch information
xiaochengh authored Jan 27, 2022
commit 1bfa1b3ea6fad95509cbeb4fb5d40b1be0678bca
7 changes: 6 additions & 1 deletion css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,13 @@ rather than on {{CSSNumericValue}} instances.
or a [=math function=],
[=throw=] a {{SyntaxError}}
and abort this algorithm.

3. If |result| is a <<dimension-token>>
and [=creating a type=] from |result|'s unit returns failure,
[=throw=] a {{SyntaxError}}
and abort this algorithm.

3. [=Reify a numeric value=] |result|,
4. [=Reify a numeric value=] |result|,
and return the result.
</div>

Expand Down