Re: [css-grid] resolved value of grid-template-rows / grid-template-columns, in "display:none" subtree?

On Fri, Apr 18, 2014 at 8:57 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 02/25/2014 04:19 PM, Daniel Holbert wrote:
>> The http://dev.w3.org/csswg/css-grid/#resolved-track-list currently says:
>>
>>   # The resolved value of the grid-template-rows
>>   # and grid-template-columns properties is the
>>   # used value, serialized as follows:
>>   # [...]
>>   #  * Every track size given as a length in
>>   # pixels, regardless of sizing function.
>>
>> This doesn't account for the possibility that we might be in a
>> "display:none" subtree, however (which would mean we wouldn't have
>> layout information, and wouldn't be able to convert arbitrary sizing
>> functions into pixels).
>
> Wouldn't we also have a problem if the element in question
> was not a grid? Should it also be the computed value then?

Yes, you're right.  At the time, I didn't know that CSSOM defined
resolved values that way (returning computed value for non-applying
properties).

~TJ

Received on Friday, 18 April 2014 16:14:13 UTC