Closed
Bug 1528933
Opened 7 years ago
Closed 7 years ago
Padding-bottom not working inside absolute positionning div
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 748518
People
(Reporter: pierreonthenet, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
I have a fixed-positioned DIV (".fixed") containing another DIV (".absolute") that is absolutely positionned inside.
I tried to add padding in my ".absolute" DIV, but my bottom padding isn't working for an unknown reason.
Here is an exemple : https://jsfiddle.net/c0mjakrx/3/
HTML :
test outside
<div class="fixed">
test fixed
<div class="absolute">
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
test inside<br>
</div>
</div>
CSS :
.fixed {
position: fixed;
bottom: 0;
text-align: right;
height: 50vh;
width: 90%;
}
.absolute {
position: absolute;
top: 5px;
left: 0;
right: 0;
bottom: 0;
overflow: hidden visible;
padding: 15px;
text-align: left;
}
Actual results:
The padding-bottom is ignored by Firefox, has showned on the JSFiddle
Expected results:
The padding-bottom should be used, has it is on Chrome
Updated•7 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Comment 1•7 years ago
|
||
This is bug 748518, but see also bug 1527949 for making Firefox include the padding in the scrollable region.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•