Closed Bug 1980858 Opened 3 months ago Closed 2 months ago

Support `::before::marker` and `::after::marker` in devtools inspector

Categories

(DevTools :: Inspector, enhancement)

enhancement

Tracking

(firefox143 verified)

VERIFIED FIXED
143 Branch
Tracking Status
firefox143 --- verified

People

(Reporter: Oriol, Assigned: nchevobbe)

References

Details

(Keywords: dev-doc-needed)

Attachments

(5 files)

Attached image Chrome screenshot

Bug 1980215 added support for ::before::marker and ::after::marker.

I think these should be exposed in devtools, just like Chrome.

Testcase: https://wpt.live/css/css-lists/nested-marker-styling.html

Attached image Firefox screenshot
Depends on: 1980215

Thanks for filing this, Oriol!

Support for this is actually consists of two parts:

  1. The Rules View should show those rules.
  2. The Node View within the Inspector itself should show the ::marker pseudo-elements as children of the ::before and :after rules. Selecting them, should only show the the rules in the Rules View that apply to the ::marker pseudo-elements.

I think, the first point is a must-have to be able to see and manipulate those rules while the second point is a should-have.

Sebastian

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

The test does additional check than when it was first added, so change its name to make it more broad.

Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8476a2083fc2 https://hg.mozilla.org/integration/autoland/rev/770fc1a97e1b [devtools] Show (::before|::after)::marker child. r=devtools-reviewers,jdescottes. https://github.com/mozilla-firefox/firefox/commit/4b03f3a12d3d https://hg.mozilla.org/integration/autoland/rev/39f2c5a52d50 [devtools] Rename browser_markup_pseudo_on_reload.js into browser_markup_pseudo.js. r=devtools-reviewers,jdescottes. https://github.com/mozilla-firefox/firefox/commit/83692d2c07e9 https://hg.mozilla.org/integration/autoland/rev/3cd4db7d272b [devtools] Display (::before|::after)::marker rules. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch

Verified that that it's working as expected in Nightly 143.0a1 (2025-08-08).

Sebastian

Status: RESOLVED → VERIFIED

Thank you, for the quick fix, Nicolas!

Marking this as dev-doc-needed, as it should be mentioned in the release notes for 143 on MDN. It might also be added to the general release notes, though it's an edge case.

Sebastian

Keywords: dev-doc-needed
Depends on: 1987773
Blocks: 1987773
No longer depends on: 1987773
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: