Re: non-rectangular images & <img> tag

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