layout/reftests/svg/objectBoundingBox-and-pattern-02.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg">
     7     <title>Testcase for elements referencing an objectBoundingBox pattern with a viewBox</title>
     9     <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=605022 -->
    11     <defs>
    12       <pattern id="test" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox" viewBox="0 0 20 20">
    13         <rect width="20" height="20" stroke="none" fill="lime"/>
    14         <rect width="1" height="1" stroke="none" fill="red"/>
    15       </pattern>
    16       <pattern id="cover" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox">
    17         <rect width="0.01" height="0.01" stroke="none" fill="lime"/>
    18       </pattern>
    19     </defs>
    21   <rect width="100%" height="100%" fill="lime"/>
    22   <rect x="20" y="20" width="200" height="200" fill="url(#test)"/>
    23   <rect x="20" y="20" width="200" height="200" fill="url(#cover)"/>
    24 </svg>

mercurial