Open Bug 1927186 Opened 8 days ago Updated 7 days ago

transform: matrix() doesn't play well with CSS zoom (translation components not zoomed)

Categories

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

Firefox 131
defect

Tracking

()

People

(Reporter: xworld21, Unassigned)

References

Details

Attachments

(3 files)

Attached image firefox-svg-no-zoom.png

Steps to reproduce:

Apply the CSS zoom property to an inline SVG image. Small example https://codepen.io/xworld21/pen/poMpvxz, screenshots attached.

Actual results:

In the example, the stroke width does not scale unless it has been specified with the attribute stroke-width, and the foreign object is in the wrong position.

Expected results:

The zoom property should rescale the image consistently (the default stroke width should change, the foreign object should remain within the circles).

Attached image firefox-svg-zoom-x2.png

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: Untriaged → SVG
Product: Firefox → Core
Blocks: csszoom

The <foreignObject> thing isn't SVG-specific. We're not zooming the tx/ty values of transform matrices, which is a more general bug. The SVG stroke-width bit is bug 1887627 (affects all inherited lengths really).

Let's repurpose this bug for the transform issue.

Severity: -- → S3
Component: SVG → CSS Parsing and Computation
Priority: -- → P3
Summary: CSS zoom breaks inline SVG pictures (e.g. stroke width, transforms) → transform: matrix() doesn't play well with CSS zoom (translation components not zoomed)
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: