| Summary: | clear:right on a left floating element breaks layout | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Johannes Odland <johannes.odland> | ||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||||
| Severity: | Major | CC: | ahmad.saleem792, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 17 | ||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||
| OS: | macOS 13 | ||||||||
| Attachments: |
|
||||||||
|
Description
Johannes Odland
2023-10-02 04:04:51 PDT
Created attachment 468020 [details]
Test-result in Chrome
WebKit ToT (268726@main) seems to match Chrome Canary 119. But is it web compatible? This change is breaking layouts that have been working interoperable across browsers for a decade. Also, according to float definition in CSS 2.2: https://drafts.csswg.org/css2/#float-rules > 2. If the current box is left-floating, and there are any left-floating boxes generated by elements earlier in the source document, then for each such earlier box, either the left outer edge of the current box must be to the right of the right outer edge of the earlier box, or its top must be lower than the bottom of the earlier box. Analogous rules hold for right-floating boxes. It can’t be positioned to the right of the previous box and should therefore be below, matching the behavior of Safari <= 16.x? (In reply to Johannes Odland from comment #3) > But is it web compatible? > > This change is breaking layouts that have been working interoperable across > browsers for a decade. > > Also, according to float definition in CSS 2.2: > https://drafts.csswg.org/css2/#float-rules > > > 2. If the current box is left-floating, and there are any left-floating boxes generated by elements earlier in the source document, then for each such earlier box, either the left outer edge of the current box must be to the right of the right outer edge of the earlier box, or its top must be lower than the bottom of the earlier box. Analogous rules hold for right-floating boxes. > > It can’t be positioned to the right of the previous box and should therefore > be below, matching the behavior of Safari <= 16.x? What I am trying to suggest that the bug has been fixed on 'top of tree' or in latest WebKit builds and I tested it on build as of 268726@main on macOS Sonoma using Minibrowser. (In reply to Ahmad Saleem from comment #4) > What I am trying to suggest that the bug has been fixed on 'top of tree' or > in latest WebKit builds and I tested it on build as of 268726@main on macOS > Sonoma using Minibrowser. I'm sorry, I misread. It indeed seems to be fixed in latest STP. Since it is fixed. Changing status rather than tracking. Appreciate if someone can triage and add reference commit details, when it got fixed. |