RESOLVED FIXED321939
[EvaluationTimeZoom] px values in calc() expressions that survive through computed style are being serialized incorrectly
https://bugs.webkit.org/show_bug.cgi?id=321939
Summary [EvaluationTimeZoom] px values in calc() expressions that survive through com...
Sam Weinig
Reported 2026-08-17 09:07:59 PDT
Created attachment 481080 [details] Test case px values in calc() expressions that survive through computed style are being unzoomed incorrectly. This used to be necessary, when computed values were zoomed, but with evaluation time zoom this is incorrect. For example, given ``` <div id=foo style="zoom: 2; text-indent: calc(10% + 10px);"></div> ``` the following script: ``` window.getComputedStyle(document.getElementById("foo")).textIndent; ``` should print `calc(10% + 10px)` but instead prints `calc(10% + 5px)` (the px term is being incorrectly unscaled by the zoom).
Attachments
Test case (471 bytes, text/html)
2026-08-17 09:07 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2026-08-17 09:22:37 PDT
EWS
Comment 2 2026-08-17 16:49:04 PDT
Committed 319320@main (17e6d00a1924): <https://commits.webkit.org/319320@main> Reviewed commits have been landed. Closing PR #71779 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-08-17 16:50:13 PDT
Note You need to log in before you can comment on or make changes to this bug.