[Webkit-unassigned] [Bug 244286] New: -webkit-line-clamp should not clamp each flex item individually

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 22:58:09 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244286

            Bug ID: 244286
           Summary: -webkit-line-clamp should not clamp each flex item
                    individually
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
               URL: https://bug1786147.bmoattachments.org/attachment.cgi?i
                    d=9290798
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: karlcow at apple.com
                CC: webkit-bug-importer at group.apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220824/6ca570e1/attachment-0001.htm>


More information about the webkit-unassigned mailing list