Open Bug 1740930 Opened 4 years ago Updated 3 years ago

Scaling of embedded svg elements position subelements incorrectly

Categories

(Core :: SVG, defect)

defect

Tracking

()

People

(Reporter: Magnus.Raunio, Unassigned)

Details

Steps to reproduce:

I ran the following code snippet in Firefox:

<svg width="800" height="15000">
<g transform="matrix(0,-5000,1,0,20,0)">
<rect fill="blue" height="20" width="1" x="-1.01"/>
<svg height="20" width="1" x="-1.01">
<rect fill="red" height="20" width="1" x="0" y="0"/>
</svg>
</g>
</svg>

Working example: https://jsfiddle.net/op68uLgz/1/

Actual results:

The red rect does not cover the blue rect in my example, instead the red rect is rendered slightly below the blue rect.

Expected results:

The red rect should have covered the blue rect, since both have the same final transform applied to them.

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

Component: Untriaged → Layout
Product: Firefox → Core

The severity field is not set for this bug.
:jwatt, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jwatt)
Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Layout → SVG
Ever confirmed: true
Flags: needinfo?(jwatt)
Version: Firefox 94 → Trunk
You need to log in before you can comment on or make changes to this bug.