incorrect inactive CSS on pseudo element when CSS rules has selectors with multiple pseudo element
Categories
(DevTools :: Inspector: Rules, defect, P3)
Tracking
(firefox149 fixed)
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: ochameau)
References
(Blocks 3 open bugs, )
Details
Attachments
(1 file)
Steps to reproduce
- Navigate to
data:text/html,<meta charset=utf8><style>h1::before, h1::after { position: absolute; content: "-"; top: 0; }</style><h1>Hello - Open the inspector
- Expand the
<h1>node - Select the
::beforenode - Select the
::afternode
Expected results
The top: 0 declaration is never inactive
Actual results
The top: 0 declaration is declared inactive when selecting the ::before node
Updated•4 months ago
|
| Reporter | ||
Updated•4 months ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Simplifying the logic of pseudo element in the backend fix that "for free".
| Assignee | ||
Comment 2•1 month ago
|
||
When selecting a pseudo elements, the rules for it aren't
considered as pseudo elements rules.
We currently have a workaround to nullify pseudoElement on the
appliedstyle object.
But we could simplify the logic here to stop involving a binding element
and pseudo element string when fetching rules for the selected pseudo
element.
Pseudo element rules should only be about rules for pseudo elements
which are children of the currently selected element.
i.e. the logic at the end of #getAllElementRules, after skipPseudo.
Updated•1 month ago
|
Comment 4•29 days ago
|
||
| bugherder | ||
Updated•24 days ago
|
Description
•