Don't trim leading whitespace of anonymous table cells (#31803)

A sequence of whitespace shouldn't generate an anonymous table row/cell,
but we can't just throw away the leading whitespace, because afterwards
we may encounter some other content, and then the leading whitespace
should appear in the cell (noticeable with e.g. `white-space: pre`).
This commit is contained in:
Oriol Brufau 2024-03-21 12:48:39 +01:00 committed by GitHub
parent ce0d456469
commit ecabdc2583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 19 additions and 29 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,2 +0,0 @@
[anonymous-table-ws-001.html]
expected: FAIL

View file

@ -14,8 +14,5 @@
[2.2. An anonymous table-row box must be generated around each sequence of consecutive children of a table-row-grouping box which are not table-row boxes. (3/3)]
expected: FAIL
[1.4. Anonymous inline boxes which contains only white space and are between two immediate siblings *each* of which is a table-non-root element, are treated as if they had display: none.]
expected: FAIL
[2.3 happens after 2.1. and 2.2. (1/2)]
expected: FAIL

View file

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