servo/components/layout_2020
Oriol Brufau 9ad59d1459
Consistent resolution of cyclic percentages in min sizing properties (#33988)
The spec says that cyclic percentages in min sizing properties should
be resolved against zero when computing intrinsic contributions.
We were already doing that in the inline axis, but we were treating
the entire expression as `auto` in the block axis.

With this patch we will follow the spec in both axes. But note that
browsers don't follo the spec in either axis, so we may have to revisit
(see https://github.com/w3c/csswg-drafts/issues/10969).

calc-min-height-block-1.html now fails because it tests what browsers
do instead of what the spec says.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-10-24 12:03:32 +00:00
..
display_list clippy: fix using clone() warning in components\layout_2020\display_list\mod.rs:1365:25 (#33935) 2024-10-21 05:54:22 +00:00
flexbox layout: Cache content block size contributions (#33964) 2024-10-22 14:43:53 +00:00
flow Prevent stretch from producing a negative size (#33951) 2024-10-22 08:04:15 +00:00
fragment_tree Upgrade Stylo to 2024-10-04 (#33767) 2024-10-20 19:53:38 +00:00
table Minor cleanup for Size after #33844 (#33861) 2024-10-16 13:53:46 +00:00
tests layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
Cargo.toml Gate all use of tracing behind Cargo feature (#33845) 2024-10-16 10:24:24 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs fonts: Simplify FontContext in two ways that affect the unit test (#33541) 2024-09-25 20:15:47 +00:00
dom.rs Add HTMLCanvasDataSource::Empty that represent transparent black instead of HTMLCanvasDataSource::Image(None) (#33519) 2024-09-22 14:04:53 +00:00
dom_traversal.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
formatting_contexts.rs Avoid recomputing inline_content_sizes() when not needed (#33806) 2024-10-14 16:06:27 +00:00
geom.rs Consistent resolution of cyclic percentages in min sizing properties (#33988) 2024-10-24 12:03:32 +00:00
layout_debug.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
lib.rs Refactor positioned layout (#33922) 2024-10-21 10:41:42 +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 Implement keyword sizes on absolute/fixed positioned elements (#33950) 2024-10-22 18:50:12 +00:00
query.rs layout: Switch .len() comparison to is_empty() in components/layout_2020/query.rs. (#33544) 2024-09-25 20:29:30 +00:00
replaced.rs Avoid recomputing inline_content_sizes() when not needed (#33806) 2024-10-14 16:06:27 +00:00
sizing.rs Avoid recomputing inline_content_sizes() when not needed (#33806) 2024-10-14 16:06:27 +00:00
style_ext.rs Consistent resolution of cyclic percentages in min sizing properties (#33988) 2024-10-24 12:03:32 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00