servo/components/layout_2020
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
..
display_list layout: Add support for background-attachment: fixed (#32068) 2024-04-15 20:24:37 +00:00
flexbox layout2020 (flexbox): Implement start, end, and space-evenly content alignment (#31724) 2024-04-28 23:17:11 +00:00
flow Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
fragment_tree Address issues uncovered by rust-1.78 beta (#32130) 2024-04-22 18:20:47 +00:00
table clippy: Allow too_many_arguments for all functions (#31962) 2024-04-01 14:53:33 +00:00
tests Turn white-space into a shorthand (#32146) 2024-04-29 10:40:44 +00:00
Cargo.toml layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
dom.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
dom_traversal.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
formatting_contexts.rs layout: Allow transforming inline replaced elements (#31833) 2024-03-27 11:57:27 +00:00
geom.rs layout: Add basic support for getClientRects() queries (#31696) 2024-03-15 17:20:47 +00:00
layout_debug.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
lib.rs make ContainingBlock use Au for inline_size and block_size (#31370) 2024-02-20 09:14:44 +00:00
lists.rs layout: Add a basic support for list-style-position: outside (#32114) 2024-04-22 14:23:35 +00:00
positioned.rs layout: Allow transforming inline replaced elements (#31833) 2024-03-27 11:57:27 +00:00
query.rs Upgrade Stylo to 2024-01-16 (#32066) 2024-04-13 17:42:09 +00:00
replaced.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
sizing.rs layout: Add initial support for row height distribution (#31421) 2024-02-29 12:12:54 +00:00
style_ext.rs Address issues uncovered by rust-1.78 beta (#32130) 2024-04-22 18:20:47 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00