Bug 255487

Summary: -webkit-line-clamp results overlap blocks even if overflow: hidden, when mixing <span> and <div>.
Product: WebKit Reporter: Ethan Wong <bunnnywong>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, karlcow, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 16   
Hardware: All   
OS: macOS 13   
Attachments:
Description Flags
Case 1 to reproduce this issue.
none
Screenshot of Case 1 in Safari 16.3, macOS 13.2.1
none
Screenshot of Case 1 in Safari 16.4, macOS 13.3
none
Case 2 to reproduce this issue.
none
Case 2 in Chrome 112 none

Description Ethan Wong 2023-04-15 10:31:42 PDT
Created attachment 465927 [details]
Case 1 to reproduce this issue.

-webkit-line-clamp results overlap blocks even if overflow: hidden, when mixing <span> hand <div>.
Comment 1 Ethan Wong 2023-04-15 10:32:43 PDT
Created attachment 465928 [details]
Screenshot of Case 1 in Safari 16.3, macOS 13.2.1
Comment 2 Ethan Wong 2023-04-15 10:33:10 PDT
Created attachment 465929 [details]
Screenshot of Case 1 in Safari 16.4, macOS 13.3
Comment 3 Ethan Wong 2023-04-15 10:33:38 PDT
Created attachment 465930 [details]
Case 2 to reproduce this issue.
Comment 4 Ethan Wong 2023-04-15 10:34:26 PDT
Created attachment 465931 [details]
Case 2 in Chrome 112
Comment 5 Ethan Wong 2023-04-15 10:40:41 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12772
Comment 6 Radar WebKit Bug Importer 2023-04-16 18:04:44 PDT
<rdar://problem/108116069>
Comment 7 EWS 2023-04-18 10:11:42 PDT
Committed 263079@main (71f363c22510): <https://commits.webkit.org/263079@main>

Reviewed commits have been landed. Closing PR #12772 and removing active labels.
Comment 8 EWS 2023-04-25 03:20:49 PDT
Committed 263360@main (59088ba85057): <https://commits.webkit.org/263360@main>

Reviewed commits have been landed. Closing PR #12973 and removing active labels.
Comment 9 Ahmad Saleem 2023-04-25 08:52:37 PDT
*** Bug 255728 has been marked as a duplicate of this bug. ***