RESOLVED DUPLICATE of bug 280063 281744
floating elements break out of container
https://bugs.webkit.org/show_bug.cgi?id=281744
Summary floating elements break out of container
Johannes Odland
Reported 2024-10-18 05:36:54 PDT
Created attachment 472983 [details] Screenshot of issue in Safari 18.0.1 Minimal testcase: https://johannesodland.github.io/browserbugs/2024/safari-float-issue.html In a container with elements that are floated to the left, if one element is pulled outside the container, the remaining floated elements stack to the right. This breaks legacy grid containers.
Attachments
Screenshot of issue in Safari 18.0.1 (289.87 KB, image/png)
2024-10-18 05:36 PDT, Johannes Odland
no flags
Screenshot of expected rendering (Chrome) (498.95 KB, image/png)
2024-10-18 05:37 PDT, Johannes Odland
no flags
Screenshot of issue in Safari TP Release 205 (Safari 18.0, WebKit 19621.1.2.111.4) (296.45 KB, image/png)
2024-10-18 12:25 PDT, Johannes Odland
no flags
Screengrab of article from 2015 that now fails (2.84 MB, image/png)
2024-10-19 03:17 PDT, Johannes Odland
no flags
Johannes Odland
Comment 1 2024-10-18 05:37:24 PDT
Created attachment 472984 [details] Screenshot of expected rendering (Chrome)
Radar WebKit Bug Importer
Comment 2 2024-10-18 10:57:19 PDT
Ahmad Saleem
Comment 3 2024-10-18 12:12:51 PDT
@Johannes - can you try with Safari Technology Preview, it seems that it is already fixed. Appreciate if you can confirm. Thanks!
Johannes Odland
Comment 4 2024-10-18 12:25:18 PDT
Created attachment 472988 [details] Screenshot of issue in Safari TP Release 205 (Safari 18.0, WebKit 19621.1.2.111.4) @Ahmad I did check in Safari TP before filing. Release 205 (Safari 18.0, WebKit 19621.1.2.111.4) I can reproduce the issue there as well, see the attached screenshot.
Ahmad Saleem
Comment 5 2024-10-18 12:26:39 PDT
(In reply to Johannes Odland from comment #4) > Created attachment 472988 [details] > Screenshot of issue in Safari TP Release 205 (Safari 18.0, WebKit > 19621.1.2.111.4) > > @Ahmad I did check in Safari TP before filing. > Release 205 (Safari 18.0, WebKit 19621.1.2.111.4) > > I can reproduce the issue there as well, see the attached screenshot. Can you share steps on how you are reproducing it? Plus also your machine details? Whether it is on macOS Sequoia, Sonoma or Ventura?
Johannes Odland
Comment 6 2024-10-18 12:30:41 PDT
Steps is: 1. open https://johannesodland.github.io/browserbugs/2024/safari-float-issue.html Expected result is as in Chrome and Firefox Actual result is as in the provided screenshot form Safari / Safari TP. I am still on Sonoma.
Ahmad Saleem
Comment 7 2024-10-18 12:33:14 PDT
(In reply to Johannes Odland from comment #6) > Steps is: > 1. open > https://johannesodland.github.io/browserbugs/2024/safari-float-issue.html > > Expected result is as in Chrome and Firefox > Actual result is as in the provided screenshot form Safari / Safari TP. > > I am still on Sonoma. Thanks for sharing details, I am able to reproduce it with Ventura as well.
Johannes Odland
Comment 8 2024-10-19 02:01:18 PDT
Any chance this can be prioritized? It is a regression that easily breaks float-based grids, something many sites still rely on.
Ahmad Saleem
Comment 9 2024-10-19 02:40:26 PDT
(In reply to Johannes Odland from comment #8) > Any chance this can be prioritized? > > It is a regression that easily breaks float-based grids, something many > sites still rely on. Please share any or few live web sites broken with the following bug, it would definitely help in understanding the impact.
Johannes Odland
Comment 10 2024-10-19 03:17:21 PDT
Created attachment 472995 [details] Screengrab of article from 2015 that now fails I know this bug breaks the feature article template in the public service broadcaster in Norway where I work. 10+ years of articles partly fail and render sideways: https://www.nrk.no/dokumentar/xl/_-fantasy-leserne-kommer-til-a-redde-verden-1.12622225
Ahmad Saleem
Comment 11 2024-10-19 03:22:33 PDT
(In reply to Johannes Odland from comment #10) > Created attachment 472995 [details] > Screengrab of article from 2015 that now fails > > I know this bug breaks the feature article template in the public service > broadcaster in Norway where I work. > > 10+ years of articles partly fail and render sideways: > > https://www.nrk.no/dokumentar/xl/_-fantasy-leserne-kommer-til-a-redde-verden- > 1.12622225 Thanks! It helps.
Johannes Odland
Comment 12 2024-10-23 22:50:19 PDT
Any chance this will be looked at in the near future? The only fix we've found so far is to clear the element that triggers the bug. It's unsightly, but it's not as bad as the text floating out to the right.
alan
Comment 13 2024-10-24 06:15:32 PDT
Hi, this looks to be progressed at https://commits.webkit.org/284247@main on trunk. I verified it both with the test case (thank you for taking the time to create one!) and the original article at https://www.nrk.no. Both pages look correct in Safari with 284247@main.
alan
Comment 14 2024-10-24 06:15:57 PDT
*** This bug has been marked as a duplicate of bug 280063 ***
Note You need to log in before you can comment on or make changes to this bug.