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•20 years ago
|
||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Comment 4•20 years ago
|
||
Comment 5•20 years ago
|
||
Comment 7•20 years ago
|
||
Comment 8•20 years ago
|
||
Reporter | ||
Comment 9•20 years ago
|
||
Reporter | ||
Comment 10•20 years ago
|
||
Comment 11•20 years ago
|
||
Comment 12•20 years ago
|
||
Reporter | ||
Comment 13•20 years ago
|
||
![]() |
||
Comment 14•20 years ago
|
||
Comment 15•20 years ago
|
||
Comment 16•20 years ago
|
||
Comment 17•19 years ago
|
||
Comment 18•19 years ago
|
||
Comment 19•19 years ago
|
||
Comment 20•18 years ago
|
||
Comment 21•18 years ago
|
||
Comment 22•18 years ago
|
||
Comment 23•18 years ago
|
||
Comment 24•18 years ago
|
||
Comment 25•18 years ago
|
||
Comment 26•17 years ago
|
||
Comment 27•17 years ago
|
||
Comment 28•17 years ago
|
||
Updated•16 years ago
|
Comment 31•11 years ago
|
||
Comment 33•11 years ago
|
||
Comment 34•11 years ago
|
||
Updated•2 years ago
|
Comment 36•2 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•2 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•2 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
•