summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/old-tests/webdriver/element_state/res/element-dynamically-moved-outside-viewport.html
blob: e31912bfd916d9d89b22bb4eeee01078f27130ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Element outside viewport</title>

<style>
  div { position: absolute }
</style>

<div>hidden</div>

<script>
  var el = document.getElementsByTagName("div")[0];
  el.style.top = "-500px";
  el.style.left = "-500px";
</script>