Auto merge of #29803 - stshine:no-margins, r=Loirooriol

layout_2020: Only count for content size for height of non-replaced inline elements

<!-- Please describe your changes on the following line: -->

Accorinding to https://drafts.csswg.org/css2/#inline-non-replaced, The vertical padding, border and margin of an inline, non-replaced box start at the top and bottom of the content area, and has nothing to do with the line-height. But only the line-height is used when calculating the height of the line box.

---
<!-- 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-06-03 03:27:56 +02:00 committed by GitHub
commit 053a0aa4fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 6 additions and 39 deletions

View file

@ -1,2 +0,0 @@
[background-root-017.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-width-applies-to-008.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[c5506-ipadn-t-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[vertical-align-top-bottom-padding.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-bottom-applies-to-008.xht]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[margin-inline-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-inline-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-top-applies-to-008.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[block-in-inline-empty-001.xht]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[table-visual-layout-018.xht]
expected: FAIL

View file

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

View file

@ -0,0 +1,2 @@
[item-with-table-with-infinite-max-intrinsic-width.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[table-with-infinite-max-intrinsic-width.html]
expected: FAIL

View file

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

View file

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

View file

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