Bug 248547 - StylePropertyMap.set() should wrap value in a calc() if outside the allowed range
Summary: StylePropertyMap.set() should wrap value in a calc() if outside the allowed r...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks: 175733
  Show dependency treegraph
 
Reported: 2022-11-30 12:12 PST by Chris Dumez
Modified: 2022-12-07 09:23 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2022-11-30 12:12:43 PST
StylePropertyMap.set() should wrap value in a calc() if outside the allowed range, instead of throwing.
This is the behavior expected by WPT tests and it matches what Blink is doing, though I cannot find a reference to this in the specification.
Comment 1 Chris Dumez 2022-11-30 12:18:20 PST
Pull request: https://github.com/WebKit/WebKit/pull/6982
Comment 2 EWS 2022-12-07 09:22:30 PST
Committed 257485@main (2a77eefbdefd): <https://commits.webkit.org/257485@main>

Reviewed commits have been landed. Closing PR #6982 and removing active labels.