W3C home > Mailing lists > Public > www-style@w3.org > April 2007

RE: [Fwd: Re: non-rectangular images & <img> tag]

From: Paul Nelson (ATC) <paulnel@winse.microsoft.com>
Date: Wed, 25 Apr 2007 03:39:26 -0700
Message-ID: <49C257E2C13F584790B2E302E021B6F90ECD1E19@winse-msg-01.segroup.winse.corp.microsoft.com>
To: Matthew Raymond <mattraymond@earthlink.net>, W3C CSS <www-style@w3.org>
CC: Olivier GENDRIN <olivier.gendrin@gmail.com>

So, in your circle.svg file, do you have a solid circle? Or do you have a rectangle with a hollow circle?
 
Paul
 
 

________________________________

From: www-style-request@w3.org on behalf of Matthew Raymond
Sent: Wed 4/25/2007 5:52 PM
To: W3C CSS
Cc: Olivier GENDRIN
Subject: [Fwd: Re: non-rectangular images & <img> tag]




Olivier GENDRIN wrote:
> On 4/25/07, Josef Spillner <spillner@rn.inf.tu-dresden.de> wrote:
>> In this case I'm with Matthew's answer. Such ideas are likely to be
>> found already in office/DTP applications, and it is really a
>> presentation issue.
>
> Hope a CSS WG member read that...

   Good point...

-------- Original Message --------
Subject: Re: non-rectangular images & <img> tag
Resent-Date: Tue, 24 Apr 2007 23:55:35 +0000
Resent-From: public-html@w3.org
Date: Tue, 24 Apr 2007 19:57:58 -0400
From: Matthew Raymond <mattraymond@earthlink.net>
To: Olivier GENDRIN <olivier.gendrin@gmail.com>
CC: public-html@w3.org
References:
<1835D662B263BC4E864A7CFAB2FEEB3D258BD4@msfexch01.srunet.sruad.edu>
<e2c275120704240653l7a134897h66248404b0cc1c94@mail.gmail.com>


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 Wednesday, 25 April 2007 10:40:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT