Synopsis:
When an element forming a block formatting context (eg <div overflow:hidden>
) is sized next to floats, Edge only takes into account the available width at the location where the block is inserted. If its height makes it so that it intersects with a later float that is wider than the one it was sized against, the block cannot fit and is pushed after that wider float (left behavior).
Chrome and Firefox will restart the layout with a smaller width as many times as necessary* to make it avoid all floats, even if those floats come up only later in the flow (right behavior).
Chrome and Firefox however disagree on the placement of resulting element:
Chrome and Firefox also have different limits on how many times it is okay to restart (*):
Call to action:
We would like to resolve on a precise algorithm here, and get everyone onboard to implement that algorithm. It would be nice if other browser vendors could take a look at how this works in their browser, and whether they are aware of any problem with their current implementation.
About the same issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=548033
Bugs 15673277 and 107363 if you work at Microsoft
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4