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)
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)
(deleted),
image/svg+xml
|
Details |
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
Reporter | ||
Updated•10 years ago
|
Summary: ViewBox and Foreign Object → Foreignobjects are displayed over other SVG elements even if those are defined later.
Reporter | ||
Updated•10 years ago
|
OS: Mac OS X → All
Reporter | ||
Comment 1•10 years ago
|
||
I found a workaround by giving transform="translate(0,0)" to the foreign object.
Updated•10 years ago
|
Component: Untriaged → SVG
Product: Firefox → Core
Comment 2•8 years ago
|
||
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
status-firefox55:
--- → affected
status-firefox-esr45:
--- → affected
status-firefox-esr52:
--- → affected
Ever confirmed: true
Keywords: regression
Version: 36 Branch → 17 Branch
Updated•8 years ago
|
Whiteboard: [parity-Chrome][parity-Edge]
Updated•8 years ago
|
Comment 4•7 years ago
|
||
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome,
parity-edge
Whiteboard: [parity-Chrome][parity-Edge]
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Attachment #9070345 -
Attachment mime type: text/plain → image/svg+xml
Updated•5 years ago
|
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.
Description
•