Closed Bug 1141098 Opened 10 years ago Closed 5 years ago

Foreignobjects are displayed over other SVG elements even if those are defined later.

Categories

(Core :: SVG, defect)

17 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr45 --- wontfix
firefox-esr52 --- wontfix
firefox55 --- fix-optional

People

(Reporter: charles.bourasseau, Unassigned)

References

Details

(Keywords: parity-chrome, parity-edge, regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36 Steps to reproduce: I open a SVG with a foreignobject (first position) and another svg shape (like a rect, at second position). Both should be inside a SVG containing an viewBox attribute at the same position. Here is my example code: <svg viewBox="0 0 100 100" height="100" width="100" xmlns="http://www.w3.org/2000/svg"> <g> <foreignObject width="59" height="30" x="10" y="10"> <p xmlns="http://www.w3.org/1999/xhtml" style="font-size: 10pt;padding: 0px; margin: 0px;"> <span xmlns="http://www.w3.org/1999/xhtml" style="background-color: red;">Foreign<br xmlns="http://www.w3.org/1999/xhtml"/>Object</span> </p> </foreignObject> <svg x="20" y="20"> <rect x="0" y="0" width="24" height="24" rx="4" ry="4" style="" /> </svg> <svg x="30" y="30"> <rect x="0" y="0" width="24" height="24" rx="4" ry="4" style="" fill="green" /> </svg> </g> </svg> Actual results: The Foreignobject is display over the rect. Expected results: The rect should be displayed over the foreignobject
Summary: ViewBox and Foreign Object → Foreignobjects are displayed over other SVG elements even if those are defined later.
OS: Mac OS X → All
I found a workaround by giving transform="translate(0,0)" to the foreign object.
Component: Untriaged → SVG
Product: Firefox → Core
Regression window: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=a799b5bff84c&tochange=b077c43a4306 Regressed by: b077c43a4306 Jonathan Watt — Bug 776054 - Flip the prefs to enable the use of display lists for SVG painting and hit-testing. r=roc.
Blocks: 776054
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
Version: 36 Branch → 17 Branch
Whiteboard: [parity-Chrome][parity-Edge]
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Whiteboard: [parity-Chrome][parity-Edge]
Attached image reporters testcase (deleted) —
Attachment #9070345 - Attachment mime type: text/plain → image/svg+xml
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: