Open Bug 1828224 Opened 3 years ago Updated 2 years ago

Text in SVG shifts up-and-down when mouse is hovered over the interactive part of the SVG

Categories

(Core :: Graphics: WebRender, defect)

Firefox 102
defect

Tracking

()

Tracking Status
firefox-esr102 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- wontfix

People

(Reporter: thomas.smailus, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Open the SVG graphic in the browser, the mouse over the region indicated (in MouseZone-Example.PNG) - it is a js driven 'hotspot', which changes the visibility of an orange rectangle behind the part. Moving off and on that 'hotspot' will turn on and off the highlighted orange rectangle - which is done by changing the 'visibility' attribute of the group the rectangle is in. (section illustrated in MouseZone-ObjectWithVisabilityChanging.PNG )

Actual results:

As you move on/off the region and the highlighting turns on/off, the mere changing of the visibility of a rectangle, causes all of the text on the SVG to move slightly up and down, even though nothing in the text is modified.

The recomputation/rendering seems to be shifting/rounding error? the text - and only the text. Lines are not affected.

Expected results:

The text should NOT move at all; only the orange highlight should come on and off - nothing more. Chrome/Edge do not have this issue - only Firefox.

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

Can repro.
Regression Range:
Bug 1686654 - Track CompositorHitTestInfo accross blob groups. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D145358

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Regressed by: 1686654
Summary: text render → Text in SVG shifts up-and-down when mouse is hovered over the interactive part of the SVG

Set release status flags based on info from the regressing bug 1686654

:nical, since you are the author of the regressor, bug 1686654, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nical.bugzilla)
Component: SVG → Graphics: WebRender
Severity: -- → S3

This is caused by rendering differences when layerization of the blobs plays out differently because something in the middle is turned into an WR display item. Could be a snapping issue or some precision loss on some transform somewhere. The regressing patch made it so some images in SVGs are rendered with WR display items instead of blobs.

I won't have time to investigate this for a long while. In case anyone was waiting on me it's up for grabs.

Flags: needinfo?(nical.bugzilla)
Blocks: wr-snap
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: