blob: b0999583efdfcb8406b9176b93d82ec054f1b7ab [file] [log] [blame]
<!DOCTYPE html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
onload = function() {
var target = document.body;
var transitionEnd = 'rgb(255, 0, 0)';
target.style.transition = 'all 1s';
target.style.background = transitionEnd;
target.offsetTop;
target.style.transition = 'all 0s';
target.offsetTop;
document.documentElement.textContent =
getComputedStyle(target).backgroundColor == transitionEnd ?
'FAIL - Transition has completed' :
'PASS';
if (window.testRunner) {
testRunner.notifyDone();
}
};
</script>