Re: [csswg-drafts] [css-grid-2][css-grid] `grid-template-rows/columns` Computed / Resolved Values for 'subgrid' values (#4362)

>  the list of all the values including the ancestor values is what you are using to perform layout

Well, we don't include line names derived from `grid-template-areas` either (even from the same element). What we use in Layout is a set of data structures with line names from multiple sources: the computed values of `grid-template-rows/columns/areas` from the subgrid itself and its ancestors. It seems you're imagining a hypothetical _used value_ that doesn't actually exist while we're performing layout.

That said, `getComputedStyle` can of course be defined to return whatever we want in this case... even if it means synthesizing a _used value_ that never existed. I'm just saying that it's likely harder to implement (I haven't tried tho).

The spec looks fine to me now.

-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4362#issuecomment-541958819 using your GitHub account

Received on Monday, 14 October 2019 22:26:46 UTC