diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-10-31 18:00:28 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-10-31 18:38:16 +0100 |
| commit | 2fa73721c6ddaa3a497d58f83e987e75194f300c (patch) | |
| tree | 2ad3d9f9bc99b503f753395f9b4a19b38b28e448 /test/layout/margins-float.html | |
| parent | 8782fc0591b9aa72a4b61885cc2520afa2b60477 (diff) | |
| download | chawan-2fa73721c6ddaa3a497d58f83e987e75194f300c.tar.gz | |
layout: refactor flow and fix some bugs in the process
* factor out `margin' field from box state
* get rid of RootInlineFragment
* `nested' -> `children'
* get rid of repositionChildren pass; now we handle relative positioning
and -cha-center/-cha-right separately
* cha-center, cha-right no longer applies to floats
* use consistent naming scheme for tests
* fix float bottom margin strut not being flushed
* fix inline floats changing non-fit-content width
Diffstat (limited to 'test/layout/margins-float.html')
| -rw-r--r-- | test/layout/margins-float.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/layout/margins-float.html b/test/layout/margins-float.html new file mode 100644 index 00000000..1ac7bc94 --- /dev/null +++ b/test/layout/margins-float.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<style> + +* { + font-family: monospace,monospace; + line-height: 1em; + font-size: 18px +} +</style> +<div style="display: inline-block; width: 15ch"> +<div style="margin-bottom: 1em;">wtf?</div> +<div style="float: right; margin-top: 2em">hi from right</div> +<div style="margin-left: 2ch; margin-right: 2ch; margin-top: 2em"> +<div style="float: left"> +<div style="display: inline-block">hi from left</div> +</div> +<!--<div style="margin-top: 5em">ok</div>--> +</div> +<div> +hi in center +</div> +</div> |