Relative positioning with percentages inside auto-height containing block does not work
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
People
(Reporter: levin, Unassigned)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files)
| Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
Comment 4•22 years ago
|
||
Comment 5•22 years ago
|
||
Comment 7•22 years ago
|
||
Comment 8•22 years ago
|
||
| Reporter | ||
Comment 9•22 years ago
|
||
| Reporter | ||
Comment 10•22 years ago
|
||
Comment 11•22 years ago
|
||
Comment 12•22 years ago
|
||
| Reporter | ||
Comment 13•22 years ago
|
||
Comment 14•22 years ago
|
||
Comment 15•22 years ago
|
||
Comment 16•21 years ago
|
||
Comment 17•21 years ago
|
||
Comment 18•21 years ago
|
||
Comment 19•20 years ago
|
||
Comment 20•20 years ago
|
||
Comment 21•19 years ago
|
||
Comment 22•19 years ago
|
||
Comment 23•19 years ago
|
||
Comment 24•19 years ago
|
||
Comment 25•19 years ago
|
||
Comment 26•18 years ago
|
||
Comment 27•18 years ago
|
||
Comment 28•18 years ago
|
||
Updated•17 years ago
|
Comment 31•12 years ago
|
||
Comment 33•12 years ago
|
||
Comment 34•12 years ago
|
||
Updated•4 years ago
|
Comment 36•4 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 4 duplicates.
:dholbert, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 37•4 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 38•3 years ago
|
||
I just ran into this (not for anything important, but for explaining the box model) and realized that the CSS spec does seem to imply that this should work — or, at least, it doesn't say this /shouldn't/ work, so I don't see any reason why it wouldn't.
But I'm bumping this bug because I've discovered a truly delightful quirk:
If a relatively-positioned block in an auto-height parent has a percentage top/bottom when it's added to the document, the top/bottom is ignored. No surprise.
If I use devtools (or, I would assume, regular JS) to /give/ a block relative positioning and a percentage top/bottom... nothing happens. Again, no surprise.
If I then /change/ the percentage top/bottom to any other valid percentage... NOW it works as expected.
A change to the containing block's size causes the inset to be ignored once again.
So this is at least sort of supported already! :)
Description
•