Bug 252627 - Recognize CSSUnitType::CSS_X as a resolution calc unit category
Summary: Recognize CSSUnitType::CSS_X as a resolution calc unit category
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryan Reno
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-20 15:58 PST by Ryan Reno
Modified: 2023-02-22 09:22 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 Ryan Reno 2023-02-20 15:58:30 PST
An expression like "calc(1x * 2)" does not recognize the 1x as a resolution unit when resolving the calc unit category. It defaults to CalculationCategory::Other which causes the parser to fail parsing the expression in the calc function if it's expecting a Dimension result.
Comment 1 Radar WebKit Bug Importer 2023-02-20 15:59:08 PST
<rdar://problem/105700660>
Comment 2 Ryan Reno 2023-02-20 16:08:25 PST
Pull request: https://github.com/WebKit/WebKit/pull/10412
Comment 3 Ryan Reno 2023-02-21 12:02:37 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38624
Comment 4 EWS 2023-02-22 09:22:02 PST
Committed 260678@main (310f6772fe38): <https://commits.webkit.org/260678@main>

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