servo/components/script/layout_dom
Oriol Brufau d490fdf83c
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`.
2024-04-29 10:40:44 +00:00
..
document.rs script: Make layout DOM wrappers not generic on layout data (#31994) 2024-04-04 11:34:35 +00:00
element.rs Upgrade Stylo to 2024-04-16 (#32128) 2024-04-25 14:48:07 +00:00
mod.rs
node.rs Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
shadow_root.rs script: Make layout DOM wrappers not generic on layout data (#31994) 2024-04-04 11:34:35 +00:00