servo/components/layout_2020
valadaptive f6c9714286
Fix sizing of replaced elements with min/max sizes (#32777)
If a (min/max)-(height/width) property is set, we still need to respect
the intrinsic ratio of the element if it exists. The previous code was
simply clamping the element size after doing the sizing calculations
once, but this leads to an incorrect aspect ratio.

Signed-off-by: valadaptive <valadaptive@protonmail.com>
2024-07-18 07:07:13 +00:00
..
display_list Remove unused ToWebRender implementation (#32729) 2024-07-08 16:10:34 +00:00
flexbox flex: handle ‘align-self: [ first | last ]? && baseline’ (#32787) 2024-07-18 07:03:29 +00:00
flow flex: handle ‘align-self: [ first | last ]? && baseline’ (#32787) 2024-07-18 07:03:29 +00:00
fragment_tree layout: Add support for table captions (#32657) 2024-07-03 18:24:19 +00:00
table fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00
tests layout: Add a InlineFormattingContextBuilder (#32415) 2024-06-03 14:46:53 +00:00
Cargo.toml Clean up some unused dependencies (#32600) 2024-06-25 13:02:59 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs Rename gfx to fonts (#32556) 2024-06-19 20:26:19 +00:00
dom.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
dom_traversal.rs layout: Simplify Contents a little (#32487) 2024-06-21 10:13:31 +00:00
formatting_contexts.rs layout: Properly handle min/max cross container size (#32785) 2024-07-16 12:14:02 +00:00
geom.rs Remove unused implementation (#32754) 2024-07-10 10:57:49 +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 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 rendering LineItems independent of inline box (#32666) 2024-07-03 15:15:31 +00:00
query.rs use app unit in box_fragement (#32349) 2024-06-21 14:54:21 +00:00
replaced.rs Fix sizing of replaced elements with min/max sizes (#32777) 2024-07-18 07:07:13 +00:00
sizing.rs layout: Add initial support for row height distribution (#31421) 2024-02-29 12:12:54 +00:00
style_ext.rs layout: Add support for table captions (#32657) 2024-07-03 18:24:19 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00