blob: bbbd6524f9fbea29ffc1c0ff2099206ceb8ccff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<html class="reftest-wait reftest-no-flush">
<style>
#target {
background-color: green;
width: 100px;
height: 100px;
transition: background-color 100s steps(1, end);
opacity: 0.5;
}
#target.hover {
background-color: white;
}
</style>
<div id="target"></div>
<script>
document.addEventListener('MozReftestInvalidate', () => {
target.className = 'hover';
target.addEventListener('transitionstart', () => {
document.documentElement.classList.remove('reftest-wait');
});
}, false);
</script>
</html>
|