rachelandrew / gridbugs

A curated list of Grid interop issues
MIT License
1.18k stars 25 forks source link

align-items: center not working as expected in Firefox or Chrome when child elements use percentage for max-height. #19

Open joelmcdwebworks opened 7 years ago

joelmcdwebworks commented 7 years ago

I was incorporating CSS Grid into my header layout and discovered that in Firefox and Chrome align-items: center doesn't work as expected when the child element using a percentage for max-height. My practice has been to use max-height: 100% and width: auto to fit logos into site header. It doesn't look like I can do this using grid. It does appear to work in Safari.

Pen: https://codepen.io/joelcomit/pen/wrBqNL