Re: [csswg-drafts] [selectors] Add `:open` or `:top-layer` pseudo class (#7319)

The CSS Working Group just discussed `:open or :top-layer pseudo`, and agreed to the following:

* `RESOLVED: Accept :open and :closed with definitions as proposed by TabAtkins`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: :open or :top-layer pseudo<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/7319#issuecomment-1242377579<br>
&lt;fantasai> TabAtkins: We've talked about this topic before, last time we did the name :open seemed to be prefered<br>
&lt;fantasai> TabAtkins: we wanted a strict definition before resolving<br>
&lt;fantasai> TabAtkins: so I drafted one, see comment<br>
&lt;fantasai> TabAtkins: [reads comment]<br>
&lt;fantasai> TabAtkins: secondary question, do we want a :closed pseudo-element<br>
&lt;fantasai> TabAtkins: because :not(:open) selects all elements not just openable<br>
&lt;fantasai> TabAtkins: First question is, should we resolve to add :open with this definition?<br>
&lt;tantek> SGTM and +1 to :closed<br>
&lt;masonf> q?<br>
&lt;flackr> +1 to both<br>
&lt;fantasai> TabAtkins: second, do we want to add :closed<br>
&lt;fantasai> +1 to both<br>
&lt;Rossen_> q?<br>
&lt;masonf> +1 to both<br>
&lt;fantasai> Rossen_: +1 to both<br>
&lt;fantasai> TabAtkins: There's also a comment from annevk about asking ":shown", and masonf replied that it would be less confusing to use :open<br>
&lt;masonf> q+<br>
&lt;PaulG> +1 to both<br>
&lt;ydaniv> how will :closed match differently from :not(:open)?<br>
&lt;fantasai> TabAtkins: I agree with masonf's comment<br>
&lt;tantek> agreed, open/closed sound more semantic than shown/hidden. also "hidden" already has a different meaning in CSS<br>
&lt;flackr> +1<br>
&lt;fantasai> [see https://github.com/w3c/csswg-drafts/issues/7319#issuecomment-1274745594 ]<br>
&lt;fantasai> plinss: [something JavaScript]<br>
&lt;fantasai> TabAtkins: Only elements that have a notion of open and closed can match :closed<br>
&lt;fantasai> TabAtkins: similar to :playing :paused, can only match elements that have that notion<br>
&lt;fantasai> Rossen_: anything else?<br>
&lt;plinss> s/[something JavaScript]/:open also matches the .open property<br>
&lt;fantasai> Rossen_: objections?<br>
&lt;fantasai> RESOLVED: Accept :open and :closed with definitions as proposed by TabAtkins<br>
</details>


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


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

Received on Wednesday, 12 October 2022 16:55:31 UTC