Percentage widths and "nearest containing viewport"

"Ian Harvey [email protected] [svg-developers]" <[email protected]> Mon, 1 Feb 2016 22:02:47 +1100
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
What is the expected rendering of the following small SVG example? I am 
seeing reasonable variation amongst some of the viewers that I have tested.


In the SVG spec, what is the precise meaning of "nearest containing 
viewport"?  For a pattern, does it refer to the viewport containing the 
definition of the pattern, or the viewport containing the use of the 
pattern?




     <?xml version="1.0"?>
     <svg xmlns="http://www.w3.org/2000/svg"
         version="1.1"
         width="100mm"
         height="100mm"
         viewBox="0 0 100 100"
         fill="none" >


       <defs>
         <pattern id="test"
             patternUnits="userSpaceOnUse"
             patternContentUnits="userSpaceOnUse"
             width="50%" height="50%">
           <circle cx="10" cy="10" r="1" fill="green" />
           <circle cx="10%" cy="10" r="2" stroke="green" />
         </pattern>
       </defs>


       <rect x="0" y="0" width="100%" height="100%" stroke="blue" />
       <circle cx="10" cy="20" r="1" fill="blue" />
       <circle cx="10%" cy="20" r="2" stroke="blue" />


       <svg x="0" y="0" width="50" height="50" fill="none">
         <rect fill="none"
               stroke="red" stroke-dasharray="2,4"
               x="0" y="0" width="100%" height="100%" />


         <rect fill="url(#test)"
               x="0" y="0" width="100%" height="100%" />


         <circle cx="10" cy="30" r="1" fill="red" />
         <circle cx="10%" cy="30" r="2" stroke="red" />
       </svg>


     </svg>




------------------------------------
Posted by: Ian Harvey <[email protected]>
------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----