diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-11-09 16:19:28 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-11-09 16:34:34 +0100 |
| commit | 63abe1308be087f0658186a303fe9e6843d2166a (patch) | |
| tree | 2a366d370e43fe85fc422a125c464fdbfee9925d /test/layout/flex-min-max-sizes.html | |
| parent | 074d86a867c20d6e9daf164e5d03a81cf7ecb2b4 (diff) | |
| download | chawan-63abe1308be087f0658186a303fe9e6843d2166a.tar.gz | |
layout: fix a few more flex sizing bugs
* fix min-width, max-width, etc. not being accounted for properly on the
main axis
* fix fit-content sizing being overridden for flex items
* fix baseline not being set
* somewhat unrelated: fix firstBaseline not being set for block boxes
Diffstat (limited to 'test/layout/flex-min-max-sizes.html')
| -rw-r--r-- | test/layout/flex-min-max-sizes.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/layout/flex-min-max-sizes.html b/test/layout/flex-min-max-sizes.html new file mode 100644 index 00000000..c603191f --- /dev/null +++ b/test/layout/flex-min-max-sizes.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<div class="container" style="display: flex; max-height: 40em; background: aliceblue"> +test +</div> +<div style="background: red; max-height: 500em; display: flex; min-height: 5em; flex-direction: column"> +<div style="background: aliceblue; flex-grow: 1"> +test +</div> +</div> +<div style="background: red; display: flex; min-height: 5em; flex-direction: column"> +<div style="background: aliceblue; max-height: 500em; flex-grow: 1"> +test +</div> +</div> |