about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-22 21:23:21 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-22 21:23:21 +0200
commit6ab23760e27a590c753965debe2d51f7f4640e25 (patch)
treefc2c24aed767db05babe15daf10f4175cbc335b2 /test
parent98c6b86b3f2d66a67d5fc25ff78d8a5a228f28a6 (diff)
downloadchawan-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.expected4
-rw-r--r--test/layout/flex-column-height-basis-0.html8
-rw-r--r--test/layout/flex-column-width-stretch.color.expected2
-rw-r--r--test/layout/flex-column-width-stretch.html4
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 @@
+test 1                                                                          
+
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