aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-05 23:25:22 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-05 23:25:22 +0100
commit178f5137b85a4e3768537746df3f156fff33b666 (patch)
treecc5469f7945fc4f9041fd156812cb467c4845ec4 /test/layout
parent58f199d0fc8373c4a20c4cdab6aab0b7fa2153ad (diff)
downloadchawan-178f5137b85a4e3768537746df3f156fff33b666.tar.gz
layout: fix percentage margins in shrink-to-fit
Turns out this doesn't work like I thought it does... the second layout is always needed. This probably means that it's possible to layout absolutes during flow after all...
Diffstat (limited to 'test/layout')
-rw-r--r--test/layout/shrink-to-fit-margin-depends-on-content-width.expected3
-rw-r--r--test/layout/shrink-to-fit-margin-depends-on-content-width.html9
2 files changed, 12 insertions, 0 deletions
diff --git a/test/layout/shrink-to-fit-margin-depends-on-content-width.expected b/test/layout/shrink-to-fit-margin-depends-on-content-width.expected
new file mode 100644
index 00000000..3c8b2113
--- /dev/null
+++ b/test/layout/shrink-to-fit-margin-depends-on-content-width.expected
@@ -0,0 +1,3 @@
+ test
+
+test test test test
diff --git a/test/layout/shrink-to-fit-margin-depends-on-content-width.html b/test/layout/shrink-to-fit-margin-depends-on-content-width.html
new file mode 100644
index 00000000..2ee1620a
--- /dev/null
+++ b/test/layout/shrink-to-fit-margin-depends-on-content-width.html
@@ -0,0 +1,9 @@
+<div style="display: inline-block">
+<div>
+<div style="margin-left: 50%">
+test
+</div>
+</div>
+<br>
+test test test test
+</div>