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

Re: [css-sizing] Indefinite margins and padding

From: Simon Sapin <simon.sapin@exyr.org>
Date: Wed, 08 Oct 2014 00:55:08 +0100
Message-ID: <54347D5C.9080105@exyr.org>
To: www-style <www-style@w3.org>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Patrick Walton <pcwalton@mozilla.com>
On 08/10/14 00:49, Simon Sapin wrote:
> http://dev.w3.org/csswg/css-sizing/#block-intrinsic says:
>> If the computed inline-size of a block-level box is min-content,
>> max-content, or a definite size, its min-content inline-size
>> contribution is that size plus any inline-axis margin, border, and
>> padding.> Otherwise, if the computed inline-size of the block is
>> fit-content, auto, or fill, its min-content inline-size contribution
>> is its min-content inline-size plus any inline-axis margin, border,
>> and padding.
>
> How does that work if a margin or padding is not definite? (I.e. a
> percentage or 'auto'.) The Sizing draft doesn’t say as far as I can tell.
>
> I seem to remember "resolve to zero" is the answer, but I can’t find
> where this is defined.


Err, with the right subject this time.

-- 
Simon Sapin
Received on Tuesday, 7 October 2014 23:55:33 UTC

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