servo/components/layout_2020/fragment_tree
Martin Robinson f68a2e7743
layout: Ensure empty list items are at least as tall as outside markers (#32152)
While <https://drafts.csswg.org/css-lists/#list-style-position-property> says:

> The size or contents of the marker box may affect the height of the
> principal block box and/or the height of its first line box, and in some
> cases may cause the creation of a new line box; this interaction is also
> not defined.

All other browsers ensure that the first line of list item content is
the same block size as the marker. Doing this is complicated, but we can
ensure that the entire list item is at least as tall as the marker. This
should handle the majority of cases and we can make refinements later
for stranger situations, such as when the marker is very tall.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-04-29 16:58:14 +00:00
..
base_fragment.rs layout: Ensure empty list items are at least as tall as outside markers (#32152) 2024-04-29 16:58:14 +00:00
box_fragment.rs layout: use Au in BoxFragment (#31794) 2024-03-22 04:30:39 +00:00
containing_block.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
fragment.rs Address issues uncovered by rust-1.78 beta (#32130) 2024-04-22 18:20:47 +00:00
fragment_tree.rs layout: Add basic support for getClientRects() queries (#31696) 2024-03-15 17:20:47 +00:00
hoisted_shared_fragment.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
mod.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
positioning_fragment.rs rustdoc: Fix errors in components and ports (#31654) 2024-03-15 16:24:11 +00:00