Closed
Bug 1143417
Opened 10 years ago
Closed 10 years ago
HTML element is not treated as root inside foreignObject
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: christoph.burgmer, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150305021524
Steps to reproduce:
1. Styled the HTML tag inside an SVG's foreignObject via the `:root` selector.
2. Used a negative z-index on a child element inside a foreignObject
Actual results:
1. Styling is not applied to the HTML element but to the SVG container
2. Child element is hidden behind the background of the HTML element if exists.
Expected results:
1. `:root` should match the HTML element and not the SVG container
2. The HTML element should receive an automatic stacking context as described in http://www.w3.org/TR/CSS2/visuren.html#propdef-z-index so that the stacking algorithm is applied correctly.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
The manifestations can be seen separately but I believe they stem from the same underlying issue, hence this unified bug report. The issue filed under https://bugzilla.mozilla.org/show_bug.cgi?id=1143405 might also be connected to the one here.
Comment 3•10 years ago
|
||
the :root pseudo matches the document root i.e. the outermost element. foreignObject does not create a root.
Comment 4•10 years ago
|
||
If you still think issue 2 is valid please raise it as a separate issue.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•