diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2022-10-08 14:46:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-08 17:26:41 +0200 |
commit | e537035cc6f89809521d44a10797c63a1c4800f5 (patch) | |
tree | b29c0d85442d3229ebae932a27c708387e507168 /Base/res | |
parent | 994d996ab20df3f19e0b6c359a743e7dd76360f0 (diff) | |
download | serenity-e537035cc6f89809521d44a10797c63a1c4800f5.zip |
LibWeb+Base: Deal with column-spans greater than implicit grid
When the indicated column-span is greater than the implicit grid (like
in cases when the grid has the default size of 1x1, and the column is
supposed to span any number greater than that), then previously were
crashing.
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/html/misc/display-grid.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Base/res/html/misc/display-grid.html b/Base/res/html/misc/display-grid.html index fcf9c9d116..fb79d6a053 100644 --- a/Base/res/html/misc/display-grid.html +++ b/Base/res/html/misc/display-grid.html @@ -30,8 +30,8 @@ <div class="grid-item">4</div> </div> +<p>Start of crash tests</p> <!-- Check for a bug where a github page was crashing due to the following code. --> -<p>If you can see this message then the test passed.</p> <div class="grid-container" style=" @@ -41,7 +41,6 @@ </div> <!-- Spans causing positions outside the inherit grid. (span 2 with an end position of 1 causes the start to be -1) --> -<p>If you can see this message then the test passed.</p> <div class="grid-container"> <div class="grid-item" style="grid-row: span 2 / 1; grid-column: span 2 / 1;">1</div> <div class="grid-item" style="grid-row: span 2 / 1;">2</div> @@ -50,7 +49,6 @@ </div> <!-- 0 positioned grid items and similar inputs --> -<p>If you can see this message then the test passed.</p> <div class="grid-container"> <div class="grid-item" style="grid-row-end: 0;">2</div> <div class="grid-item" style="grid-row: 0 / 0;">3</div> @@ -60,6 +58,25 @@ <div class="grid-item" style="grid-column-end: 1;">6</div> </div> +<!-- Grid-column-span larger than implicit grid for row-positioned items --> +<div class="grid-container"> + <div class="grid-item" style="grid-row: 1 / -1; grid-column: span 4;">1</div> +</div> +<!-- Grid-column-span larger than implicit grid for non-positioned items --> +<div class="grid-container"> + <div class="grid-item" style="grid-column: span 4;">1</div> +</div> +<!-- Grid-row-span larger than implicit grid for column-positioned items --> +<div class="grid-container"> + <div class="grid-item" style="grid-column: 1 / -1; grid-row: span 4;">1</div> +</div> +<!-- Grid-row-span larger than implicit grid for non-positioned items --> +<div class="grid-container"> + <div class="grid-item" style="grid-row: span 4;">1</div> +</div> + +<p>End of crash tests</p> + <!-- Different column sizes --> <p>Should render a 2x2 grid with columns 50px and 50%</p> <div |