about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/layout/flex-shrink-overconstrained.color.expected6
-rw-r--r--test/layout/flex-shrink-overconstrained.html6
-rw-r--r--test/layout/flex-shrink-simple.expected5
-rw-r--r--test/layout/non-growing-flex-item-indefinite-intrinsic-size.color.expected2
-rw-r--r--test/layout/non-growing-flex-item-indefinite-intrinsic-size.html11
5 files changed, 27 insertions, 3 deletions
diff --git a/test/layout/flex-shrink-overconstrained.color.expected b/test/layout/flex-shrink-overconstrained.color.expected
new file mode 100644
index 00000000..82c615f0
--- /dev/null
+++ b/test/layout/flex-shrink-overconstrained.color.expected
@@ -0,0 +1,6 @@
+1111 1111    test test test test test   
+1111 1111    test test test test test   
+1111 1111    test test test test test   
+1111 1111    test test                  
+1111                                    
+
diff --git a/test/layout/flex-shrink-overconstrained.html b/test/layout/flex-shrink-overconstrained.html
new file mode 100644
index 00000000..162bcb49
--- /dev/null
+++ b/test/layout/flex-shrink-overconstrained.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<div style="display: flex; width: 40ch">
+<div style="width: 40ch; background: red">1111 1111 1111 1111 1111 1111 1111 1111 1111</div>
+<div style="width: 80ch; background: pink">test test test test test test test test test test test test test test test test test</div>
+<!--
+<div style="width: 4ch; background: aliceblue">last</div>
diff --git a/test/layout/flex-shrink-simple.expected b/test/layout/flex-shrink-simple.expected
index 1ba2dc37..f694b6e7 100644
--- a/test/layout/flex-shrink-simple.expected
+++ b/test/layout/flex-shrink-simple.expected
@@ -1,3 +1,2 @@
-test test test test test test test test test test test test test test test  last
-test test test test test test test test test test
-test
+test test test test test  test test test test test test test test test test last
+test test test test       test test test test test test test
diff --git a/test/layout/non-growing-flex-item-indefinite-intrinsic-size.color.expected b/test/layout/non-growing-flex-item-indefinite-intrinsic-size.color.expected
new file mode 100644
index 00000000..a974ea54
--- /dev/null
+++ b/test/layout/non-growing-flex-item-indefinite-intrinsic-size.color.expected
@@ -0,0 +1,2 @@
+flex item 1a 
+     absolute
diff --git a/test/layout/non-growing-flex-item-indefinite-intrinsic-size.html b/test/layout/non-growing-flex-item-indefinite-intrinsic-size.html
new file mode 100644
index 00000000..6281e3fe
--- /dev/null
+++ b/test/layout/non-growing-flex-item-indefinite-intrinsic-size.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<div style="display: flex">
+<div>flex item 1</div>
+<div style="position: relative; background: pink">
+<div style="display: inline-block; width: 100%; background: red">a</div>
+<!--
+this part is a more or less unrelated test for whether setting relative
+on an inline root block box marks it as the containing block.
+-->
+<div style="right: 0; position: absolute">
+absolute