Bug 266018 - CSS line clamp together with float not working correctly
Summary: CSS line clamp together with float not working correctly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: BrowserCompat, InRadar
Depends on: 266599
Blocks:
  Show dependency treegraph
 
Reported: 2023-12-07 14:37 PST by Christopher Adels
Modified: 2023-12-19 10:27 PST (History)
10 users (show)

See Also:


Attachments
rendering in safari, firefox, chrome (463.09 KB, image/png)
2023-12-07 20:52 PST, Karl Dubost
no flags Details
Test reduction (269 bytes, text/html)
2023-12-18 08:47 PST, zalan
no flags Details
[fast-cq]Patch (20.17 KB, patch)
2023-12-19 07:49 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Adels 2023-12-07 14:37:39 PST
In Safari 15 it was also wrong but better :D

this codepen works in safari 15 but not 17
https://codepen.io/Chrisstopher/pen/WNPPPZv

this codepen is a bit hacky but works in 17
https://codepen.io/Chrisstopher/pen/KKJJEPm

here is a codepen how it should work (see chrome) but it's not in safari 15 and 17
https://codepen.io/Chrisstopher/pen/LYqqaVq
Comment 1 Karl Dubost 2023-12-07 20:52:46 PST
Created attachment 468938 [details]
rendering in safari, firefox, chrome

I think there is a bug somewhere about line clamp and text-wrap.
Comment 2 Karl Dubost 2023-12-07 20:58:33 PST
There is also Bug 233770
Comment 3 Radar WebKit Bug Importer 2023-12-07 21:14:18 PST
<rdar://problem/119355692>
Comment 4 zalan 2023-12-18 08:47:23 PST
Created attachment 469110 [details]
Test reduction
Comment 5 zalan 2023-12-18 14:11:28 PST
bug 266599 tracks the longstanding missing content issue (https://codepen.io/Chrisstopher/pen/LYqqaVq) while this tracks the Safari 15 -> 17 regression.
Comment 6 zalan 2023-12-19 07:49:55 PST
Created attachment 469128 [details]
[fast-cq]Patch
Comment 7 EWS 2023-12-19 10:27:33 PST
Committed 272278@main (da42549d3773): <https://commits.webkit.org/272278@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 469128 [details].