Re: [csswg-drafts] [selectors-4] :defined (#2258)

The CSS Working Group just discussed `:defined`, and agreed to the following:

* `RESOLVED: Add :defined to selectors L4`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: :defined<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2258<br>
&lt;dael> fantasai: HTML defines :defined pseudo class in its spec, in general we define in selectors and HTML refines. So should :defined be defined in selectors?<br>
&lt;dael> fantasai: Matches all elements that had no problem during constructions<br>
&lt;dael> Rossen: Any reason why it shouldn't be defined in selectors?<br>
&lt;dael> fantasai: Very HTML specific currently. That's the only reason I can think of<br>
&lt;dael> Rossen: Not crazy about the name, it's a little too generic<br>
&lt;dael> florian: Would fail to match on custom elements not defined properly and any element whose semantics are unknown to browser?<br>
&lt;dael> fantasai: Don't know<br>
&lt;dael> florian: Reading example that seems to be the case. If using on a not known element it won't match.<br>
&lt;dael> florian: Does make it non-HTML specific even if use cases are HTML specific<br>
&lt;dael> florian: Seems like we should do this, but also study more<br>
&lt;dael> fantasai: It's impl afaict<br>
&lt;dael> Rossen: Impl in blink?<br>
&lt;dael> fantasai: Not registering as invalid in test case.<br>
&lt;dael> emilio: Impl in blink, gecko, and webkit<br>
&lt;fantasai> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Ahtml%3Adefined%2C%20foo%3Adefined%20%7B%20border%3A%20solid%20green%3B%20%7D%0A%3C%2Fstyle%3E%0A%3Cfoo%3EThis%20is%20a%20test%3C%2Ffoo%3E<br>
&lt;tantek> are there tests for this?<br>
&lt;dael> Rossen: If this has impl in various UA and since it's a selector makes sense as part of selectors unless we're against it in the way it's defined. We should accept it and refine<br>
&lt;dael> florian: Sounds good<br>
&lt;dael> Rossen: Other comments or Objections to adding :defined to selectors L4?<br>
&lt;dael> RESOLVED: Add :defined to selectors L4<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2258#issuecomment-440756225 using your GitHub account

Received on Wednesday, 21 November 2018 17:52:23 UTC