why 'margin-bottom' have no effect on absolutely positioned element that have 'width' and 'top' properties set. Same goes for 'margin-top' if element has 'bottom' property set
.first {
position: absolute;
left: 0;
top: 50%;
width: 100px;
height: 100px;
margin-bottom: -100px;
background-color: green;
}
.second {
position: absolute;
left: 100px;
top: 50%;
width: 100px;
height: 100px;
margin-bottom: 100px;
background-color: blue;
}
.third {
position: absolute;
left: 200px;
top: 50%;
width: 100px;
height: 100px;
margin-top: 100px;
background-color: red;
}
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
Coundn't find any info in spec related to this behaviour