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

I think we need to consider other options than the wildcard for elements, classes,
Maybe even a functional notation. e.g. `:has-prefix(.foo-)`

I am concerned about a couple of things:
- searching for `*` is not easy, you have to already know the name in context (universal, wildcard) to be able to find more information.
- reading and understanding code becomes harder when the density of ascii symbols is greater
- people new to CSS will have a hard time learning the difference between this and the universal selector
- there are a lot of tools that assume that the order in a compound doesn't matter
- there are a lot of tools that assume that the universal selector must always be the first part in a compound

I think that having the absolute shortest notation for the selector isn't that critical here. If possible without too much friction I think we should pursue this.

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10001#issuecomment-1978136727 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:42:38 UTC