- From: Sergio Villar Senin <svillar@igalia.com>
- Date: Fri, 19 Dec 2014 09:34:03 +0100
- To: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
On 18/12/14 20:33, fantasai wrote: >> >> b) min-width *does* affect tracks sizing. >> >> So despite being under min-content restriction we distribute space till >> we fulfill the min-width of the grid container. This means that the >> track will grow till 100px (used breadth: 100px, max breadth: 110px). >> >> Which is the right one? >> >> Now should b) be correct one, things become a bit complex because I >> guess we should also check that the values of {min/max}-{width/height} >> are definite. > > b) is the right one. Here's why. According to the definition I gave > for min/max-width/height, first we do layout ignoring them. The > track and the grid container are 30px wide. This violates the min > constraint on the grid container, so we redo layout with the width > value as 100px instead of 'min-content'. The track and the grid > container end up as 100px wide. > > Does that make sense? It makes total sense thanks. I'll update the implementation based on this answer. BR
Received on Friday, 19 December 2014 08:34:47 UTC