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)

enhancement

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
Product: Firefox → DevTools
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>
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.