Re: [csswg-drafts] [selectors] What is the reasoning for ignoring defaullt namespaces only on the subject for :is() / :where() / :not()? (#5684)

BTW, this is implemented buggy in WebKit:

```html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<style>
/*<![CDATA[*/
@namespace url("http://example.com/foo");
@namespace svg url("http://www.w3.org/2000/svg");
svg|svg { background: cyan }
svg|svg:is(:hover, :focus) { background: green }
/*]]>*/
</style> 
<svg tabindex="-1" id="svg" width="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"></svg>
</html>
```

The default namespace prevents `:hover` from matching, but `:focus` can match. It's the opposite for `:is(:focus, :hover)`.

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


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

Received on Wednesday, 17 January 2024 17:43:46 UTC