W3C home > Mailing lists > Public > www-style@w3.org > April 2014

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 18 Apr 2014 09:13:26 -0700
Message-ID: <CAAWBYDDr8nrB_UwYF3hGXHCAjJh3miKoW82USH5AE_rQcK8ZEw@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:39 UTC