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

min-width:auto and max-width:auto proposal / was overflow:none

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Mon, 31 May 2004 14:32:31 -0700
Message-ID: <000901c44756$ca826800$1902000a@AFedoniouk>
To: <www-style@w3.org>

I would like to have 'auto' values applied to min-width, max-width,
min-height and max-height attributes.

Meaning of 'auto' value in these attributes:

min-width: auto if width: auto set
  min-width computes to intrinsic-min-width of the element.

min-width: auto if width set to value other than 'auto'
   exactly as like min-width has no value set.

max-width: auto if width: auto set
  max-width computes to intrinsic-max-width of the element.

max-width: auto if width: set to value other than 'auto'
   max-width is not in effect.

Legend:
intrinsic-min-width for an <IMG> means its 'native' width
intrinsic-max-width for an <IMG> means its 'native' width
intrinsic-min-width for a <P> means its minimum width (min width needed to
show the paragraph without overflow)
intrinsic-max-width for a <P> means its maximum width (min width needed to
show the paragraph as one line)

Same rule apply to heights.

Motivations:
Above-stated will allow to model current HTML layouts for e.g. images,
tables, etc.
without need to introduce 'intrinsic' and 'min-intrinsic' values, (C)  David
Baron. (actually there should be one more value - max-intrinsic then)

It seems that Internet Explorer is using: min-width:auto for any element in
its default stylesheet.
All UA's behave as TABLE { max-width:auto } set and in effect.
To see what I mean load following:
<TABLE border=1><TR>
<TD>one two three</TD><TD>four five six</TD>
</TR></TABLE>
and try to resize UA's view.
This table seems as it has width:auto, max-width:auto, min-width:auto set.

All UA's behave currently as { min-height:auto; max-height:auto } set and in
effect for any element.

Any comments?

Andrew Fedoniouk.
http://terrainformatica.com
Received on Monday, 31 May 2004 17:33:25 GMT

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