Closed
Bug 1999997
Opened 4 months ago
Closed 3 months ago
Allow to add rule for pseudo element nodes
Categories
(DevTools :: Inspector, enhancement, P3)
DevTools
Inspector
Tracking
(firefox147 fixed)
RESOLVED
FIXED
147 Branch
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We disable the add rule button if the selected element is a anonymous node https://searchfox.org/firefox-main/rev/4fd0fa7e5814c0b51f1dd075821988377bc56cc1/devtools/client/inspector/rules/rules.js#770-771,774-775
refreshAddRuleButtonState() {
const shouldBeDisabled =
...
this.inspector.selection.isAnonymousNode();
this.addRuleButton.disabled = shouldBeDisabled;
this means that you can't add a rule for ::before or ::view-transition nodes
we should allow it
| Assignee | ||
Comment 1•4 months ago
|
||
In addNewRule, we retrieve the binding element and pseudo from the passed node,
and if it is a pseudo element, we append the pseudo element type at the end of
the selector.
Tests are updated to check the new behavior.
Updated•4 months ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Updated•4 months ago
|
Priority: -- → P3
Pushed by nchevobbe@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ac33ad716c68
https://hg.mozilla.org/integration/autoland/rev/ab12ae338ab0
[devtools] Allow to add rule on pseudo elements. r=devtools-reviewers,jdescottes.
Comment 3•3 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox147:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Comment 4•3 months ago
|
||
This should be mentioned together with the feature of bug 1998704 in the Firefox 147 dev release notes.
Sebastian
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in
before you can comment on or make changes to this bug.
Description
•