Re: relative image size and svg

On Tuesday, August 20, 2002, 12:00:12 PM, jonathan wrote:

jc> relative image size          (eg in CSS: img {width:10%;})       

jc> works with gif jpg png   but not svg

jc> Is there a workaround*?

Please clarify - is this a specification question (appropriate for
www-style) or an implementation issue (perhaps more appropriate for
svg-developers etc)?

When you say it does not work, what leads you to say that?

http://www.w3.org/TR/SVG/coords.html#ViewportSpace

Clearly states that "The SVG user agent negotiates with its parent
user agent to determine the viewport into which the SVG user agent can
render the document." Clearly, if the parent user agent tells it that
the available space is a particular width (for example, 10% of the
containing block width, or whatever other computation as this is
opaque to the SVG processor) then the initial viewport will be that
size, and the content scaled, clipped and positioned appropriately in
that area based on the width, height,   preserveAspectRatio and
viewBox attributes.

jc> thanks

jc> jonathan chetwynd


jc> *Or is there another graphic file format that supports:

jc> transparency                  (alpha channel, or gif-like)              gif png svg
jc> relative image size          (eg in CSS: img {width:10%;})        gif jpg png   but not svg
jc> some form of hotspot      (imagemaps, alpha or...)                none known that support relative image size, imagemaps otherwise

jc> SVG would appear not to support relative image size, as imagemaps
jc> aren't suited to this type of transform, ie they assume a fixed
jc> image size.

This is completely incorrect. If you were to say

"GIG, JPEG and PNG etc would appear not to support relative image
size, as imagemaps aren't suited to this type of transform, ie they
assume a fixed image size; but SVG fixes that and allows resizable
images (raster or vector) with imagemap functionality."

then I would agree. You seem to express this as its opposite, though,
and I have a hard time understanding how you would draw that
conclusion. Since SVG clearly has such functionality, the 'none known'
in your table is curious.



-- 
 Chris                            mailto:chris@w3.org

Received on Thursday, 29 August 2002 04:56:15 UTC