Thomas Dumm wrote:
> I am not shure, but to me it looks as if the image-viewport-width given
> as a percentage of the available space does not work properly. It does
> not have any effect in my layout. But I am not shure if I understand the
> meaning of the viewport-width correctly. Could you please confirm, that
> the behaviour of the key "viewport-width" is correct. Then I know that I
> have an error in my layout.
>  

image-viewport() works as described here:
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/image-viewport.html

May be you forgot to append a "%" after the value passed to the
viewport-width parameter or may be you made a mistake in the other
properties of the elements you are styling (e.g. improper value of
display) or may be you need to use content-width rather than viewport-width.

XHTML example:
---
img {
    display: block;
    content: image-viewport(attribute, src,
                            data-type, anyURI,
                            viewport-width, 50%,
                            viewport-height, 10cm,
                            horizontal-align, right,
                            vertical-align, bottom);
}
---

See attached screenshot.

Note that generally you'll want to specify the percentage from the value
of an attribute. It can be done like this:
---
viewport-width, xpath("concat(@foo,'%')"),
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: viewport-width.png
Type: image/png
Size: 58414 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080814/fbc8c60b/attachment.png
 

Reply via email to