LibWeb/CSS: Use empty optional for stretch in FitContentSV

...instead of using an `auto` Length.
This commit is contained in:
Sam Atkins 2025-08-28 12:14:15 +01:00
commit d10eaa996e
Notes: github-actions[bot] 2025-09-04 12:33:28 +00:00
3 changed files with 11 additions and 7 deletions

View file

@ -3192,6 +3192,8 @@ RefPtr<FitContentStyleValue const> Parser::parse_fit_content_value(TokenStream<C
return nullptr;
transaction.commit();
if (maybe_length->is_auto())
return FitContentStyleValue::create();
return FitContentStyleValue::create(maybe_length.release_value());
}