mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:52:12 +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:
parent
586b47cede
commit
db121c7af1
3 changed files with 11 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue