You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line-height property on html element is altering the element heights.
There is a workaround that works for me. If I set line-height to 0 on the html element, it is solves the issue but I think this should be fixed on the core.
Reproduction
To show you up what I am talking about, I created a parent div with a background color which contains a img.
Images are inline elements by default and are placed in the baseline, see here: https://jsfiddle.net/62fk1dc8/
To prevent this behaviour set the image to display: block
Description
The
line-height
property onhtml
element is altering the element heights.There is a workaround that works for me. If I set
line-height
to0
on thehtml
element, it is solves the issue but I think this should be fixed on the core.Reproduction
To show you up what I am talking about, I created a parent
div
with a background color which contains aimg
.Expected
It should not alter the height of my
div
at all. In other words, the blue area should not appear.The text was updated successfully, but these errors were encountered: