зеркало из https://github.com/mozilla/gecko-dev.git
25 строки
563 B
HTML
25 строки
563 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<style>
|
|
#test {
|
|
display: none;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
<div id="test"></div>
|
|
<script>
|
|
test.animate({ backgroundColor: [ 'red', 'blue' ] },
|
|
{ duration: 1000,
|
|
iterations: Infinity });
|
|
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
document.styleSheets[0].cssRules[0].style.setProperty('display', 'block');
|
|
test.getBoundingClientRect();
|
|
document.documentElement.classList.remove('reftest-wait');
|
|
});
|
|
});
|
|
</script>
|
|
</html>
|