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

[css3-sizing] When collapsed margins are calculated in extrinsic sizing

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 13 Sep 2012 11:26:29 -0700
Message-ID: <CAAWBYDC0TjgxY7TPp6hzGMHFqrLqC988L6Q5c=2=y97CK4MX1w@mail.gmail.com>
To: www-style list <www-style@w3.org>
We should specify that, in the extrinsic sizing calculation, margins
are calculated from the element they end up being attached to after
collapsing.  That is, in an example like this:

<div margin: 10px; height: 100px;>
  <div margin: 10px;>
    <div height: fill-avialable></div>

The inner div should be 100px tall, because the other two margins
collapse to "outside" the definite-height grandparent.

Received on Thursday, 13 September 2012 18:27:18 UTC

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