mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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>
This commit is contained in:
parent
4bde9af515
commit
9597390d2b
66 changed files with 120 additions and 2798 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue