mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
LibWeb: Add display grid automated tests
This commit is contained in:
parent
7028f75779
commit
57cdb0c972
24 changed files with 1287 additions and 0 deletions
23
Tests/LibWeb/Layout/input/grid/min-max-content.html
Normal file
23
Tests/LibWeb/Layout/input/grid/min-max-content.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<style>
|
||||
body {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
|
||||
.grid-container {
|
||||
display: grid;
|
||||
background-color: lightsalmon;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
background-color: lightblue;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="grid-container" style="
|
||||
grid-template-columns: min-content max-content 1fr;
|
||||
grid-template-areas: 'one two three';
|
||||
">
|
||||
<div class="grid-item" style="grid-area: one; min-width: 25%; max-width: 50%;">min-content</div>
|
||||
<div class="grid-item" style="grid-area: two;">max-content</div>
|
||||
<div class="grid-item" style="grid-area: three;">1fr</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue