gridbugs icon indicating copy to clipboard operation
gridbugs copied to clipboard

height: 100% on an image inside a grid, resize the image to height 0

Open shaal opened this issue 7 years ago • 1 comments

In Chrome 67, applying height: 100% to an img element inside a grid, will set the height of the image to 0

(Firefox doesn't have this problem)

Codepen: https://codepen.io/shaal-the-reactor/pen/RBGVVd

shaal avatar Jul 18 '18 20:07 shaal

I also hit the same issue here: (works in Fx, fails in Chrome) https://codepen.io/anon/pen/QzaLQJ

The only way was to use flex instead: https://codepen.io/anon/pen/oJpvMZ

hfhchan avatar Feb 05 '19 13:02 hfhchan