Intent to Prototype: CSS Custom Highlight Universal Selector ::highlight(*)

19 views
Skip to first unread message

Chromestatus

unread,
8:34 PM (1 hour ago) 8:34 PM
to blin...@chromium.org, mr...@igalia.com, sche...@chromium.org, seo...@chromium.org
Contact emails
seo...@chromium.org

Explainer
No information provided

Specification
https://github.com/w3c/csswg-drafts/pull/14301

Summary
Introduces a universal selector for custom highlights, ::highlight(*), which matches the highlight pseudo-elements of all custom highlights regardless of their name. The * argument contributes zero specificity, so its declarations act as a base style that rules naming a specific highlight override through the cascade.

Blink component
Blink>CSS

Web Feature ID
Missing feature

Motivation
Styling shared properties across custom highlights requires repeating the same declarations for every registered name. The CSSWG resolved to allow ::highlight(*).

Initial public proposal
https://github.com/w3c/csswg-drafts/issues/9091

Search tags
Custom Highlight

Goals for experimentation
None

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/408003366

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5174965228929024?gate=5116735337398272

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages