- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Jun 2024 14:05:28 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-overflow-4] compat work-around for line-clamp`, and agreed to the following: * `RESOLVED: -webkit-line-clamp with display: -webkit-box or -webkit-vertical-box establishes a BFC as described in the issue. Open new issue on timing of blockification (computed vs used)` * `RESOLVED: The previous resolution also applies to unprefixed line-clamp` * `ACTION Ian to open the above issue` <details><summary>The full IRC log of that discussion</summary> <fantasai> florian: same contxt as 10323<br> <fantasai> florian: We need to make some legacy compat workarounds due to -webkit-line-clamp<br> <fantasai> florian: it can't quite be exactly the same because -webkit-line-clamp doesn't apply to any block<br> <fantasai> florian: need to first use -webkit-box and something else<br> <andreubotella> -webkit-box-orient: vertical<br> <fantasai> florian: if you don't have these, the prefixed version is supposed to do nothing<br> <fantasai> florian: changing that is a compat problem<br> <fantasai> florian: the "how do we preserve that weirdness" question is answered differently in each<br> <fantasai> florian: the collapsed version assumes a single anonymous flex child and moves effect of line-clamping from flexbox to its child<br> <fantasai> florian: if it actually has multiple children, it applies to all<br> <fantasai> florian: Andreu's approach is better<br> <fantasai> florian: if applying both line-clamp and -webkit-box it becomes a BFC instead of a flexbox<br> <iank_> q+<br> <fantasai> florian: which is good for eventually getting rid of -webkit-box<br> <fantasai> florian: so I propose replacing the spec with Andreu's approach<br> <fantasai> andreubotella: this is what Blink was already doing<br> <fantasai> andreubotella: and I think it is also close to what FF is doing<br> <astearns> ack iank_<br> <fantasai> iank_: we switched our behavior 3-4 years ago<br> <fantasai> iank_: previously each of the items would get clamped individually, which is not at all what people want<br> <fantasai> iank_: so when we switched, we created a BFC and everyone was happy<br> <emilio> q+<br> <astearns> ack emilio<br> <fantasai> emilio: Fwiw, Firefox does the same<br> <fantasai> emilio: we also switched awhile ago<br> <fantasai> emilio: because people started relying on Blink's behavior, and it's better anyhow<br> <emilio> https://bugzilla.mozilla.org/show_bug.cgi?id=1786147 fwiw<br> <emilio> q+<br> <fantasai> PROPOSED: -webkit-line-clamp with display: -webkit-box or -webkit-vertical-box establishes a BFC as described in the issue<br> <fantasai> andreubotella: I want to confirm WebKit is OK with this<br> <fantasai> andreubotella: since it has some observable effects<br> <emeyer> fantasai: I'm pretty sure we'd like to get rid of all the weirdness<br> <fantasai> fantasai: and if FF and Blink are shipping, then we can have some confidence that it's compatible to implement<br> <fantasai> astearns: proposed to accept the proposal in the issue<br> <fantasai> emilio: When does this happen?<br> <fantasai> emilio: difference between FF and Blink<br> <fantasai> emilio: Blink will [missed]<br> <fantasai> emilio: and Firefox will [missed other]<br> <fantasai> florian: Whichever is easier?<br> <fantasai> emilio: I think it's easier at computed-value time<br> <fantasai> +1<br> <fantasai> emilio: difference is whether observable by getComputedStyle()<br> <florian> s/Firefox will [missed other]/Firefox will do it at computed value time<br> <fantasai> emilio: same way we blockify<br> <florian> s/Blink will [missed]/Blink will do it at used value time<br> <fantasai> fantasai: being consistent with blockification is better<br> <fantasai> iank_: I'd like to do a tiny bit of research into why we did it that way, so separate issue would be better<br> <fantasai> RESOLVED: -webkit-line-clamp with display: -webkit-box or -webkit-vertical-box establishes a BFC as described in the issue. Open new issue on timing of blockification (computed vs used)<br> <fantasai> florian: follow-up question<br> <emilio> https://searchfox.org/mozilla-central/rev/4582d908c17fbf7924f5699609fe4a12c28ddc4a/servo/components/style/style_adjuster.rs#154-183 is the code fwiw<br> <fantasai> florian: This blockficiation we just decided to do, do we only do it if you line-clamp through -webkit-line-clamp or only or for both?<br> <emeyer> fantasai: If someone set line-clamp on display: flex<br> <fantasai> iank_: no, only -webkit-box<br> <fantasai> iank_: I think that's fine<br> <emilio> +1<br> <fantasai> fantasai: ah ok<br> <iank_> `display: -webkit-box; -webkit-box-orient: vertical; line-clamp: 2`<br> <iank_> does above clamp or not<br> <fantasai> florian: ok, then let's have a supplementary resolution<br> <fantasai> RESOLVED: The previous resolution also applies to unprefixed line-clamp<br> <dbaron> ACTION Ian to open the above issue<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10324#issuecomment-2163099053 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 June 2024 14:05:29 UTC