Place replaced and non-auto inline size independent FCs next to floats (#29977)

* Place replaced and non-auto inline size independent FCs next to floats

The CSS2 specification says that replaced content and independent
formatting contexts should be placed next to floats. This change adds
support for that, but punts on support for independent formatting
contexts that have an auto inline size. With an auto inline size, we
which requires a much more complex layout algorithm.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>

* Fix issue with where last band was taken into account for inline size

* adjustment_from_floats should prevent margin collapse

* Properly handle elements with 0 height

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2023-07-18 20:43:45 +02:00 committed by GitHub
parent 64adc98e64
commit ae3f33b9d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 421 additions and 131 deletions

View file

@ -1,2 +0,0 @@
[floats-039.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-bfc-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-bfc-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-wrap-top-below-bfc-002r.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-wrap-top-below-bfc-003r.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[new-fc-beside-adjoining-float-2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[new-fc-beside-float-with-margin.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[zero-space-between-floats-001.html]
[#container 1]
expected: FAIL

View file

@ -1,3 +0,0 @@
[zero-space-between-floats-002.html]
[#container 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[block-formatting-contexts-015.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-paint-ordering-001.xhtml]
expected: FAIL