Re: [csswg-drafts] [selectors] New selector to facilitate utility classes (`[name~^=value]`? `.prefix-*`?) (#10001)

In terms of syntax, I just had a discussion with @fantasai about how we actually need to be able to target prefixes across several types of selectors, not just classes:

- element selectors, as WC libraries often define multiple elements whose tag names share the same prefix
- attribute presence, for the same reason 

Therefore, I think using a wildcard, despite its unfortunate similarity with the universal selector, is the way to go here.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10001#issuecomment-1978105500 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 5 March 2024 07:19:04 UTC