Closed RudManusachi closed 7 years ago
Windows 10 - Chrome 60.0.3112.113 (64bit)
In Chrome max-height: 0 is ignored when align-items: baseline applied to grid.
max-height: 0
align-items: baseline
Create page with the following HTML/CSS.
<div class="grid hidden"> <div> </div> <div> </div> <div> </div> </div> <div class="grid hidden baseline"> <div> </div> <div>BASELINE</div> <div> </div> </div>
.baseline{ align-items: baseline; } .hidden{ max-height: 0px; } .grid{ margin: 20px; display: grid; overflow: hidden; grid-template-columns: repeat(3, 1fr); } .grid > div{ background: #ff6b6b; color: white; } .grid, .grid > div{ outline: 1px dashed grey; }
Because of class .hidden, which applies max-height: 0, both grids are supposed to be hidden, but one with baseline is not.
.hidden
grid
baseline
https://codepen.io/RudManusachi/pen/jLgNOZ
I've got updated my Chrome to Version 61.0.3163.79 and bug seems to be fixed. =)
Platform
Windows 10 - Chrome 60.0.3112.113 (64bit)
Description
In Chrome
max-height: 0
is ignored whenalign-items: baseline
applied to grid.Steps to reproduce
Create page with the following HTML/CSS.
Because of class
.hidden
, which appliesmax-height: 0
, bothgrid
s are supposed to be hidden, but one withbaseline
is not.Demo
https://codepen.io/RudManusachi/pen/jLgNOZ