diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-07-25 18:34:30 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-07-25 18:34:30 +0200 |
| commit | bd436a52825bc5423de5cf13fd64b4e0af844afb (patch) | |
| tree | 068ce8d481eca7a572b4edde17dcbb3a3efadbaa /test | |
| parent | edf8d22ca950f23ede001891516e7ca09ad080a0 (diff) | |
| download | chawan-bd436a52825bc5423de5cf13fd64b4e0af844afb.tar.gz | |
layout: fix incorrect absolute positioning
It was broken for parent boxes with indefinite sizes.
Diffstat (limited to 'test')
| -rw-r--r-- | test/layout/absolute-container-indefinite-height.expected | 34 | ||||
| -rw-r--r-- | test/layout/absolute-container-indefinite-height.html | 37 |
2 files changed, 71 insertions, 0 deletions
diff --git a/test/layout/absolute-container-indefinite-height.expected b/test/layout/absolute-container-indefinite-height.expected new file mode 100644 index 00000000..de5dab5e --- /dev/null +++ b/test/layout/absolute-container-indefinite-height.expected @@ -0,0 +1,34 @@ + + +outer 1 +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +bottom 21 + + +outer 2 +bottom 43 diff --git a/test/layout/absolute-container-indefinite-height.html b/test/layout/absolute-container-indefinite-height.html new file mode 100644 index 00000000..eb6fe811 --- /dev/null +++ b/test/layout/absolute-container-indefinite-height.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<pre style="position: relative"> +<div style="position: absolute; bottom: 0">bottom .1</div> +outer 1 +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +<div style="position: absolute; bottom: 0">bottom 2</div> +</pre> +<pre style="position: relative"> +<div style="position: absolute; bottom: 0">bottom .3</div> +outer 2 +<div style="position: absolute; bottom: 0">bottom 4</div> +</pre> |