Re: [csswg-drafts] [selectors-4] Rescope :has to static CSS rather than .querySelector (#3925)

The CSS Working Group just discussed `Rescope :has to static CSS rather than .querySelector`, and agreed to the following:

* `RESOLVED: Mark this as at risk and optional, remove profile`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Rescope :has to static CSS rather than .querySelector<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3925<br>
&lt;dael> fantasai: It was pointed out nobody impl :has not even in query selection. Spec should align with reality and not say you can use it. it is impl in Prince XML so maybe needs to stay in spec but scope to PDF renderers<br>
&lt;dael> florian: I think we discussed in the past and wanted to ban it from PDF engines as well b/c worry it would creep out of that narrow use case and we'd be stuck for compat reasons. Or something along those lines. Couldn't find minutes<br>
&lt;dael> fantasai: We did. And that's why it explicitly says shouldn't be used in CSS but reality is that's not what's happening<br>
&lt;dael> Rossen_: If this is reality than what fantasai suggested makes sense<br>
&lt;dael> Rossen_: Any additional comments or challenges to this?<br>
&lt;dael> florian: Okay changing .querySelector but not sure about PDF render<br>
&lt;dael> fantasai: Reused a definition about static not dynamic<br>
&lt;dael> florian: Does [list of things] count?<br>
&lt;bkardell_> q+<br>
&lt;dael> fantasai: Up to impl if it counts<br>
&lt;dael> Rossen_: It is impl specific<br>
&lt;dael> fantasai: If you don't like this division either we remove and people are non-conforment or we convince more people to impl. So what do you want to do?<br>
&lt;dael> florian: Since existing impl violates spec about if they should impl and if we put a feature in the spec saying this is a thing you may or may not want to impl sure. I don't know if static render definition makes a difference, but if browsers aren't worried about creeping out sure<br>
&lt;dael> dauwhe: Other instances of infections creeping out?<br>
&lt;dael> florian: Intentionally yes, accidentaly not sure<br>
&lt;dael> dauwhe: Seems low risk<br>
&lt;dael> fantasai: It's not we dont' want this in browsers, it's that no one has figured out how to do it in a performant way.<br>
&lt;dael> fantasai: If a browser figures out how to do it we'd be happy<br>
&lt;dael> florian: Keep in spec, remove profile distinction, mark at risk<br>
&lt;florian> q+<br>
&lt;dael> Rossen_: Have enough features not implemented, reducing that is a great goal. Lingering things in spec that's an idea that won't happen isn't good. There's history in github and repos that people could find. I'd move forward to drop now and if people want to make a case they will<br>
&lt;gregwhitworth> +1 to what Rossen_ said<br>
&lt;dael> bkardell_: Sorry, didn't have sound early in call. We added distinction between profiles b/c it could easily be impl in JS in theory. I think we hear people saying it doesn't add much, I disagree with that. Isn't the way the spec is written, I thought it was specifically because if a vendor wanted to experimentally impl in full profile that's okay. Is that not the case?<br>
&lt;dael> florian: Spec says browsersplease don't do this. We didn't want someone to ship while others didn't know how. If that was a good idea is sep. question, but spec says must not impl in CSS&lt; only JS.<br>
&lt;dael> florian: To Rossen_ point it's not just not going to happen, it's not going to happen prob in browsers, but it is happening in other vendors with the name. We put at risk, push to L5 if we go to rec<br>
&lt;dael> Rossen_: Should we then spec other features in JS library?<br>
&lt;dael> florian: It's a feature we specced rendered by a CSS. Just not a browser<br>
&lt;dael> bkardell_: It's in jQuery for same reason, because it was in CSS when it was rewritten<br>
&lt;dael> florian: Maybe we go to rec with 2 impl, jQuery and Prince. A bit of a stretch<br>
&lt;dael> florian: I feel bad removing it after it's impl in several places and freeing up the namespace doesn't sound nice.<br>
&lt;gregwhitworth> bkardell_: is that really the order of things, I thought jQuery had it prior to any spec text existing<br>
&lt;dael> fantasai: I think disingenuous to remove completely given there is an impl of something standardized. Seems like we only put things in spec if a browser impl but another non-browser impl isn't worthy. If this was webkit not Prince we wouldn't talk about drop<br>
&lt;dael> bkardell_: What if Webkit only did it for print stylsheets<br>
&lt;dael> fantasai: We be conforment to spec<br>
&lt;dael> bkardell_: I think florian just said it would violate current spec<br>
&lt;dael> florian: Yes b/c extra restriction<br>
&lt;dael> AmeliaBR: Question now is this whole idea of live vs snapshot profiles, is it impl anywhere? No one is impl things for .querySelector that's not for CSS. Only UA that does .has is as a css selctors. That part of spec needs reconsider, but what direct? .has is not in spec or drop the profile idea?<br>
&lt;dael> florian: I'd go with later and mark at-risk<br>
&lt;dael> fantasai: and optional<br>
&lt;dael> florian: I don't know what difference it makes but okay<br>
&lt;dael> fantasai: Means not required to conform<br>
&lt;dael> bkardell_: So Prince is in violation?<br>
&lt;dael> florian: Is now, but if we do this it wouldn't be<br>
&lt;dael> bkardell_: Can someone recap? Remove the profile notion and mark at risk and options?<br>
&lt;hober> fwiw i agree with rossen_, but i'm also okay with moving it from L4 to L5 as a compromise<br>
&lt;dael> fantasai: At risk makes it easier to remove later. It's a process thing. Optional means you can be conforment to module without doing this<br>
&lt;dael> AmeliaBR: It's separate module you can impl or not but it's tucked inside main selectors<br>
&lt;dael> fantasai: Yeah. When first did profiles there were many features, but now there's just this one<br>
&lt;dael> bkardell_: If someone impl for .querySelector only it's okay?<br>
&lt;dael> fantasai: Yes<br>
&lt;dael> bkardell_: And a print stylesheet or static processing engine that's okay?<br>
&lt;dael> fantasai: Yes<br>
&lt;dael> bkardell_: sgtm<br>
&lt;dael> Rossen_: Nearing consensus. Any other additional thoughts before we move this to L5 and mark at risk?<br>
&lt;dael> AmeliaBR: How is @supports selector supposed to work with selectors impl only in JS and not CSS. Separate issue.<br>
&lt;dael> florian: Another point. In past other proposed selectors such as focus-inside that were initially rejected by bodies because we have :has. We can rebuff with saying browsers don't do it. Can now with intent to impl<br>
&lt;dael> bkardell_: Begs the question of lots of documented use cases of possible withins that are solved by this. 100 withins is not wonderful thing<br>
&lt;dael> fantasai: I think we should tackle that in separate issue<br>
&lt;dael> fantasai: There's various approaches we can take<br>
&lt;bkardell_> also sgtm to tackle in another issue<br>
&lt;dael> Rossen_: Agree. Objections to resolve by move this to L5 and mark at risk and optional<br>
&lt;bkardell_> +1 to leave in l4<br>
&lt;dael> fantasai: Leave in L4. It is impl. This isn't even CR yet. We're not trying to trim to 2 implementations yet.<br>
&lt;dael> florian: At risk is enough.<br>
&lt;dael> Rossen_: That's fine. Mark this as at risk and optional<br>
&lt;dael> RESOLVED: Mark this as at risk and optional, remove profile<br>
</details>


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

Received on Wednesday, 15 May 2019 16:21:19 UTC