Closed Bug 1901196 Opened 1 year ago Closed 1 year ago

font-size returns zoomed values in getComputedStyle.

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

This is because how #[derive(ToResolvedValue)] generally works for non-generic types.

Test-case:

<!doctype html>
<div id='target' style="font-size: 10px; width: 100px; zoom: 3.5;">a</div>
<script>
  console.log('target computed font-size: ' + getComputedStyle(target)['font-size']);
  console.log('target computed width: ' + getComputedStyle(target)['width']);
</script>
Blocks: csszoom

Deriving To* generally assumes that if the type is not generic you can
just clone. This doesn't hold for FontSize.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b9c463c892ca Fix resolved value of font-size. r=firefox-style-system-reviewers,zrhoffman
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46719 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: