Given this fiddle https://jsfiddle.net/2pct6pbv/2/ , why is the bellow div/span (screenshots) not acting in the same way - meaning the div should have a 24px height (line-height * font-size from body) while the span should have 0px height (check screenshot #2, bottom right chrome inspector)
EDIT: I've added a last screenshot with basically everything stripped down to be similar to the jsfiddle. I have no idea what else to try to reproduce the issue.
body {
line-height: 1.5;
font-size: 16px;
}
div {
background-color: red;
}
span {
display: inline-block;
}
I tried everything to make it behave the same way but it doesn't seem to work. In another page, with the exact same CSS, it seems to behave normally.
Any thoughts?