mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb/CSS: Allow whitespace inside fit-content() function
This commit is contained in:
parent
591c6b0f68
commit
718e874cc7
Notes:
github-actions[bot]
2025-02-27 13:31:36 +00:00
Author: https://github.com/AtkinsSJ
Commit: 718e874cc7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3715
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 23 additions and 2 deletions
|
@ -2556,8 +2556,6 @@ RefPtr<FitContentStyleValue> Parser::parse_fit_content_value(TokenStream<Compone
|
|||
auto const& function = component_value.function();
|
||||
if (function.name != "fit-content"sv)
|
||||
return nullptr;
|
||||
if (function.value.size() != 1)
|
||||
return nullptr;
|
||||
TokenStream argument_tokens { function.value };
|
||||
argument_tokens.discard_whitespace();
|
||||
auto maybe_length = parse_length_percentage(argument_tokens);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue