Re: aspect ratio of box

On Sun, 17 Apr 2005, Barry wrote:
> Ian Hickson wrote:
> > The original dimensions are a markup-level concern. You can already do 
> > the above, just use height and width attributes in HTML.
> 
> Yes, for HTML, but Simon Siemens wrote:
> 
> > The HTML specification explicitly encourages the use of the width and 
> > height attribute to enable a stable layout while loading the whole 
> > page. However in the latest XHTML2 specification I can't find these 
> > two attributes anymore. Thus I assume it's a matter of the 
> > corresponding CSS specification.

Hm, that seems like a problem with XHTML2, not CSS.


> So maybe there needs to be something added to CSS to handle it. Since 
> the original dimensions would be used for the sole purpose of 
> calculating the styled dimensions, they can be considered part of the 
> style.

The original dimensions don't change on a media-dependant way. They're not 
stylistic, they're content. Even in the absense of all style, the images 
still have intrinsic dimensions.

The "height" and "width" attributes are effectively like the "type" 
attribute, they give the UA hints, but are merely informative and will be 
overriden once the real information is received.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 17 April 2005 21:02:18 UTC