diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-01 16:03:03 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-01 16:03:03 +0100 |
| commit | 585ca24c924cadf351d9a95143732f3051cb157e (patch) | |
| tree | 5969c9d8159b393108e1dd457115a68099fd1e48 /test | |
| parent | 2914d4553d2fe06028e9bdafaa8a126be3135756 (diff) | |
| download | chawan-585ca24c924cadf351d9a95143732f3051cb157e.tar.gz | |
layout: prevent double-clear for flow roots
I don't like the extra flag, but I don't see a better way.
Diffstat (limited to 'test')
| -rw-r--r-- | test/layout/clear-on-new-bfc-only-clears-in-parent.expected | 12 | ||||
| -rw-r--r-- | test/layout/clear-on-new-bfc-only-clears-in-parent.html | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/test/layout/clear-on-new-bfc-only-clears-in-parent.expected b/test/layout/clear-on-new-bfc-only-clears-in-parent.expected new file mode 100644 index 00000000..c9c94361 --- /dev/null +++ b/test/layout/clear-on-new-bfc-only-clears-in-parent.expected @@ -0,0 +1,12 @@ +test + + + + +testtest +test + + + + +test right diff --git a/test/layout/clear-on-new-bfc-only-clears-in-parent.html b/test/layout/clear-on-new-bfc-only-clears-in-parent.html new file mode 100644 index 00000000..899f7543 --- /dev/null +++ b/test/layout/clear-on-new-bfc-only-clears-in-parent.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<!-- test from the future :P markers shouldn't clear. --> +<style> +li::marker { clear: both; display: block; content: "" } +</style> +<div> +<div style="height: 5em">test</div> +<div style="display: flow-root; clear: both"> +test +<div style="float: left">test</div> +</div> +</div> +<div> +<div style="height: 5em">test</div> +<li style="float: right">right</li> +<div style="float: left">test</div> +</div> |