W3C home > Mailing lists > Public > www-style@w3.org > August 2012

[css3-grid-layout] Misuse of computed style

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 09 Aug 2012 00:16:07 -0700
Message-ID: <502363B7.5070302@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
The current editor's draft has this paragraph:

    # The computed size of all Grid tracks as returned for the 'grid-definition-rows'
    # and 'grid-definition-columns' properties are normalized to used pixel values.
    # All Grid tracks are included in the computed value reported for 'grid-definition-rows'
    # and 'grid-definition-columns' regardless of how the Grid tracks were created,
    # e.g. implicit tracks may be created by Grid items referencing a Grid line not
    # explicitly defined by a 'grid-definition-rows' or 'grid-definition-columns'
    # property. The computed value includes any used values for named lines; any
    # duplicate names must be removed. User agents may use the repeat syntax to
    # avoid expansive string length due to implicit Grid track creation, large
    # spanning values or high repeat counts specified by the author.

While the result of getComputedStyle might rely on used values
in certain cases, the "computed value" per CSS terminology cannot
depend on used values, as used values are calculated with the
computed values as input.

So there are two issues here:
    1. Misuse of terminology needs fixing. (See CSS2.1 section 6.1.)
    2. Do we want these properties' getComputedStyle to return
       computed or used values?

Received on Thursday, 9 August 2012 07:16:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:20 UTC