зеркало из https://github.com/mozilla/gecko-dev.git
Bug 840469 - Make animateMotion-mpath-pathLength-1.svg render in a failure state when its script and/or animations don't run. r=dholbert.
This commit is contained in:
Родитель
6042139e7f
Коммит
53650324ea
|
@ -2,12 +2,12 @@
|
|||
xmlns:xlink="http://www.w3.org/1999/xlink" class="reftest-wait">
|
||||
<title>Test that pathLength of paths has no effect in animation</title>
|
||||
<defs>
|
||||
<path id="path" pathLength="100" d="M-200,0 h400" />
|
||||
<path id="path" pathLength="100" d="M0,0 h400" />
|
||||
</defs>
|
||||
<script xlink:href="../smil-util.js" type="text/javascript"/>
|
||||
<script type="text/javascript">
|
||||
function doTest() {
|
||||
setTimeAndSnapshot(0.5, true);
|
||||
setTimeAndSnapshot(100.5, true);
|
||||
}
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
</script>
|
||||
|
@ -15,16 +15,16 @@
|
|||
|
||||
<!-- calcMode="linear" -->
|
||||
<rect x="10" y="10" width="100" height="100" fill="red"/>
|
||||
<rect x="10" y="10" width="100" height="100" fill="lime">
|
||||
<animateMotion dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear">
|
||||
<rect x="-190" y="10" width="100" height="100" fill="lime">
|
||||
<animateMotion begin="100s" dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear">
|
||||
<mpath xlink:href="#path" />
|
||||
</animateMotion>
|
||||
</rect>
|
||||
|
||||
<!-- calcMode="paced" -->
|
||||
<rect x="10" y="110" width="100" height="100" fill="red"/>
|
||||
<rect x="10" y="110" width="100" height="100" fill="lime">
|
||||
<animateMotion dur="1s">
|
||||
<rect x="-190" y="110" width="100" height="100" fill="lime">
|
||||
<animateMotion begin="100s" dur="1s">
|
||||
<mpath xlink:href="#path" />
|
||||
</animateMotion>
|
||||
</rect>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.1 KiB После Ширина: | Высота: | Размер: 1.1 KiB |
Загрузка…
Ссылка в новой задаче