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

Re: non-rectangular images & <img> tag

From: Olivier GENDRIN <olivier.gendrin@gmail.com>
Date: Tue, 24 Apr 2007 15:53:54 +0200
Message-ID: <e2c275120704240653l7a134897h66248404b0cc1c94@mail.gmail.com>
To: public-html@w3.org

On 4/23/07, Dailey, David P. <david.dailey@sru.edu> wrote:
> So I guess the question is how well does <img> hold up when both the image and the display device are non-rectangular.

This is a very interesting question. I still had to handle non
rectangular effects in some designs, and a way to render
non-rectangular image would have been usefull (and would have avoided
a lot of z-index layers). We can found some turn around method, that
use a lot (a *lot*) of floated div (ex :
http://www.paris-beyrouth.org/Un-habillage-irregulier), but we could
imagine to allow image to have a shape/coords attributes (like
image-map) : the elements outside of the shape would not be rendered,
and the UA will allow content to be displayed there (or to be clicked
by the mouse : the transparent image over a link is a nightmare).

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...
Received on Tuesday, 24 April 2007 13:54:03 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:19 UTC