servo/components/layout_2020
Oriol Brufau 8c689aac67
Fix min/max-content block size of replaced element (#34284)
The min-content and max-content sizes on the block axis depend on the
inline size. But when computing the SizeConstraint corresponding to the
inline axis, we were resolving the preferred inline size ignoring
intrinsic keywords. Now we will only ignore `auto`.

Also, this patch refactors the logic to compute the min-content and
max-content block sizes after fully resolving the inline size.
This avoids having to resolve the inline sizing properties twice.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-11-18 22:04:57 +00:00
..
display_list layout: Add instrumentation for display_list (#34128) 2024-11-08 09:05:07 +00:00
flexbox Use a RwLock to cache inline_content_sizes() (#34232) 2024-11-13 09:56:02 +00:00
flow Use a RwLock to cache inline_content_sizes() (#34232) 2024-11-13 09:56:02 +00:00
fragment_tree Add BoxFragment::is_inline_box() (#34233) 2024-11-12 15:50:20 +00:00
table Protect against arithmetic underflow in TableBuilder::current_y() (#34247) 2024-11-14 16:03:39 +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 Improve how intrinsic sizes work for videos (#31746) 2024-10-29 22:42:22 +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 Use a RwLock to cache inline_content_sizes() (#34232) 2024-11-13 09:56:02 +00:00
geom.rs Use LazyCells instead of callbacks when resolving size keywords (#34211) 2024-11-11 16:26:20 +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 Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +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: Use Size::FitContent when the alignment isn't normal or stretch for absolutely positioned elements (#34264) 2024-11-18 15:06:23 +00:00
query.rs Fix offsetLeft/offsetTop to match major browsers (#32761) 2024-11-16 15:28:38 +00:00
replaced.rs Fix min/max-content block size of replaced element (#34284) 2024-11-18 22:04:57 +00:00
sizing.rs Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +00:00
style_ext.rs Replace ComputedValues with WritingMode on IndefiniteContainingBlock (#34090) 2024-11-04 18:00:58 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00