Closed Bug 1842157 Opened 1 year ago Closed 1 year ago

[Inactive CSS] Report ignored properties on highlight pseudo-elements

Categories

(DevTools :: Inspector: Rules, task)

task

Tracking

(firefox117 fixed)

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

The highlight pseudo-elements ( ::selection, ::target-text, ::spelling-error, ::grammar-error, ::highlight) can only be styled by a limited set of properties that do not affect layout.

The following properties apply to the highlight pseudo-elements:

  • color
  • background-color
  • text-decoration and its associated properties (including text-underline-position and text-underline-offset)
  • text-shadow
  • stroke-color
  • fill-color
  • stroke-width

See https://drafts.csswg.org/css-pseudo-4/#highlight-styling

Blocks: 1840814
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/95aa7a055f1e [devtools] Handle highlight pseudo-elements ignored properties in inactive CSS. r=devtools-reviewers,fluent-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

There's a GitHub issue here to track the relnote addition: https://github.com/mdn/content/issues/28758

Regressions: 1863318
Regressions: 1904285
No longer regressions: 1863318
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: