mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
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:
parent
c0dedf06d6
commit
60b4b6c9f0
96 changed files with 410 additions and 537 deletions
|
@ -1,9 +0,0 @@
|
|||
[overflow-wrap-computed.html]
|
||||
[Property overflow-wrap value 'normal']
|
||||
expected: FAIL
|
||||
|
||||
[Property overflow-wrap value 'break-word']
|
||||
expected: FAIL
|
||||
|
||||
[Property overflow-wrap value 'anywhere']
|
||||
expected: FAIL
|
|
@ -1,9 +0,0 @@
|
|||
[overflow-wrap-valid.html]
|
||||
[e.style['overflow-wrap'\] = "normal" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['overflow-wrap'\] = "break-word" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['overflow-wrap'\] = "anywhere" should set the property value]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[white-space-collapse-computed.html]
|
||||
[Property white-space-collapse value 'break-spaces']
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[white-space-collapse-valid.html]
|
||||
[e.style['white-space-collapse'\] = "break-spaces" should set the property value]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[white-space-computed.html]
|
||||
[Property white-space value 'break-spaces']
|
||||
expected: FAIL
|
|
@ -1,22 +1,4 @@
|
|||
[white-space-shorthand.html]
|
||||
[e.style['white-space'\] = "break-spaces" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[Property white-space value 'break-spaces']
|
||||
expected: FAIL
|
||||
|
||||
[e.style['white-space'\] = "break-spaces wrap" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[Property white-space value 'break-spaces wrap']
|
||||
expected: FAIL
|
||||
|
||||
[e.style['white-space'\] = "wrap break-spaces" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[Property white-space value 'wrap break-spaces']
|
||||
expected: FAIL
|
||||
|
||||
[e.style['white-space'\] = "balance" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[white-space-valid.html]
|
||||
[e.style['white-space'\] = "break-spaces" should set the property value]
|
||||
expected: FAIL
|
|
@ -1,13 +1,4 @@
|
|||
[word-break-computed.html]
|
||||
[Property word-break value 'normal']
|
||||
expected: FAIL
|
||||
|
||||
[Property word-break value 'keep-all']
|
||||
expected: FAIL
|
||||
|
||||
[Property word-break value 'break-all']
|
||||
expected: FAIL
|
||||
|
||||
[Property word-break value 'break-word']
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,13 +1,4 @@
|
|||
[word-break-valid.html]
|
||||
[e.style['word-break'\] = "normal" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['word-break'\] = "keep-all" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['word-break'\] = "break-all" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['word-break'\] = "break-word" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
[word-wrap-computed.html]
|
||||
[Property word-wrap value 'normal']
|
||||
expected: FAIL
|
||||
|
||||
[Property word-wrap value 'break-word']
|
||||
expected: FAIL
|
||||
|
||||
[Property word-wrap value 'anywhere']
|
||||
expected: FAIL
|
|
@ -1,9 +0,0 @@
|
|||
[word-wrap-valid.html]
|
||||
[e.style['word-wrap'\] = "normal" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['word-wrap'\] = "break-word" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['word-wrap'\] = "anywhere" should set the property value]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue