W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Minima and maxima

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Fri, 04 Feb 2000 14:23:13 -0800
Message-ID: <389B5151.1DB@yahoo.com>
To: www-style@w3.org
Min-width's initial value should be 0 (rather than ua-determined). There
is nothing particularly complicated about zero-width elements - I cannot
see anything intrinsically complicated about rendering:
<P style="width: 0">
Some text in a P element.
</P>
As:
Some
text
in
a
P
element.
, with the entirety of each word overflowing the containing block.

There is also a discrepancy with max-width and max-height as compared
with width and height.

<blockquote
cite="http://www.w3.org/TR/REC-CSS2/syndata.html#length-units">
Some properties allow negative length values, but this may complicate
the formatting model and there may be implementation-specific limits. If
a negative length value cannot be supported, it should be converted to
the nearest value that can be supported.
</blockquote>
<blockquote
cite="http://www.w3.org/TR/REC-CSS2/visudet.html#the-width-property">
Negative values for 'width' are illegal.
</blockquote>
So,
<p style="max-width: -100px">
Some text.
</p>
results in a width of 0 pixels (since negative max-widths are not
illegal and since the negative length will be clipped)
, whereas
<p style="width: -100px">
Some text.
</p>
is illegal, and hence will be ignored and treated as width: auto.

Equally for max-height.
Received on Friday, 4 February 2000 09:21:40 GMT

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