SVG not zoomed correctly with css zoom property
Categories
(Core :: SVG, defect)
Tracking
()
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.
Comment 1•1 year ago
|
||
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.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Just a note, the one that this ticket "duplicates from" describes <path> while there may be more tags affected (eg. <circle> is too).
Unfortunately, the "Depends on" ticket (https://bugzilla.mozilla.org/show_bug.cgi?id=1903361) did not fix the problem.
It changed the behavior a bit but did not fix it.
Circle with path:
https://codepen.io/nezriffic/pen/eYaorgo
(screenshot: https://www.evernote.com/shard/s402/sh/1c2bf211-56cb-41ad-8944-9578062ec31d/N5897QR3lBeiRKaw4Vzw39XyRqO0h1ImflSsfx6WLwmlhWzXA9879oqwSA)
Circle only:
https://codepen.io/nezriffic/pen/Rwmmwzr
(screenshot: https://www.evernote.com/shard/s402/sh/d9912c36-ea88-4a28-9d34-a741fd23dacb/sCdEe7woH6nqht1eJfCgYiofjOxaRnb7eg-AuU-pnMNOFS4VpiPMC77KoA)
Circle only screenshot (previous link is broken for some reason):
https://www.evernote.com/shard/s402/sh/d9912c36-ea88-4a28-9d34-a741fd23dacb/k1BpTz6CaFSR6S3KtmPGXB7FADlb6dqWURs3gIO9R4GI-wWAFL_05W4UNw
Comment hidden (obsolete) |
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 7•1 year ago
|
||
Assignee | ||
Comment 8•1 year ago
|
||
![]() |
||
Comment 11•1 year ago
|
||
bugherder |
Comment hidden (obsolete) |
Comment 14•1 year ago
|
||
Let's track that in bug 1906261.
Description
•