Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.23k stars 686 forks source link

Avoid float collision with box establishing formatting context #2260

Closed liZe closed 1 month ago

liZe commented 1 month ago

Related to #2019.

This problem is not over yet: these boxes don’t collide, but they’re put after the float. That’s not what the spec wants:

If necessary, implementations should clear the said element by placing it below any preceding floats, but may place it adjacent to such floats if there is sufficient space.