diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-09-20 16:48:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 14:48:27 +0000 |
commit | 9597390d2bc6f68492cc9fae6287d0a456cdb3c1 (patch) | |
tree | 470d803926620b39f272c38eb455ec4093eec48e /components/layout/table.rs | |
parent | 4bde9af5159b18eba1b65256de0d2dda328a1eb2 (diff) | |
download | servo-9597390d2bc6f68492cc9fae6287d0a456cdb3c1.tar.gz servo-9597390d2bc6f68492cc9fae6287d0a456cdb3c1.zip |
Enable min-content, max-content, fit-content and stretch (#33492)
For the sizing properties.
We don't actually support them yet, just treating them as
the initial value.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r-- | components/layout/table.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs index cc257c854f5..3f652d71051 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -307,17 +307,14 @@ impl Flow for TableFlow { for specified_inline_size in &kid.as_mut_table_colgroup().inline_sizes { self.column_intrinsic_inline_sizes .push(ColumnIntrinsicInlineSize { - minimum_length: match *specified_inline_size { - Size::Auto => Au(0), - Size::LengthPercentage(ref lp) => { - lp.maybe_to_used_value(None).unwrap_or(Au(0)) - }, - }, + minimum_length: specified_inline_size + .maybe_to_used_value(None) + .unwrap_or(Au(0)), percentage: match *specified_inline_size { - Size::Auto => 0.0, Size::LengthPercentage(ref lp) => { lp.0.to_percentage().map_or(0.0, |p| p.0) }, + _ => 0.0, }, preferred: Au(0), constrained: false, |