mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
d8c5e6208c
MozReview-Commit-ID: GKLuA9JeOmz --HG-- extra : rebase_source : 76b1ac38924088eb4b48c30b32ffa39bb311f5b0
29 lines
676 B
HTML
29 lines
676 B
HTML
<!doctype html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<meta charset=utf-8>
|
|
<title>Bug 1363639</title>
|
|
<style>
|
|
#outer {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 200px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="outer"><div id="inner"></div></div>
|
|
<script>
|
|
var target = document.querySelector("#outer");
|
|
var anim = target.animate([
|
|
{clip: 'rect(0px, auto, 0px, 0px)'},
|
|
{clip: 'rect(0px, auto, 200px, 0px)'}
|
|
], 2000);
|
|
anim.pause();
|
|
anim.currentTime = 1000;
|
|
document.documentElement.removeAttribute("class");
|
|
</script>
|
|
</body>
|
|
</html>
|