diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-30 22:06:52 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-30 22:10:10 +0100 |
| commit | 5b51ce3501f87e52a49babdf4cb81b6ca2ce364e (patch) | |
| tree | e426d02f788a214a707cadce82907aed44bd6c93 /test/layout | |
| parent | cd069a76e7c6be45c1f44e47310cc2ec378456ec (diff) | |
| download | chawan-5b51ce3501f87e52a49babdf4cb81b6ca2ce364e.tar.gz | |
cascade: prevent blockification for non-inline absolute boxes
The standard says we should blockify. Alas, the standard is lying.
Diffstat (limited to 'test/layout')
| -rw-r--r-- | test/layout/position-absolute-prevents-blockification.expected | 3 | ||||
| -rw-r--r-- | test/layout/position-absolute-prevents-blockification.html | 35 |
2 files changed, 38 insertions, 0 deletions
diff --git a/test/layout/position-absolute-prevents-blockification.expected b/test/layout/position-absolute-prevents-blockification.expected new file mode 100644 index 00000000..e99cc285 --- /dev/null +++ b/test/layout/position-absolute-prevents-blockification.expected @@ -0,0 +1,3 @@ +test 1test 2 +test 1test 2 +test 1test 2 diff --git a/test/layout/position-absolute-prevents-blockification.html b/test/layout/position-absolute-prevents-blockification.html new file mode 100644 index 00000000..1fa49f1d --- /dev/null +++ b/test/layout/position-absolute-prevents-blockification.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<!-- +Fun fact: Blink and Gecko agree on inline-flex, but disagree on +inline-table. +The spec disagrees with both, but that breaks websites. +LOL +--> +<div> +<span> +<div style="display: inline-block; float: left"> +test 1 +</div> +<div style="display: inline-block; float: left; position: absolute"> +test 2 +</div> +</span> +</div> +<br> +<div> +<div style="display: inline-block; float: left"> +test 1 +</div> +<div style="display: inline-table; float: left; position: absolute"> +test 2 +</div> +</div> +<br> +<div> +<div style="display: inline-block; float: left"> +test 1 +</div> +<div style="display: inline-flex; float: left; position: absolute"> +test 2 +</div> +</div> |