DO NOT REPLY [Bug 32528] - 'viewbox' attribute of svg element handled incorrectly

2004-12-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32528.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32528


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2004-12-06 16:02 ---
Thanks Thomas - since this is a Batik/SVG issue then it is not a bug with FOP. 
I will mark it as invalid.

Mark - before raising bugs it is generally a good idea to ask questions on the 
user mailing list. You would have received an answer sooner.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 32528] - 'viewbox' attribute of svg element handled incorrectly

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32528.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32528





--- Additional Comments From [EMAIL PROTECTED]  2004-12-05 03:00 ---
Hi Mark,

I'm pretty sure this is a misunderstanding of the SVG 
specification on your part. In particular I think you 
need to read the sections on viewBox and 
preserveAspectRatio (PAR).

As to your second example you need to read section 14.3.4
which makes it clear that the clip rect is based on
X/Y/Width/Height not the viewBox directly.  So the
content is set to fit horizontally (default value of
PAR).  This means that 'space' is left above and below
the content (think movie letter box).  Since the clip
is based on W/H not viewBox the content above and below
the viewBox area is allowed to show.

I suggest the bug be closed as INVALID, but I will leave that
to a true FOP person.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 32528] - 'viewbox' attribute of svg element handled incorrectly

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32528.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32528


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|Rendering images wrong size |'viewbox' attribute of svg
   ||element handled incorrectly




--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 04:48 ---
It seems the bug is due to the vertical aspect of the svg's viewbox attribute
not being handled correctly.  

The document below demonstrates the problem more clearly.  The second rectangle
drawn here should extend outside of the viewport; however, it's vertical aspect
is still within the view.




?xml version=1.0 encoding=ISO-8859-1?

!-- Dimensions and margins of popular book formats: 
http://www.cafepress.com/cp/info/help/learn_book_layout.aspx --

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:svg=http://www.w3.org/2000/svg;

!-- A typical printed page with  --
fo:layout-master-set
fo:simple-page-master 
master-name=A4 page-width=210mm page-height=297mm
margin-top=1cm   margin-bottom=1cm
margin-left=1cm  margin-right=1cm

!-- Main body inset 3cm from outer margin.  Provides 
170x257mm content area --
fo:region-body   margin=0cm/

!-- 2cm gutters on all sides--
fo:region-before extent=1cm/
fo:region-after  extent=1cm/
fo:region-start  extent=1cm/
fo:region-endextent=1cm/
/fo:simple-page-master
/fo:layout-master-set


!-- Content pages --

fo:page-sequence master-reference=A4

fo:static-content flow-name=xsl-region-before
fo:block text-align-last=justifyfo:inline 
font-style=italicPuzzle
Corner/fo:inlinefo:leader/fo:inline
font-style=italichttp://www.kitfox.com/puzzlecorner/fo:inline/fo:block
/fo:static-content

fo:static-content flow-name=xsl-region-after
fo:block 
text-align=centerfo:page-number//fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body
!--fo:block text-align=center--


fo:block
fo:instream-foreign-object width=190mm 
height=277mm
svg xmlns=http://www.w3.org/2000/svg; x=0 y=0 width=190mm 
height=277mm
rect x=0 y=0 width=190mm height=277mm fill=green stroke=black
stroke-width=1/
/svg
/fo:instream-foreign-object
/fo:block

fo:block
fo:instream-foreign-object width=190mm 
height=277mm
svg xmlns=http://www.w3.org/2000/svg; width=190mm height=277mm viewBox=0
0 10 10
rect x=-2 y=-2 width=14 height=14 fill=blue stroke=black
stroke-width=1/
/svg
/fo:instream-foreign-object
/fo:block

fo:block
fo:instream-foreign-object width=190mm 
height=277mm
svg xmlns=http://www.w3.org/2000/svg; width=190mm height=277mm viewBox=0
0 10 10
rect x=0 y=0 width=10 height=10 fill=red stroke=black
stroke-width=1/
/svg
/fo:instream-foreign-object
/fo:block

/fo:flow


/fo:page-sequence

/fo:root

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.