W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: non-rectangular images & <img> tag

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Tue, 24 Apr 2007 19:57:58 -0400
Message-ID: <462E9986.9010207@earthlink.net>
To: Olivier GENDRIN <olivier.gendrin@gmail.com>
CC: public-html@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:53 GMT