[css-grid] Intrinsic row size wrong calculated if the grid item contains an image |
||
Issue description
Just a very simple example of a grid, where the grid item contains an image:
<div style="display: grid;">
<div id="item">
<img src="https://placehold.it/100x100">
</div>
</div>
The item and row have 105px as height, instead of 100px as expected.
Check it live at: http://jsbin.com/vifuzu/1/edit?html,css,output
,
Jul 1 2016
Yeah images get placed on the baseline of a line, leaving the descent visible. Could try vertical-align: bottom or something to fix it.
,
Jul 5 2016
Yeah that would do the trick, as I said using "display: block;" on the image also works. Sorry for the noise. |
||
►
Sign in to add a comment |
||
Comment 1 by r...@igalia.com
, Jul 1 2016Components: -Blink>Layout>Grid
Status: WontFix (was: Available)