Re: [csswg-drafts] [selectors-4] Add a :media pseudo-class, to match the set of elements matching the media pseudo-classes (#6237)

The CSS Working Group just discussed `[selectors-4] Add a :media pseudo-class, to match the set of elements matching the media pseudo-classes`, and agreed to the following:

* `RESOLVED: Close no change`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [selectors-4] Add a :media pseudo-class, to match the set of elements matching the media pseudo-classes<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/6237<br>
&lt;dael> TabAtkins: As of a week or two ago had 2 pseudo classes that applied ot media. playing and paused. mutually exclusive. All elements not playing are pause.<br>
&lt;dael> TabAtkins: We agreed on edits from hober adding additional media pseudoclasses to match additional states. I realized this property that you could always select on one pseudoclass no longer applied. Example: muted. Select all not muted you can't use Not muted b/c selects everything on page<br>
&lt;dael> TabAtkins: Suggestion to help authors with this which is pseudoclass to just select media elements<br>
&lt;dael> TabAtkins: A few obj in issue. leaverou_ pointed out requests in the past to select MQ as selector so it mixes into selectors and name for that would be media<br>
&lt;dael> TabAtkins: emilio pointed out we have audio and video and now that we have :is it's not hard to get the same effect as you had before is pseudoclass<br>
&lt;Rossen_> q?<br>
&lt;dael> TabAtkins: Both are reasonable. Don't know if enough to sink it. I still think might be valuable to do something in this relm. What do others think? Not sure which way to go<br>
&lt;hober> q+<br>
&lt;dael> florian: Question. When you use pause it only gives you paused media elements?<br>
&lt;dael> TabAtkins: Yeah. Every single media elements is either playing or paused. But b/c no non-muted psuedo class we no longer have that property<br>
&lt;dael> florian: And can't solve by adding opossite of those introduced<br>
&lt;dael> TabAtkins: Could. Feels weird to add explicitly negated version when we have pseudo class negation<br>
&lt;dael> florian: But not same meaning<br>
&lt;leaverou_> q+<br>
&lt;dael> TabAtkins: Yeah.<br>
&lt;emilio> q+<br>
&lt;Rossen_> ack hober<br>
&lt;dael> hober: I think TabAtkins is right it's a real problem. Sympathetic to emilio point that :is audio|video is enough. Worry it's not fufutre proof. If we add another media feature sites will not match the new ones<br>
&lt;dael> hober: Slightly prefer adding a new pseudoclass but could live with leaving it to :is<br>
&lt;dael> hober: Don't care for adding negated pseudoclasses for all the new ones. Explosed number in a way that feels distasteful, but it's an aesthetic preference<br>
&lt;dael> TabAtkins: I think at this point I'm okay going with emilio and if we introduce more media elements we can revisit this so we don't have to negotiate futureproofing with media pseudoclass<br>
&lt;dael> leaverou_: I wanted to ask if we have sufficient evidence that authors want to target all media elements in a way. Stylesheets trying to target non-muted media elements? Feel it would be all video or audio<br>
&lt;fantasai> +1 leaverou_<br>
&lt;dael> hober: One use case is in user stylesheet. Looking at a website, something obnoxious happening and I can't find it to make it stop<br>
&lt;bkardell_> exxtension too<br>
&lt;dael> Rossen_: Good use case.<br>
&lt;bkardell_> s/extension/it would be useful in extensions<br>
&lt;Rossen_> ack leaverou_<br>
&lt;Rossen_> ack emilio<br>
&lt;dael> emilio: Wanted to mention there is precident for explicit negation with readwrite and readonly. You could argue that for website authors having media pseudoclass...argument hober made makes sense but can flip. New media elements would have selectors that didn't match start matching. Can go both ways.<br>
&lt;dael> emilio: I don't care either way, but there is precedent for negation<br>
&lt;dael> TabAtkins: That precedent exists in same way as playing and paused. Explicit differnet states. If name is not-x is what feels weird<br>
&lt;dael> TabAtkins: Think we're reasonably agreeing to close no change and rely on :is<br>
&lt;fantasai> +1 to close no change for now<br>
&lt;dael> emilio: Sounds good<br>
&lt;leaverou_> +1 to close<br>
&lt;dael> Rossen_: When seeking will one apply? both? none?<br>
&lt;dael> TabAtkins: I think playing<br>
&lt;dael> hober: Buffering and stalled playing still matches. I don't remember if new spec text says for seeking. Might be good followup<br>
&lt;Rossen_> q?<br>
&lt;dael> TabAtkins: Yeah, could use clarification<br>
&lt;tantek> possibly related: we have pseudo-classes for partially loaded images right? (that are still loading)<br>
&lt;TabAtkins> OH wait lol, we just have a :seeking pseudoclass now<br>
&lt;dael> fantasai: On queue to agree with leaverou_ and emilio. Close no change. If we need clarification add resolution<br>
&lt;TabAtkins> So, uh, obviously that's the one that matches when you're seeking<br>
&lt;dael> hober: Clarification shouldn't be always one or the other for seeking. Can used seeker to search playing or paused. Need to say unlike buffering or stalled you might be playing or paused when seeking<br>
&lt;dael> Rossen_: Seek has no change to the last known state of playing or paused. Fair?<br>
&lt;dael> hober: I think so<br>
&lt;dael> Rossen_: Prop: Close no change<br>
&lt;dael> hober: Can we also add action to write clarification?<br>
&lt;dael> action hober add text for Seek has no change to the last known state of playing or paused<br>
&lt;dael> RESOLVED: Close no change<br>
</details>


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


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

Received on Wednesday, 28 April 2021 16:50:14 UTC