servo/components/layout_2020/flow
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
..
construct.rs layout: Add a basic support for list-style-position: outside (#32114) 2024-04-22 14:23:35 +00:00
float.rs Implement special table sizing for floats (#32150) 2024-04-26 14:42:20 +00:00
inline.rs Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
line.rs Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
mod.rs layout: Add a basic support for list-style-position: outside (#32114) 2024-04-22 14:23:35 +00:00
root.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
text_run.rs Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00