Skip to content

Source

CSS Working Group, nacrti

1 item

The working group's editor's drafts. This is where a resolution becomes spec text, and it is the primary source for what a feature actually says — as opposed to what a summary of the resolution says.

drafts.csswg.org

The prefix selector, a hyphen followed by an asterisk, set between two oversized curly braces.
Webmedium signal

A class prefix selector is now spec text in Selectors Level 5

The draft of August 18 adds section 2.1, Class Prefix Selectors, defining .foo-* to match any class beginning with that prefix. It replaces the attribute-selector workarounds every design system carries. Nothing implements it yet, and the matching rule has an edge that will catch people: .foo-* does not match foo--bar.

CSS Working Groupverified