diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-05-13 15:17:24 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-13 18:43:34 +0200 |
commit | dbafb11a7ee8edd347afc61d74a31d6ece252c7c (patch) | |
tree | 0045c7c387bb017bf4b0fe84079445cf8ecf4a3d /Tests/LibWeb/Layout/input | |
parent | 32a777347f8c17735c323266d9221e60c7f469a9 (diff) | |
download | serenity-dbafb11a7ee8edd347afc61d74a31d6ece252c7c.zip |
LibWeb: Flesh out basic support of min-width/height for grid items
This change brings calculate_minimum_contribution() for grid items and
supporting functions.
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r-- | Tests/LibWeb/Layout/input/grid/grid-item-min-size.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/grid/grid-item-min-size.html b/Tests/LibWeb/Layout/input/grid/grid-item-min-size.html new file mode 100644 index 0000000000..fc4ac6b1ab --- /dev/null +++ b/Tests/LibWeb/Layout/input/grid/grid-item-min-size.html @@ -0,0 +1,22 @@ +<style> +.grid { + float: left; + display: grid; + grid-template-columns: auto; + grid-template-rows: auto; +} + +.first { + background: pink; + border: 1px solid black; + min-width: 100px; + min-height: 100px; +} + +.second { + background: skyblue; + border: 1px solid black; + min-width: 100px; + min-height: 100px; +} +</style><div class="grid"><div class="first">first</div><div class="second">second</div></div>
\ No newline at end of file |