W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css3-images] Image Fragments and SVG URIs

From: Lev Solntsev <greli@mail.ru>
Date: Tue, 03 Jul 2012 14:58:56 +0400
To: www-style@w3.org
Message-ID: <op.wgu94ijd39dhqv@greli-pc.mlan>
On Sun, 01 Jul 2012 14:14:44 +0400, Dr. Olaf Hoffmann  
<Dr.O.Hoffmann@gmx.de> wrote:

> Dirk Schulze:
>> The example for 'Image Fragments' [1] on the CSS3 images spec has an  
>> example
>> for media fragment identifiers:
>> 	background-image: image('sprites.svg#xywh=40,0,20,20')
>> #xywh is the media fragment identifier. This is clearly in conflict with
>> SVG's URI for references [2]. URIs make it possible to target elements  
>> by id
>> within an SVG image.
> SVG has already functionalities for such applications defined:
> http://www.w3.org/TR/SVG/linking.html#LinksIntoSVG
> Because this is already a recommendation, it will be more
> useful to hamonise other drafts with SVG instead of introducing
> potentially incompatible new syntax for something, that already
> works. There is no need to reinvent the wheel here ;o)
> http://dev.w3.org/csswg/css3-images/#image-fragments
> should note something like this:
> background-image: image('sprites.svg#svgView(viewBox(40,0,20,20)))
> to get the intended and recommended behaviour and should reference
> the SVG section with the more general concept, to be able to note other
> parameters as well as the intended aspect ratio, additional  
> transformations
> etc.
> Obviously for a SVG document with the full profile one can as well
> reference a view element with id='xywh' with a viewBox(40,0,20,20)
> to be able to note this:
> background-image: image('sprites.svg#xywh')

Unfortunately, it doesn't work in that way in <img> tags or
background-image:url() attribute in current implementations.

Also it isn't clear, will the image be clipped by the corresponding
viewport, for example if it is centered. I assume it shouldn't and that
differs from “Image Fragments”.
Received on Tuesday, 3 July 2012 10:59:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:18 UTC