Re: [csswg-drafts] [css-conditional-4] @supports elements queries (#7023)

```html
<foo style="color: red">Red</foo>
```

The above markup renders `Red` with the red color in most (all?) browsers, even when `foo` is not declared as an HTML custom element (web component). I think it would be hard to validate an element type in CSS, which can also apply in XML documents, for exemple. 

Also, because `element()` *allows an author to use an element in the document as an image*, it would be confusing to get different behaviors (feature query and image source) in `@supports` and eg. `background-image`.

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


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

Received on Tuesday, 8 February 2022 08:05:54 UTC