diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-25 18:12:12 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-25 18:12:12 +0200 |
commit | edf8d22ca950f23ede001891516e7ca09ad080a0 (patch) | |
tree | 0f2024dc123db2b0fc3e2021d68ea4973ccb3819 /test | |
parent | 8111072efaa3c4f5908dd54c17ed103d667c217b (diff) | |
download | chawan-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.expected | 1 | ||||
-rw-r--r-- | test/layout/min-max-width.html | 1 |
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 @@ [48;2;0;128;0mev[49mery [48;2;0;128;0mwo[49mrd. [48;2;128;0;128mII [49m +[48;2;255;0;0mmin-width beats max-width [49m 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> |