Re: non-rectangular images & <img> tag

Olivier GENDRIN wrote:

> We could have that code : <img
> src="example.com/nonRectangularImageCircle.png" alt="" width="100"
> height="100" shape="circle" coords="50%,50%,50%"/>. I allows elegant
> degradation as far as the old UA will ignore shape and coords, and use
> width and height.
> 
> But perhaps this should be done on the CSS side, as far it's a
> presentational issue...

   I would say so. In fact, I'd like to see something like this:

| <img src="Image.png" alt="" style="crop: url('circle.svg')" />

   This would allow you to use the alpha values from images and and SVG
files to perform cropping of both images and other content.

Received on Tuesday, 24 April 2007 23:55:32 UTC