Auto merge of #29813 - stshine:overflow-bfc, r=mrobinson

layout_2020: Check blocks for whether they will establish a formatting context

<!-- Please describe your changes on the following line: -->
According to spec
https://drafts.csswg.org/css-overflow-3/#overflow-control, If the computed value of overflow on a block box is neither visible nor clip nor a combination thereof, it establishes an independent formatting context for its contents.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] There are tests for these changes OR

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2023-05-31 18:24:38 +02:00 committed by GitHub
commit 6fa314de2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 31 additions and 25 deletions

View file

@ -1,2 +0,0 @@
[margin-collapse-009.xht]
expected: FAIL

View file

@ -1,3 +0,0 @@
[containing-block-percent-margin-bottom.html]
[#container 1]
expected: FAIL

View file

@ -1,3 +0,0 @@
[containing-block-percent-margin-top.html]
[#container 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-collapse-through-percentage-height-block.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[negative-margin-shrinking-container-size-002.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flexbox-definite-sizes-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flexbox-definite-sizes-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_fbfc2.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_item-clear.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[outline-005.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[outline-023.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[block_formatting_context_margin_collapse_a.html]
expected: FAIL