Revision control

1
<!DOCTYPE html>
2
<body>
3
<style>
4
div {
5
position: absolute;
6
height: 100px;
7
top: 0;
8
}
9
</style>
10
<div id="target" style="left: 0; width: 1px; background-color: red;"></div>
11
<div style="left: 1px; width: 798px; background-color: black;"></div>
12
<script>
13
14
if (window.testRunner)
15
testRunner.waitUntilDone();
16
17
const target = document.getElementById("target");
18
target.style.transform = "translateX(799px)";
19
setTimeout(() => {
20
target.style.removeProperty("transform");
21
target.style.transition = "transform 10s linear";
22
setTimeout(() => {
23
if (window.testRunner)
24
testRunner.notifyDone();
25
}, 100);
26
});
27
28
</script>
29
</body>