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

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

From: Elliott Sprehn <esprehn@gmail.com>
Date: Wed, 13 Jun 2012 12:20:33 -0700
Message-ID: <CAPJYB1h0ZEFu+YgB_TQwRQ46j9=ETDZpotSpD8vayB2ya2wCAw@mail.gmail.com>
To: www-style@w3.org
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


max(min-content, min(max-content, fill-available))


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.

- Elliott
Received on Wednesday, 13 June 2012 19:27:48 UTC

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