me: writes #CSS for literally an entire generation
also me: co-authors a 1,126 page tome on CSS
also also me: cannot figure out how to make a three-row CSS grid behave the way I want it to in all responsive cases
me: writes #CSS for literally an entire generation
also me: co-authors a 1,126 page tome on CSS
also also me: cannot figure out how to make a three-row CSS grid behave the way I want it to in all responsive cases
So I boiled my problem down a simplified test case and it’s still driving me bonkers — the more so because Gecko does what I expect, but Chromium and WebKit do not. In those two, when the rendering window gets short (that is, not much height), the `canvas` element overflows its grid row, despite being set to `height: 100%`. In Gecko, it always stays within its grid row, as I want it to do. Nor can I find a way to get the Gecko behavior across the board. Argh!
I think so. In that case, the grid item will be the div and its "content based minimum size" will depend on its content and the canvas still play a role here and can create the overflow.
min-height:0 on the grid item should (in almost all the cases) fix such issue because you will disable that restriction and your height: 100% will take the lead.