Re: [css3-images] Features Overview

On 5/6/11 1:04 AM, fantasai wrote:
> background-image: url('swirl.png'); /* old UAs */
> background-image: image('sprites.png#xywh=10,30,60,20'); /* new UAs */

An important question.  Would this:

  background-image: url('sprites.png#xywh=10,30,60,20');

still show the sprite in new UAs?  Or would the #xywh thing be 
restricted to urls in image()?

This matters for things outside CSS proper that are mapped into style; 
for example HTML 'background' attributes, by the way.

The spec draft sounds like this would work for url() too; that seems 
like it might cause behavior changes in existing pages...

And things get really interesting if the image is an SVG, where a ref 
already means something entirely different.

It may be worth it to allow the new syntax inside image().

-Boris

Received on Friday, 6 May 2011 16:22:31 UTC