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

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Tue, 25 Feb 2014 16:19:09 -0800
Message-ID: <530D32FD.4070100@mozilla.com>
To: www-style <www-style@w3.org>
Hi www-style,

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).

The CSSOM spec explicitly mentions this possibility when defining the
resolved value of standard length-based properties (e.g. height and
width), and it says we should fall back on the computed value (instead
of converting to pixels) in display:none content:

 # If the property applies to the element or pseudo-element and
 # the resolved value of the 'display' property is not 'none',
 # the resolved value is the used value. Otherwise the resolved
 # value is the computed value.
http://dev.w3.org/csswg/cssom/#resolved-values

Presumably we need the same sort of exception here for the resolved
value of grid-template-rows & grid-template-columns, right?

Thanks,
~Daniel

P.S. (I think the CSSOM really wants the exception to apply *when the
element is in a display:none subtree* -- not just when the element's own
"display" value is "none".)
Received on Wednesday, 26 February 2014 00:19:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC