diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2022-09-26 11:41:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 21:16:01 +0200 |
commit | 9051a565547642207d88fce11bedf73f63ca2dc2 (patch) | |
tree | e8b424e68c61bce72debc4dd36b6f2bf6ada00b2 /Base/res/html/misc | |
parent | a764e43db3b6c9b06cd0f628b3649399a6950d98 (diff) | |
download | serenity-9051a565547642207d88fce11bedf73f63ca2dc2.zip |
Base+LibWeb: Stub out negative spans
Ensure that when a grid item is passed with a span and a fixed end
position, that if the resulting start of this item is less than 0 then
it won't throw. This is a temporary measure until the correct
functionality is implemented.
Diffstat (limited to 'Base/res/html/misc')
-rw-r--r-- | Base/res/html/misc/display-grid.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Base/res/html/misc/display-grid.html b/Base/res/html/misc/display-grid.html index 812d6c9b94..4b50444c51 100644 --- a/Base/res/html/misc/display-grid.html +++ b/Base/res/html/misc/display-grid.html @@ -40,6 +40,14 @@ <div class="grid-item">1</div> </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> + <div class="grid-item" style="grid-column: span 2 / 1;">3</div> +</div> + <!-- Different column sizes --> <p>Should render a 2x2 grid with columns 50px and 50%</p> <div |