diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-22 21:23:21 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-22 21:23:21 +0200 |
commit | 6ab23760e27a590c753965debe2d51f7f4640e25 (patch) | |
tree | fc2c24aed767db05babe15daf10f4175cbc335b2 /test | |
parent | 98c6b86b3f2d66a67d5fc25ff78d8a5a228f28a6 (diff) | |
download | chawan-6ab23760e27a590c753965debe2d51f7f4640e25.tar.gz |
layout: fix various flex column sizing bugs
* fix flex column item width not being stretched * set minimum flex column height to the layouted item's height (to avoid overlap)
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/flex-column-height-basis-0.expected | 4 | ||||
-rw-r--r-- | test/layout/flex-column-height-basis-0.html | 8 | ||||
-rw-r--r-- | test/layout/flex-column-width-stretch.color.expected | 2 | ||||
-rw-r--r-- | test/layout/flex-column-width-stretch.html | 4 |
4 files changed, 18 insertions, 0 deletions
diff --git a/test/layout/flex-column-height-basis-0.expected b/test/layout/flex-column-height-basis-0.expected new file mode 100644 index 00000000..6597d014 --- /dev/null +++ b/test/layout/flex-column-height-basis-0.expected @@ -0,0 +1,4 @@ +test 1 +test 1 +test 1 +test 2 diff --git a/test/layout/flex-column-height-basis-0.html b/test/layout/flex-column-height-basis-0.html new file mode 100644 index 00000000..a261031d --- /dev/null +++ b/test/layout/flex-column-height-basis-0.html @@ -0,0 +1,8 @@ +<body style="display: flex; flex-direction: column"> +<div style="flex-basis: 0%"> +test 1<br> +test 1<br> +test 1<br> +</div> +<div> +test 2 diff --git a/test/layout/flex-column-width-stretch.color.expected b/test/layout/flex-column-width-stretch.color.expected new file mode 100644 index 00000000..a52ec5dc --- /dev/null +++ b/test/layout/flex-column-width-stretch.color.expected @@ -0,0 +1,2 @@ +[48;2;0;128;0mtest 1 [49m + diff --git a/test/layout/flex-column-width-stretch.html b/test/layout/flex-column-width-stretch.html new file mode 100644 index 00000000..cd65d9d4 --- /dev/null +++ b/test/layout/flex-column-width-stretch.html @@ -0,0 +1,4 @@ +<!DOCTYPE html> +<body style="display: flex; flex-direction: column"> +<div style="background-color: green"> +test 1 |