diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-27 20:50:39 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-27 20:50:39 +0100 |
| commit | 3fdb9c9ccb1ff4eb6fd5b8fde2be3725eb618b4f (patch) | |
| tree | 7bbbfe2236ec5c20366ec48bbe8e9ea567a31eba /test/layout | |
| parent | 93033c2c382aaff01b1aba6f5db7652c35708bf3 (diff) | |
| download | chawan-3fdb9c9ccb1ff4eb6fd5b8fde2be3725eb618b4f.tar.gz | |
layout: fix a flex sizing bug
it has to accept percentage sizes too for intrinsic size clamping,
it seems
Diffstat (limited to 'test/layout')
| -rw-r--r-- | test/layout/flex-perc-width-constrains-intrinsic-min-width.expected | 6 | ||||
| -rw-r--r-- | test/layout/flex-perc-width-constrains-intrinsic-min-width.html | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/layout/flex-perc-width-constrains-intrinsic-min-width.expected b/test/layout/flex-perc-width-constrains-intrinsic-min-width.expected new file mode 100644 index 00000000..15bc70e4 --- /dev/null +++ b/test/layout/flex-perc-width-constrains-intrinsic-min-width.expected @@ -0,0 +1,6 @@ +testtest +testtest +testtest + test + + test test test test diff --git a/test/layout/flex-perc-width-constrains-intrinsic-min-width.html b/test/layout/flex-perc-width-constrains-intrinsic-min-width.html new file mode 100644 index 00000000..47bbf828 --- /dev/null +++ b/test/layout/flex-perc-width-constrains-intrinsic-min-width.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<div style="display: flex; width: 10ch"> +<div>test test test</div> + +<div style="width: 75%"> +test test test test +<div style="white-space: pre"> +test test test test |