Re: [csswg-drafts] [mediaqueries-5] active vs inactive window states (#5828)

The CSS Working Group just discussed `[mediaqueries-5] active vs inactive window states`, and agreed to the following:

* `RESOLVED: Add window-focus: active | none, bikeshed later`

<details><summary>The full IRC log of that discussion</summary>
&lt;Frances> fantasai: We have ::selection vs ::inactive-selection, wedecided to have a separate media query. What should it be called?<br>
&lt;Frances> Tab: Windows state vs active and inactive for the values<br>
&lt;Frances> Florian: Is there a tab to not focus on multiple windows?<br>
&lt;Frances> Tab: Javascript doesn't expose additional states<br>
&lt;fantasai> window-focus: active | none<br>
&lt;fantasai> window-focus: active | inactove<br>
&lt;Frances> fantasai: Could have an alias for inactive, do not need none on top of it.<br>
&lt;Frances> Florian: Could do something else<br>
&lt;kbabbitt> Wondering which value would take effect in print media<br>
&lt;Frances> Rossen: In overloaded, it could be confusing on the actual focus inside of a window for accessibility.<br>
&lt;schenney> We already support ::selection:window-inactive and ::selection:window-active in Blink<br>
&lt;fantasai> kbabbitt, good question. I'd say active<br>
&lt;schenney> I would drop those if we have a media query.<br>
&lt;fantasai> yes<br>
&lt;Frances> Kevin: Which value would take in affect when considering such as none or active, in a default-ish state?<br>
&lt;Frances> Florian: Need to have a contraster.<br>
&lt;Frances> fantasai: Is it a view focus or a viewport focus? Or an iframe?<br>
&lt;TabAtkins> In JS, the state is exposed via "blur" and "focus" events on window<br>
&lt;Frances> Florian: It is in javascript, let's not be different in javascript.<br>
&lt;Frances> Rossen: Any additional thoughts? No objections<br>
&lt;fantasai> RESOLVED: Add window-focus: active | none, bikeshed later<br>
&lt;Frances> PROPOSAL: Add window-focus: active or none matching behavior of javascript in imprint behavior and matching<br>
</details>


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


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

Received on Thursday, 8 February 2024 00:39:12 UTC