Auto merge of #26447 - jdm:white-space-2020, r=nox

Layout 2020: Implement basic white-space: pre support

With these changes `<pre>` and `<br>` preserve spaces and force line breaks appropriately.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26440
- [x] There are tests for these changes
This commit is contained in:
bors-servo 2020-07-29 10:29:30 -04:00 committed by GitHub
commit 6a3c3a4e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 128 additions and 135 deletions

View file

@ -1,2 +0,0 @@
[hypothetical-inline-alone-on-second-line.html]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[color-applies-to-015.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[c562-white-sp-000.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[float-003.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-no-content-beside-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[floats-placement-vertical-004.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[content-171.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[content-173.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[content-newline-001.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[content-white-space-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[padding-percentage-inherit-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[block-replaced-width-006.xht]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[inline-replaced-width-006.xht]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[absolute-non-replaced-height-008.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[position-static-001.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[table-anonymous-objects-009.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[table-anonymous-objects-010.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-004.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-applies-to-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-013.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-016.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-017.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-018.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-046.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-047.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-052.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[anonymous-boxes-001b.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-size-027.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-size-028.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-size-030.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-size-031.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[anonymous-flex-item-004.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[anonymous-flex-item-005.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[anonymous-flex-item-006.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-decoration-subelements-001.html]
expected: FAIL

View file

@ -23,15 +23,9 @@
[page-break-before: always]
expected: FAIL
[white-space: inherit]
expected: FAIL
[page-break-after: inherit]
expected: FAIL
[white-space: nowrap]
expected: FAIL
[page-break-before: left]
expected: FAIL
@ -215,9 +209,6 @@
[display: table-cell]
expected: FAIL
[white-space: pre]
expected: FAIL
[text-indent: 5%]
expected: FAIL
@ -257,9 +248,6 @@
[clear: both]
expected: FAIL
[white-space: pre-wrap]
expected: FAIL
[outline-width: 0px]
expected: FAIL
@ -326,9 +314,6 @@
[vertical-align: 1px]
expected: FAIL
[white-space: pre-line]
expected: FAIL
[display: table-column]
expected: FAIL
@ -386,9 +371,6 @@
[float: none]
expected: FAIL
[white-space: normal]
expected: FAIL
[list-style-type: lower-roman]
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,2 @@
[white-space-pre-line.htm]
expected: FAIL

View file

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

View file

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

View file

@ -1,2 +0,0 @@
[word-break-keep-all-005.htm]
expected: FAIL

View file

@ -1,2 +0,0 @@
[word-break-keep-all-006.htm]
expected: FAIL

View file

@ -1,2 +0,0 @@
[word-break-keep-all-007.htm]
expected: FAIL

View file

@ -0,0 +1,4 @@
[hit_test_multiple_sc.html]
[Hit testing works for following stacking contexts]
expected: FAIL