Bug 1593269 [wpt PR 20046] - Revert to waiting for first interval when pruning first interval, a=testonly

Automatic update from web-platform-tests
Revert to waiting for first interval when pruning first interval

When 'end' changes so that we need to discard/prune our current
interval, and said interval is the first interval, revert back to
waiting for a first interval again.

Bug: 1020163
Change-Id: I7185253474e23a3a58294043102c91e1a59fe10c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895335
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#711709}

--

wpt-commits: 2c92ac0ff99519626494fcb4329891deea0e631d
wpt-pr: 20046

Differential Revision: https://phabricator.services.mozilla.com/D53604
This commit is contained in:
Fredrik Söderquist 2019-11-04 11:46:13 +00:00 коммит произвёл moz-wptsync-bot
Родитель ab0cf88413
Коммит 7a4ccb1dfd
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,28 @@
<!DOCTYPE html>
<title>Timed element not active after first interval active duration changes to unresolved</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<svg>
<rect width="100" height="100" fill="green">
<set attributeName="fill" to="red" fill="freeze"
begin="click" end="click" dur="100ms" repeatCount="indefinite"/>
</rect>
</svg>
<script>
async_test(function(t) {
let set = document.querySelector('set');
window.onload = t.step_func(function() {
t.step_timeout(function() {
set.setAttribute('begin', '-100ms');
set.setAttribute('begin', 'click');
set.parentNode.appendChild(set);
set.setAttribute('end', '-100ms');
set.setAttribute('end', 'click');
window.requestAnimationFrame(t.step_func_done(function() {
let target = set.targetElement;
assert_equals(getComputedStyle(target).fill, 'rgb(0, 128, 0)');
}));
}, 0);
});
});
</script>