mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Turn white-space into a shorthand (#32146)
Bumps Stylo to servo/stylo#37 `white-space` is split into `white-space-collapse` and `text-wrap-mode`: | white-space | white-space-collapse | text-wrap-mode | | ----------- | -------------------- | -------------- | | normal | collapse | wrap | | nowrap | collapse | nowrap | | pre-wrap | preserve | wrap | | pre | preserve | nowrap | | pre-line | preserve-breaks | wrap | | - | preserve-breaks | nowrap | Note this introduces a combination that wasn't previously possible, but I think the existing logic can handle it well enough. The old `allow_wrap()` is replaced by checking whether `text-wrap-mode` is set to `wrap`. The old `preserve_newlines()` is replaced by checking whether `white-space-collapse` is *not* set to `collapse`. The old `preserve_spaces()` is replaced by checking whether `white-space-collapse` is set to `preserve`.
This commit is contained in:
parent
a1f8c19355
commit
d490fdf83c
23 changed files with 141 additions and 454 deletions
|
@ -53,18 +53,6 @@
|
|||
[Property word-wrap inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property white-space-collapse has initial value collapse]
|
||||
expected: FAIL
|
||||
|
||||
[Property white-space-collapse inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property text-wrap-mode has initial value wrap]
|
||||
expected: FAIL
|
||||
|
||||
[Property text-wrap-mode inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property text-wrap-style has initial value auto]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue