Bug 41970 - Percentages of viewport wrong if its width/height is undefined
Summary: Percentages of viewport wrong if its width/height is undefined
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Viewer (show other bugs)
Version: 1.7
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-28 07:41 UTC by x00000000
Modified: 2007-03-28 07:41 UTC (History)
0 users



Attachments
testcase as separate file (249 bytes, image/svg+xml)
2007-03-28 07:41 UTC, x00000000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description x00000000 2007-03-28 07:41:16 UTC
This SVG does not do what I expect (especially when resizing the window):

<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"
 preserveAspectRatio="xMinYMid meet">
  <rect width="100" height="100"/>
  <rect fill="#c00" x="20%" y="20%" width="60%" height="60%"/>
</svg>

The spec is unclear: The width of the initial viewport is established by
the width of the outermost svg element, but the default value of this width
attribute is 100% (of the viewport width).
Comment 1 x00000000 2007-03-28 07:41:54 UTC
Created attachment 19831 [details]
testcase as separate file