Re: [csswg-drafts] [selectors-4] Allow * before a type selector (#8253)

`* div` (with a space after the `*`) could often be a decent alternative to `:is(div)`. If you knew the div is a child, then you could write `> div`. Otherwise if you knew it isn't a child, that means there is an intervening element, and `* div` would work. If you wanted to select all descendant divs, including children, then you'd need something else, like `:is(div)` or  `*|div`. 

That said, I'm still a fan of a bare `@` (with a space after it). We could say that if it is in the middle of a selector, like `main @ div`, that it is treated the same as a space, or that it has no effect on the surrounding simple selectors (that is, would mean same as `main div` in this example). Maybe that would help with the copy pasting. 

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


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

Received on Sunday, 25 December 2022 18:44:34 UTC