diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-12-20 22:56:29 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-12-20 23:43:32 +0100 |
| commit | 022a9fb9aa95e9bcace1aa5fd8030425167c8104 (patch) | |
| tree | 39631f6e177895bf037072ceabee17d4f01c622c /test/layout | |
| parent | 4f0524c199902b5e363b63c8df40e03ecc2e069b (diff) | |
| download | chawan-022a9fb9aa95e9bcace1aa5fd8030425167c8104.tar.gz | |
cascade: blockify on position: absolute or fixed
Welp, turns out I was overthinking it. CSS does not support inline
position: absolute at all, it just blockifies.
That does leave us with the question of "why does inline-block behave
differently than block?" Especially because both in Gecko and Blink,
getComputedStyle for absolute inline-blocks gives me "block", not
"inline-block", and yet there is the same difference in rendering when I
change the CSS.
I first thought it's a quirks mode issue, but standards mode doesn't
affect it. Wat.
Diffstat (limited to 'test/layout')
| -rw-r--r-- | test/layout/position-absolute-block-in-inline.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/layout/position-absolute-block-in-inline.html b/test/layout/position-absolute-block-in-inline.html index 0113dac1..c572caef 100644 --- a/test/layout/position-absolute-block-in-inline.html +++ b/test/layout/position-absolute-block-in-inline.html @@ -1,3 +1,4 @@ +<!DOCTYPE html> <!-- absolute, display: inline-block --> <div style="position: relative"> <br> |