- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Fri, 06 May 2011 11:11:30 -0700
- To: www-style@w3.org
On 05/06/2011 10:58 AM, Lev Solntsev wrote:
> fantasai wrote:
>
>> background-image: url('swirl.png'); /* old UAs */
>> background-image: image('sprites.png#xywh=10,30,60,20'); /* new UAs */
>>
>> http://dev.w3.org/csswg/css3-images/#url
>
> IMHO, "xywh" keyword is ugly. Since using hash notation in image URL is already deprecated, how about replacing it with
> "image('sprites.png#crop=10,30,60,20')" or even something like "image-crop('sprites.png',10,30,60,20)"?
We could certainly do something like the latter, but the syntax of URLs
is not controlled by the CSSWG. The #xywh notation is defined by the
Media Fragments WG. Please see the referenced URL. This draft just
refers to that spec.
~fantasai
Received on Friday, 6 May 2011 18:12:01 UTC