Re: [csswg-drafts] [selectors] New class prefix selector to facilitate utility classes (`.prefix-*`?) (#10001)

Note: the parsing issue with `[foo*="bar"]` being ambiguous is resolved by just not allowing the wildcard syntax to test values. That is, `[foo*]` is fine, but `[foo* = "bar"]` is invalid, and `[foo*="bar"]` is the existing `*=` operator.

It's not clear what testing against a value would even *mean* - any of them ahve that value? All of them? I don't think either of these actually have a use-case. You use this test to tell if an element *has* an attribute in a given family, identical to the class or element name cases, so you can treat it a certain way; the *value* of the attribute is irrelevant.

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


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

Received on Wednesday, 29 July 2026 21:48:08 UTC