mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
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.
This commit is contained in:
parent
a764e43db3
commit
9051a56554
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue