W3C home > Mailing lists > Public > www-style@w3.org > October 2011

[CSS21] rule on % height in auto-height container should apply to used value, not computed value

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 24 Oct 2011 21:21:47 -0700
To: www-style@w3.org
Message-ID: <20111025042147.GA32618@pickering.dbaron.org>
http://www.w3.org/TR/CSS21/visudet.html#propdef-height says, in the
definition of <percentage>:
  # If the height of the containing block is not specified
  # explicitly (i.e., it depends on content height), and this
  # element is not absolutely positioned, the value computes to
  # 'auto'.

I believe this statement (and the corresponding bit of the "Computed
value" line) should be updated to reflect that this change happens
at the *used value* level but not at the *computed value* level.  I
think it is part of the principle of the computed vs. used value
distinction that computed values of properties should not depend on
the identity of or properties of the element's containing block,
though I don't know if this principle was previously stated.  Thus,
I think it should have been changed when we introduced the concept
of used value.

(I'd note that the prose for max-height and min-height is different,
but should probably be the same, once this is corrected.)

A testcase is attached.  Gecko and WebKit agree with my
interpretation; Opera does not.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂


Received on Tuesday, 25 October 2011 04:22:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:45 GMT