mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -2359,9 +2359,10 @@ impl FlexItemBox {
|
|||
},
|
||||
}
|
||||
},
|
||||
FlexBasis::Size(Size::Auto) => {
|
||||
FlexBasis::Size(_) => {
|
||||
// “When specified on a flex item, the `auto` keyword retrieves
|
||||
// the value of the main size property as the used `flex-basis`.”
|
||||
// TODO(#32853): Handle other intrinsic keywords.
|
||||
match content_box_size.main {
|
||||
AuOrAuto::LengthPercentage(length) => FlexBasis::Size(length),
|
||||
// “If that value is itself `auto`, then the used value is `content`.”
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue