New issue
Advanced search Search tips

Issue 750631 link

Starred by 8 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

[css-grid] max-height percentages are wrongly resolved for replaced grid items

Project Member Reported by r...@igalia.com, Jul 31 2017

Issue description


Check the attached example, the image should have a 100px height,
but the "max-height" percentage isn't resolved.

The problem doesn't happen with "height" instead of "max-height".
 
max-height-100.html
184 bytes View Download
Screenshot from 2017-07-31 13-53-58.png
6.6 KB View Download
This has affected me, I spent quite a bit of time trying to work out what was happening before discovering it was simply a bug in Chrome. Is anyone aware of a workaround that will emulate the correct behavior regardless of whether the cell uses `grid-auto-rows: auto` or `grid-auto-rows: <some fixed size here>`?

Comment 2 by yio...@gmail.com, Apr 4 2018

I can come back to this bug. https://codepen.io/yisi/pen/aYKXXO

Comment 3 by r...@igalia.com, Apr 11 2018

BTW, min-height has the very same issue.

Sign in to add a comment