diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2023-04-01 19:09:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-02 19:08:04 +0200 |
commit | 6f52272d34baa4c6da2e0976a05ba71beec67eb5 (patch) | |
tree | 81817b3983b43be78bc7d9a86664cabdf93b272b /Tests/LibWeb/Layout/input/grid | |
parent | e65f4b3dc5b6224241aa466abff308cc04b83085 (diff) | |
download | serenity-6f52272d34baa4c6da2e0976a05ba71beec67eb5.zip |
LibWeb: Fix regression in definite grid row heights
Fixes a row height bug when a grid item in a row has a definite height.
Diffstat (limited to 'Tests/LibWeb/Layout/input/grid')
-rw-r--r-- | Tests/LibWeb/Layout/input/grid/row-height.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/grid/row-height.html b/Tests/LibWeb/Layout/input/grid/row-height.html new file mode 100644 index 0000000000..a1fb174fc0 --- /dev/null +++ b/Tests/LibWeb/Layout/input/grid/row-height.html @@ -0,0 +1,22 @@ +<style> + body { + font-family: 'SerenitySans'; + } + + .grid-container { + display: grid; + background-color: lightsalmon; + } + + .grid-item { + background-color: lightblue; + } +</style> + +<!-- Should render a 2x2 grid with the first row having a height of 50px --> +<div class="grid-container" style="grid-template-columns: auto auto;"> + <div class="grid-item" style="height: 50px;">1</div> + <div class="grid-item">2</div> + <div class="grid-item">3</div> + <div class="grid-item">4</div> +</div>
\ No newline at end of file |