Closed Bug 1905023 Opened 1 year ago Closed 1 year ago

SVG not zoomed correctly with css zoom property

Categories

(Core :: SVG, defect)

Firefox 127
ARM64
macOS
defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: nezriffic, Assigned: longsonr)

References

Details

Attachments

(2 files, 1 obsolete file)

Steps to reproduce:

When using css zoom property, SVGs are not zoomed/scaled correctly.
(SVG tag itself is zoomed - gets correct dimensions - while its contents like paths, shapes etc. are not)

Code that shows what is wrong:
https://codepen.io/nezriffic/pen/eYaorgo

Firefox version: 127.0.2

Actual results:

SVG contents (inside the <svg> tag) are not zoomed correctly (SVG breaks)

Expected results:

Whole SVG should be zoomed/scaled correctly.

OS: Unspecified → macOS
Hardware: Unspecified → ARM64
Component: Untriaged → General

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → SVG
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1903361
Resolution: --- → DUPLICATE
Status: RESOLVED → UNCONFIRMED
No longer duplicate of bug: 1903361
Resolution: DUPLICATE → ---
Depends on: 1903361

Just a note, the one that this ticket "duplicates from" describes <path> while there may be more tags affected (eg. <circle> is too).

Attachment #9410093 - Attachment is obsolete: true
Assignee: nobody → longsonr
Flags: needinfo?(emilio)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2fbabd45d745 viewBox values need to be adjusted in the presence of CSS zoom r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46985 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Upstream PR merged by moz-wptsync-bot

Let's track that in bug 1906261.

No longer regressions: 1916111
See Also: → 1916111
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: