W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css21][css-sizing][web compat] max-width and intrinsic sizes in a table scenario

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 9 Dec 2015 00:41:38 -0500
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Karl Dubost <kdubost@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20151209054138.GA7642@pescadero.dbaron.org>
On Tuesday 2015-12-08 21:00 -0800, Andrew Fedoniouk wrote:
> So would be the width of outer div here:
> <container of width 100px>
> <div style="width:100%; max-width:min-content; ">
>     <div style="width: 100px; max-width: 50%" />
> </div>
> </container>
> ?
> As for me it should be 50px. But it appears as you are saying it should be zero?

Not in that exact case, since this rule applies only to replaced

However, if the inner div were instead an img, yes.  And this
behavior appears to be required for Web-compatibility (although I
haven't searched the testcases for how many actually specify width,
so I'm not sure that the aspect of max-width:% overriding width:px
for this case is required).


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Wednesday, 9 December 2015 05:42:11 UTC

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