[whatwg] require img dimensions to be correct?

On Tue, 20 Mar 2007, ddailey wrote:
>
> I sometimes enjoy the ability to clone images that have no src or no 
> width or no style. I certainly like to vary the height and width 
> attributes via setAttribute, and I might like, in the future, to be able 
> to attach an <animate> tag (ala SMIL) to the height or width attribute 
> of an <img>. If I had to do this through CSS, it would be a minor 
> setback.
> 
> <img src="hoopla" height="50" width="40" alt="oscillating image of hoopla">
>    <animate attributeName="width" values="10;100;10" dur="4s"
> repeatCount="indefinite">
> </img>

Seems like CSS is the better place for this kind of thing.

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

Received on Tuesday, 29 July 2008 19:43:54 UTC