Closed Bug 1840872 Opened 1 year ago Closed 1 year ago

Show ::highlight pseudo element in "Pseudo-elements" section

Categories

(DevTools :: Inspector: Rules, enhancement)

enhancement

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(3 files)

This doesn't work for now because we don't get the actual highlight rule (see Bug 1840870)

Something to be aware of: we need a special case for overridden properties, as you might have the same property set for different highlighter id.

Looks like we might already have something in place for that (e.g. setting a color on both ::before/::after does not result in overridden properties)

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Attachment #9345723 - Attachment description: Bug 1840872 - [devtools] Show ::highlight pseudo element in rules view. r=#devtools-reviewers. → Bug 1840872 - [devtools] Show `::highlight` pseudo element in rules view. r=#devtools-reviewers.
Depends on: 1847753

This will be used by DevTools to retrieve the name of registered, active, highlights,
in order to display the CSS rules for the ::highlight pseudo element rules.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e45bf4fabe57 Add InspectorUtils.getRegisteredCssHighlights method. r=jjaschke. https://hg.mozilla.org/integration/autoland/rev/bfa55e7d709b [devtools] Show `::highlight` pseudo element in rules view. r=devtools-reviewers,ochameau. https://hg.mozilla.org/integration/autoland/rev/035f5b772455 apply code formatting via Lando
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: