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/float-resolve-parent.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/float-resolve-parent.html')
| -rw-r--r-- | test/layout/float-resolve-parent.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/layout/float-resolve-parent.html b/test/layout/float-resolve-parent.html new file mode 100644 index 00000000..4ff9a931 --- /dev/null +++ b/test/layout/float-resolve-parent.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML> +<style> + +* { + font-family: monospace,monospace; + line-height: 1em; + font-size: 15px +} +</style> +<script> +window.onload = function() { +document.getElementById("test").innerHTML = "test" +console.log(document.querySelector("html").outerHTML); +} +/* +(function(view) { + "use strict"; + view.Intl = view.webkitURL || view.Intl; +}(window)) +*/ +</script> +<div style="display: flow-root"> +<div> +<div style="float: left; width: 100%; height: 10em; background-color: red"></div> +<div style="margin-top: 1em"> +this is line 1. +this is line 2. +this is line 3. +this is line 4. +this is line 5. +this is line 6. +this is line 7. +this is line 8. +this is line 9. +this is line 10. +</pre> |