diff --git a/Tests/LibWeb/Layout/expected/misc/percentage-stroke-width-crash.txt b/Tests/LibWeb/Layout/expected/misc/percentage-stroke-width-crash.txt new file mode 100644 index 00000000000..01545057d49 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/misc/percentage-stroke-width-crash.txt @@ -0,0 +1,3 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x16 [BFC] children: not-inline + BlockContainer
at (8,8) content-size 784x0 children: not-inline diff --git a/Tests/LibWeb/Layout/input/misc/percentage-stroke-width-crash.html b/Tests/LibWeb/Layout/input/misc/percentage-stroke-width-crash.html new file mode 100644 index 00000000000..b4c4112b141 --- /dev/null +++ b/Tests/LibWeb/Layout/input/misc/percentage-stroke-width-crash.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index 0aa33516377..71e93dfcacf 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -10,6 +10,7 @@ #include