aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/layout.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-09-20 16:48:27 +0200
committerGitHub <noreply@github.com>2024-09-20 14:48:27 +0000
commit9597390d2bc6f68492cc9fae6287d0a456cdb3c1 (patch)
tree470d803926620b39f272c38eb455ec4093eec48e /components/layout_2020/flexbox/layout.rs
parent4bde9af5159b18eba1b65256de0d2dda328a1eb2 (diff)
downloadservo-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.rs3
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`.”