mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
LibWeb/CSS: Use empty optional for stretch
in FitContentSV
...instead of using an `auto` Length.
This commit is contained in:
parent
f57ffc3655
commit
d10eaa996e
Notes:
github-actions[bot]
2025-09-04 12:33:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: d10eaa996e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6043
3 changed files with 11 additions and 7 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue