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

Re: [css3-writing-modes] fit-content equation is backwards from the CSS2.1 spec

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 13 Jun 2012 13:01:02 -0700
Message-ID: <CAAWBYDCdxkDx8RjYhnmicTHeTzLk2ffPoiRPSrBy=Fb5ZX9HQQ@mail.gmail.com>
To: Elliott Sprehn <esprehn@gmail.com>
Cc: www-style@w3.org
On Wed, Jun 13, 2012 at 12:20 PM, Elliott Sprehn <esprehn@gmail.com> wrote:
> I'm trying to implement the writing mode width and height keywords in webkit
> and I realized the equation is backwards in the spec from the one it
> references.
>
> http://dev.w3.org/csswg/css3-writing-modes/#intrinsic-sizing
>
> max(min-content, min(max-content, fill-available))
>
> http://www.w3.org/TR/CSS21/visudet.html#float-width
>
> min(max(preferred minimum width, available width), preferred width)
>
> which seems to be equivalent with the new keywords to:
>
> min(max-content, max(min-content, fill-available))
>
> Which is indeed what the code in Webkit currently does for the keyword
> "intrinsic" (old name for fit-content) and for floats.

The two orderings are functionally identical, no?

~TJ
Received on Wednesday, 13 June 2012 20:01:50 GMT

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