Bug 244286 - -webkit-line-clamp should not clamp each flex item individually
Summary: -webkit-line-clamp should not clamp each flex item individually
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://bug1786147.bmoattachments.org...
Keywords: BrowserCompat, InRadar
: 245459 (view as bug list)
Depends on:
Blocks: 233770
  Show dependency treegraph
 
Reported: 2022-08-23 22:58 PDT by Karl Dubost
Modified: 2024-02-29 01:46 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2022-08-23 22:58:09 PDT
Mozilla Test Case: https://bug1786147.bmoattachments.org/attachment.cgi?id=9290798

This is working on Blink, but fails in Gecko and WebKit.

Blink does something differently, see Emilio's comment on Mozilla Bugzilla
https://bugzilla.mozilla.org/show_bug.cgi?id=1786147#c3

> It seems Blink now special-cases "old flex box with line-clamp" and just creates a single block: 
> https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/layout_object.cc;l=356;drc=312b74e385e6aba98ab31fd911238c0dc16b396c

This was added in Blink with this commit.
https://github.com/chromium/chromium/commit/383112a


This creates webcompat issues
see https://github.com/webcompat/web-bugs/issues/109468
and https://github.com/webcompat/web-bugs/issues/107595

Emilio is in the process of creating a patch to match Chrome's behavior.

But I wonder if this should also be discussed on the spec side. 
It also probably needs a simplified test case.
Comment 1 Radar WebKit Bug Importer 2022-08-23 23:58:18 PDT
<rdar://problem/99070494>
Comment 2 Karl Dubost 2022-09-28 01:21:02 PDT
*** Bug 245459 has been marked as a duplicate of this bug. ***
Comment 3 Ahmad Saleem 2023-05-20 04:19:22 PDT
WebKit ToT (264288@main) & Safari Technology Preview 170 are matching with Chrome Canary 115 & Firefox Nightly 115.

Since all browsers are matching, I am marking this as "RESOLVED CONFIGURATION CHANGED", if it still exist, please reopen.
Comment 4 Woody Lee 2024-02-29 01:46:02 PST
Note: it was resolved at 263360@main in https://bugs.webkit.org/show_bug.cgi?id=255487