diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-30 22:25:56 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-30 22:28:00 +0200 |
commit | a78fa4ee235006239bf9e81d8d83adc59415b524 (patch) | |
tree | 7349f5ad87e357fe7f91a61870043da0c9e9f743 /test | |
parent | 4af483ee6a6a3ab5853174c2399dc8942d8b2026 (diff) | |
download | chawan-a78fa4ee235006239bf9e81d8d83adc59415b524.tar.gz |
layout: fix a width sizing bug
As expected, the mystery line was just hiding another bug. (In particular, indefinite containing size constraints were not denied in resolveContentWidth, so it only (accidentally) worked with stretched sizes.)
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/max-width-sets-main-width-indefinite-parent.color.expected | 2 | ||||
-rw-r--r-- | test/layout/max-width-sets-main-width-indefinite-parent.html | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/layout/max-width-sets-main-width-indefinite-parent.color.expected b/test/layout/max-width-sets-main-width-indefinite-parent.color.expected new file mode 100644 index 00000000..9ef30269 --- /dev/null +++ b/test/layout/max-width-sets-main-width-indefinite-parent.color.expected @@ -0,0 +1,2 @@ + [48;2;0;0;255mtesting testing testing testing testing[49m + diff --git a/test/layout/max-width-sets-main-width-indefinite-parent.html b/test/layout/max-width-sets-main-width-indefinite-parent.html new file mode 100644 index 00000000..524a4ebe --- /dev/null +++ b/test/layout/max-width-sets-main-width-indefinite-parent.html @@ -0,0 +1,4 @@ +<table> +<tr> +<td> +<div style="max-width: 100ch; background: blue">testing testing testing testing testing |