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_2020/flexbox/layout.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_2020/flexbox/layout.rs')
-rw-r--r-- | components/layout_2020/flexbox/layout.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs index 7170d233f9b..bbb333ad524 100644 --- a/components/layout_2020/flexbox/layout.rs +++ b/components/layout_2020/flexbox/layout.rs @@ -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`.” |