layout: Add support for white-space-collapse: break-spaces (#32388)

This change adds support for `white-space-collapse: break-spaces` and
adds initial parsing support for `overflow-wrap` and `word-break`. The
later two properties are not fully supported, only in their interaction
with `break-spaces`. This is a preliminary change preparing to implement
them.

In addition, `break_and_shape` is now forked and added to Layout 2020.
This function is going to change a lot soon and forking is preparation
for this. More code that is only used by Layout 2013 is moved from `gfx`
to that crate.

Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
This commit is contained in:
Martin Robinson 2024-05-30 07:33:07 +02:00 committed by GitHub
parent c0dedf06d6
commit 60b4b6c9f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
96 changed files with 410 additions and 537 deletions

View file

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

View file

@ -1,2 +0,0 @@
[break-spaces-003.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-004.html]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[break-spaces-007.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-010.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-011.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-051.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-052.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-008.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-009.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-010.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-011.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-012.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-013.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-016.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-017.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-before-first-char-018.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-011.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-012.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-013.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-014.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-015.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-newline-016.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-tab-003.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-tab-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-003.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-005.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-006.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-007.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-008.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-009.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[break-spaces-with-overflow-wrap-010.html]
expected: FAIL

View file

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

View file

@ -1,2 +0,0 @@
[textarea-break-spaces-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-letter-spacing-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-003.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-005.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-006.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-007.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-008.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-009.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-010.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-011.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[ws-break-spaces-applies-to-014.html]
expected: FAIL