W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Replaced elements, min/max-width/height, and box sizing

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 12 May 2004 10:43:51 -0500
Message-ID: <40A24637.2090009@mit.edu>
To: www-style Mailing List <www-style@w3.org>

I was looking over CSS3 UI, and I realized that the interaction of box-sizing 
with the algorithm for determining the computed width/height of a replaced 
element with min/max-width/height set on it is highly undesirable.  The goal of 
that algorithm is to preserve aspect ratios as much as possible, and if the 
computed values include the border and paddings that will not longer be the case.

So it seems that this algorithm needs to be modified for the 
box-sizing:border-box case.

-Boris
Received on Wednesday, 12 May 2004 11:50:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:29 GMT