- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Feb 2024 00:55:03 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-ui] Clarify scope of implementation-defined behavior for native appearance (and primitive appearance)`, and agreed to the following: * `RESOLVED: Disregarding CSS properties on widgets with native appearance must not affect computed values (unless required for Web-compat)` <details><summary>The full IRC log of that discussion</summary> <fantasai> emilio: Seems like Webkit, but not Gecko, change the computed value of some CSS properties based on `appearance`, including `display`<br> <fantasai> emilio: Seems like the spec has language about disregarding some CSS properties, which is true<br> <fantasai> emilio: Gecko does that at used-value time<br> <fantasai> emilio: and don't do it much anymore<br> <fantasai> emilio: but we need to define whether `appearance` changes values at computed or used value tie<br> <fantasai> s/tie/time<br> <fantasai> florian: Part of the idea here is that if you're in native appearance mode, the way you're rendered might not be describable by CSS at all<br> <fantasai> florian: to the extent it does, it might be nice to hint at how<br> <fantasai> florian: but this was an allowance for not being describable by CSS<br> <fantasai> emilio: so it seems like it shouldn't affect computed values<br> <fantasai> florian: that makes sense to me<br> <fantasai> emilio: WebKit is forcing `display: grid` on <input switch> which doesn't seem great to me, especially since other form controls don't do that<br> <fantasai> iank_: That seems not great to me<br> <fantasai> iank_: We do this as part of final step in computation, and only for border-padding on checkbox/radio and one more small thing<br> <emilio> https://github.com/w3c/csswg-drafts/issues/3257<br> <fantasai> emilio: the other one I'm ware of is line-height: normal on select<br> <fantasai> emilio: and that sucks<br> <fantasai> emilio: so given everything else doesn't touch computed values, can we agree on not doign this at computed value time when possible?<br> <fantasai> emilio: and in the future? except for existing compat?<br> <fantasai> florian: Situation is, if I'm understnading correctly, in order not mess with native appearance ...<br> <fantasai> emilio: if effective appearance is not none, then for legacy reasons you need to disregard author-set border and padding<br> <fantasai> emilio: Gecko does it at used-value time, and Blink does it at used value-time<br> <fantasai> iank_: We'll go through creating computed style, then look at appearance, see that it's not none, and then force-reset the border, as if it as 'border: none !important'.<br> <fantasai> florian: I would agree that should be done at used-value time<br> <fantasai> florian: whether you fix the value by [...] then you shouldn't be able to tell the difference<br> <fantasai> iank_: how do you do it at used-value time?<br> <fantasai> emilio: when we are laying out, we override the border<br> <fantasai> emilio: [various things] are not great<br> <fantasai> florian: I would agree with used value, and don't expose in the OM<br> <fantasai> florian: the further we can go in that direction the better<br> <fantasai> iank_: In general, I would prefer if we didn't rely on this mechanism more<br> <fantasai> s/this/this computed-value-changing/<br> <fantasai> emilio: especially as more features rely on dependencies on properties, this will only cause more confusion and weird behavior<br> <fantasai> florian: Proposed that disregarding CSS properties when widgets have their native appearance must not change the computed value<br> <fantasai> iank_: Going forward<br> <dbaron> iank_: we might have a compat issue for checkboxes/radios<br> <fantasai> florian: would prefer to avoid making used values visible also, but can live with it for compat<br> <fantasai> iank_: It can be visible through used values<br> <fantasai> florian: shaded-wavy-border-style is not visible through OM, but 2px thickness is, ideally we don't expose either<br> <fantasai> iank_: changing the internals to grid will change how baselines are calculated, and that's observable<br> <fantasai> iank_: so these things are observable at used time<br> <fantasai> emilio: but shouldn't be observed at computed value time<br> <fantasai> iank_: would prefer if only going forward<br> <fantasai> fantasai: how about "unless required by Web-compat"<br> <fantasai> iank_: ok<br> <fantasai> Rossen_: any objections?<br> <fantasai> RESOLVED: Disregarding CSS properties on widgets with native appearance must not affect computed values (unless required for Web-compat)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9919#issuecomment-1942922756 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 February 2024 00:55:06 UTC