layout/reftests/svg/smil/anim-pattern-attr-presence-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.)

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 2 xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 200 200">
michael@0 3 <!-- Bug 544809 - nsSVGPatternFrame::GetPatternWithAttr and callers should
michael@0 4 take account of SMIL animation.
michael@0 5
michael@0 6 This test is a continuation of anim-pattern-attr-presence-01.svg but is
michael@0 7 separated because it currently fails due to bug 621651. Once that bug is
michael@0 8 resolved the tests in this file should be merged into
michael@0 9 anim-pattern-attr-presence-01.svg
michael@0 10 -->
michael@0 11 <!-- 1. x, y: defaults to 0 -->
michael@0 12 <!-- Currently broken by bug 621651 -->
michael@0 13 <defs>
michael@0 14 <pattern xlink:href="#xyRef" id="xy"/>
michael@0 15 <pattern id="xyRef" width="1" height="1">
michael@0 16 <set attributeName="x" to="0.1"/>
michael@0 17 <set attributeName="y" to="-0.1"/>
michael@0 18 <rect width="50" height="50" fill="blue"/>
michael@0 19 <rect x="50" width="50" height="50" fill="red"/>
michael@0 20 <rect y="50" width="50" height="50" fill="red"/>
michael@0 21 <rect x="50" y="50" width="50" height="50" fill="blue"/>
michael@0 22 </pattern>
michael@0 23 </defs>
michael@0 24 <g>
michael@0 25 <rect width="100" height="100" stroke="black" fill="url(#xy)"/>
michael@0 26 <g transform="translate(100)">
michael@0 27 <rect width="100" height="100" stroke="black" fill="url(#xyRef)"/>
michael@0 28 </g>
michael@0 29 </g>
michael@0 30 <!-- 2. width, height: defaults to 0 (disables rendering) -->
michael@0 31 <!-- Currently broken by bug 621651 -->
michael@0 32 <defs>
michael@0 33 <pattern xlink:href="#widthHeightRef" id="widthHeight"/>
michael@0 34 <pattern id="widthHeightRef">
michael@0 35 <set attributeName="width" to="1"/>
michael@0 36 <set attributeName="height" to="1"/>
michael@0 37 <rect width="50" height="50" fill="blue"/>
michael@0 38 <rect x="50" width="50" height="50" fill="red"/>
michael@0 39 <rect y="50" width="50" height="50" fill="red"/>
michael@0 40 <rect x="50" y="50" width="50" height="50" fill="blue"/>
michael@0 41 </pattern>
michael@0 42 </defs>
michael@0 43 <g transform="translate(0 100)">
michael@0 44 <rect width="100" height="100" stroke="black" fill="url(#widthHeight)"/>
michael@0 45 <g transform="translate(100)">
michael@0 46 <rect width="100" height="100" stroke="black"
michael@0 47 fill="url(#widthHeightRef)"/>
michael@0 48 </g>
michael@0 49 </g>
michael@0 50 <!-- If adding more tests here, be sure to update the viewBox on the root svg
michael@0 51 element -->
michael@0 52 </svg>

mercurial