diff --git a/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt b/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt new file mode 100644 index 00000000000..8daf021063c --- /dev/null +++ b/Tests/LibWeb/Layout/expected/misc/grid-template-block-components-whitespace-crash.txt @@ -0,0 +1,3 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x0 children: not-inline diff --git a/Tests/LibWeb/Layout/input/misc/grid-template-block-components-whitespace-crash.html b/Tests/LibWeb/Layout/input/misc/grid-template-block-components-whitespace-crash.html new file mode 100644 index 00000000000..a126c67655f --- /dev/null +++ b/Tests/LibWeb/Layout/input/misc/grid-template-block-components-whitespace-crash.html @@ -0,0 +1,7 @@ + diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index ba7e886e43f..4fc03f122e9 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -7565,6 +7565,7 @@ ErrorOr> Parser::parse_grid_track_size_list(Vector