mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
LibWeb: Handle leading whitespace in grid-template-* block components
We're already handling whitespace between components, do the same for leading whitespace. Fixes crash on https://distill.pub/2021/gnn-intro.
This commit is contained in:
committed by
Andreas Kling
parent
586b47cede
commit
db121c7af1
@@ -7565,6 +7565,7 @@ ErrorOr<RefPtr<StyleValue>> Parser::parse_grid_track_size_list(Vector<ComponentV
|
||||
if (!token.block().is_square())
|
||||
return GridTrackSizeListStyleValue::make_auto();
|
||||
TokenStream block_tokens { token.block().values() };
|
||||
block_tokens.skip_whitespace();
|
||||
while (block_tokens.has_next_token()) {
|
||||
auto current_block_token = block_tokens.next_token();
|
||||
auto maybe_string = String::from_utf8(current_block_token.token().ident());
|
||||
|
||||
Reference in New Issue
Block a user