Bug 301219

Summary: [Style] Apply zoom to lengths within calc expressions
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: CSSAssignee: Sammy Gill <sgill26>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sammy Gill
Reported 2025-10-21 14:12:58 PDT
Currently we treat calc expressions in a very similar manner to percentages with respect to zoom. However, when evaluating the value at use time we need to apply the used zoom to any length values inside the calc. For example, width: calc(50% + 100px) should have the used zoom applied to the 100px
Attachments
Radar WebKit Bug Importer
Comment 1 2025-10-21 14:13:10 PDT
Sammy Gill
Comment 2 2025-10-21 15:59:56 PDT
EWS
Comment 3 2025-10-22 13:38:24 PDT
Committed 301968@main (761924a05023): <https://commits.webkit.org/301968@main> Reviewed commits have been landed. Closing PR #52752 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.