Closed
Bug 1449953
Opened 7 years ago
Closed 6 years ago
Decide where ::before should be displayed under a host element
Categories
(DevTools :: Inspector, enhancement, P3)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: jdescottes, Unassigned)
References
(Blocks 1 open bug)
Details
Follow up to Bug 1053898.
If a host element has after/before pseudos and an attached shadow root, should it be displayed as :
host
before
shadowroot
direct-children
after
or (as done in Bug 1053898)
host
shadowroot
before
direct-children
after
Updated•6 years ago
|
Product: Firefox → DevTools
Reporter | ||
Comment 1•6 years ago
|
||
Here is a test page for this issue: https://juliandescottes.github.io/webcomponents-playground/pseudo-under-host-element/
Reporter | ||
Comment 2•6 years ago
|
||
Actually I think the only alternative that would make sense would be to display pseudo-elements around the shadowroot, rather than around the "direct children". When you consider what is rendered, those elements are really before and after the shadowDOM.
So I would say, either we keep the current approach (consistent with Chrome's current implementation)
<host-component>
#shadow-root
::before
<div child1>
...
<div childN>
::after
or we do:
<host-component>
::before
#shadow-root
::after
<div child1>
...
<div childN>
Reporter | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
We are sticking to what Chrome is doing for now. Might reconsiderate if we receive feedback about this.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•