summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/old-tests/webdriver/element_state/res/element-moved-behind-other-element-by-transform.html
blob: f91e729deb762f1ab04b6ac4dc29373ea3d664df (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
25
26
27
28
29
30
31
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Element moved behind other element by transform</title>

<style>
  * { position: relative }

  #overlay {
    height: 50px;
    width: 50px;
    background: blue;
    z-index: 1;
  }

  #hidden {
    height: 50px;
    width: 50px;
    background: red;
    z-index: -1;

    transform: translate(0, -50px);

    /* fix your browsers god damnit */
    -webkit-transform: translate(0, -50px);
    -moz-transform: translate(0x, -50px);
  }
</style>

<div id="overlay"></div>
<div id="hidden"></div>