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

@xiaochengh, like I said [there](https://github.com/w3c/csswg-drafts/issues/9350#issuecomment-1968337154), it’s mostly a syntax choice (disregarding benefits for JS). 

To really improve the icon use case, you’d probably want something like this instead:

~~~~ css
.iconname {
  --icon: src(concat("icons.svg#", selector(classname)));
}
~~~~

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


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

Received on Saturday, 2 March 2024 20:56:08 UTC