about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-25 18:12:12 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-25 18:12:12 +0200
commitedf8d22ca950f23ede001891516e7ca09ad080a0 (patch)
tree0f2024dc123db2b0fc3e2021d68ea4973ccb3819 /test
parent8111072efaa3c4f5908dd54c17ed103d667c217b (diff)
downloadchawan-edf8d22ca950f23ede001891516e7ca09ad080a0.tar.gz
layout: min/max sizing fixes
* fix max size trumping min size
* respect min-width/max-width/min-height/max-height for images
* fix xminwidth calculation for percentage-sized images with an
  indefinite containing size
Diffstat (limited to 'test')
-rw-r--r--test/layout/min-max-width.color.expected1
-rw-r--r--test/layout/min-max-width.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/layout/min-max-width.color.expected b/test/layout/min-max-width.color.expected
index d6a0a72e..de5f4496 100644
--- a/test/layout/min-max-width.color.expected
+++ b/test/layout/min-max-width.color.expected
@@ -30,4 +30,5 @@
 every
 word.
 II 
+min-width beats max-width     
 
diff --git a/test/layout/min-max-width.html b/test/layout/min-max-width.html
index c76a9b13..3aab1c65 100644
--- a/test/layout/min-max-width.html
+++ b/test/layout/min-max-width.html
@@ -29,3 +29,4 @@
 <div id=two>x</div>This text should be displayed after a 2ch wide red box.
 <div id=three><div>This text should have a 2ch wide green background and should wrap on every word.</div></div>
 <div id=four>II</div>
+<div style="background: red; min-width: 30ch; max-width: 1ch">min-width beats max-width</div>