Bug 1299760 - a testcase for animated-viewBox affecting clip-path. r=heycam

MozReview-Commit-ID: DHnJjyCpxZl

--HG--
extra : rebase_source : 166b5b87d449bc84ef02681b7c3ff63fbaff822d
This commit is contained in:
cku 2016-09-30 12:18:06 +08:00
parent a90989b900
commit 045e2d35cd
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="600" height="400">
<circle cx="300" cy="200" r="100" style="fill:blue;"/>
</svg>

After

Width:  |  Height:  |  Size: 182 B

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="600" height="400" preserveAspectRatio="none"
viewBox="50 100 500 200"
class="reftest-wait"
onload="setTimeAndSnapshot(1, true)">
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect x="50" y="100" width="500" height="200" style="fill:blue;"
clip-path="circle(100px at center) view-box"/>
<animate attributeName="viewBox" values="50 100 500 200; 0 0 600 400"
dur="0.5s" fill="freeze"/>
</svg>

After

Width:  |  Height:  |  Size: 543 B

View File

@ -279,3 +279,5 @@ fuzzy-if(cocoaWidget&&layersGPUAccelerated,1,2) == anim-gradient-attr-presence-0
# Test animation that changes 'display' attribute
== anim-display.svg lime.svg
== anim-display-in-g-element.svg lime.svg
pref(layout.css.clip-path-shapes.enabled,true) fuzzy(63,146) == anim-clipPath-viewBox.svg anim-clipPath-viewBox-ref.svg