- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Jan 2022 17:25:50 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `conditionText setter interop`, and agreed to the following: * `RESOLVED: Make conditionText readonly` <details><summary>The full IRC log of that discussion</summary> <emilio> topic: conditionText setter interop<br> <emilio> github: https://github.com/w3c/csswg-drafts/issues/6819<br> <emilio> fantasai: there's a lot of failures when I was testing this. Firefox was the most correct on @media but fails on @supports. WebKit / Blink doesn't support either<br> <emilio> ... do we want to file impl bugs or call them readonly?<br> <emilio> q+<br> <emilio> TabAtkins: I know setting media attributes on link is useful<br> <emilio> ... and used by some tooling<br> <emilio> ... so I think it's useful to continue supporting it<br> <emilio> ... but I wouldn't shed too many tears if we call it readonly<br> <fantasai> emilio: I'd like to say that making conditionalText in the OM is different from what tooling does changing medi aof link<br> <fantasai> emilio: latter depends on ... stylesheets<br> <fantasai> TabAtkins: I was talking about toggling an @media rule<br> <fantasai> emilio: But not supported by WebKit and Blink<br> <fantasai> TabAtkins: Toggling *conditionText* isn't supported. But toggling mediaText *is*, though essentially a synonym<br> <fantasai> emilio: The media attribute on link or style element toggles the DOM attribute<br> <fantasai> TabAtkins: not talking about that<br> <fantasai> TabAtkins: talking about @media rule<br> <fantasai> emilio: ah, ok, that's weird<br> <fantasai> TabAtkins: Jonathan Neal has exploited that to toggle entire sets of rules before<br> <fantasai> Rossen_: So if we move to resolve on making this readonly<br> <fantasai> Rossen_: would there be any objections to it?<br> <fantasai> fantasai: I suspect in either case we need changes in implementations<br> <fantasai> fantasai: just a question of which way we want to go<br> <oriol> q+<br> <emilio> ack emilio<br> <Rossen_> q?<br> <fantasai> Rossen_: Forcing a normative change here would be encouraging something to change<br> <emilio> ScribeNick: emilio<br> <fantasai> fantasai: I have a PR adding tests, just haven't merged because opened this issue<br> <oriol> Reconnecting headset<br> <emilio> ack oriol<br> <emilio> oriol: conditionText seems analogous to selectorText for style rules and that's not read-only<br> <emilio> ... in the past it was not interoperable but it got fixed<br> <fantasai> emilio: Counter-example, we made layerName readonly<br> <fantasai> emilio: and generally leaning towards making OM readonly<br> <emilio> ... so counter-examples in both directions which is not a great state of affairs<br> <emilio> Rossen: So options are leave as-is and hoping tests cause browsers to change<br> <emilio> ... or resolve on making read-only<br> <emilio> ... should we do a straw-poll?<br> <emilio> TabAtkins: I'd prefer to make stuff consistently mutable<br> <bradk> +1 As is, but encourage browsers to change<br> <fantasai> s/mutable/mutable, given this is analogous to existing htings which are mutable/<br> <TabAtkins> emilio: Making @supports mutable would be a change<br> <TabAtkins> emilio: @media dynamically changes but @supports doesn't currently<br> <smfr> q+<br> <futhark> Existing issue for Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=1210073<br> <emilio> emilio: so that might be why Firefox doesn't support mutating it. In general readonly is going to be easier to get interop on<br> <emilio> ... but not super-strong feelings either way<br> <emilio> ack bradk<br> <emilio> bradk: I think it should be mutable<br> <emilio> ack smfr<br> <emilio> smfr: from an implementor perspective we'd like to CSSOM be more readonly, we don't have many incentives to fix these bugs<br> <TabAtkins> I suppose the fact that @media *does* have the .media mutable means it's okay for the .conditionText to be a readonly version that covers everyone<br> <bradk> A<br> <fantasai> 0<br> <emilio> strawpol: A - as-is, B - read-only<br> <oriol> A<br> <florian> 0<br> <emilio> B<br> <smfr> B<br> <TabAtkins> B<br> <futhark> B<br> <miriam> 0<br> <dholbert> 0<br> <jensimmons> B<br> <astearns> 0<br> <jfkthame> 0<br> <bradk> I don’t feel super strongly about it<br> <lea> Α<br> <delan> 0<br> <TYLin> A<br> <Morgan> 0<br> <rachelandrew> B<br> <tantek> B until there's a use-case described (didn't see it)<br> <Rossen_> B<br> <castastrophe> A<br> <chris> 0<br> <lea> Reasoning: Readonly puts undue burden on authors when they need to modify these rules to make things easier for implementors<br> <emilio> RESOLVED: Make conditionText readonly<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6819#issuecomment-1016695585 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 January 2022 17:25:52 UTC