summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/sub-layer-focus-ring.html
blob: d814513c3fcd1ec52a1aefb6cc26509fb4b9069e (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
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<style>
.composited {
  transform: translateZ(0);
}

.outer {
  position: absolute;
  width: 500px;
  height: 300px;
  top: 60px;
  left: 100px;
  background-color: yellow;
}

.outlined {
  outline: red auto thin;
  width: 150px;
  height: 50px;
  background-color: lightgrey;
}

.inner {
  width: 80px;
  height: 100px;
}
</style>
</head>
<body>
  <!-- The focus ring parts for the sub-layers should be at correct position,
       regardless whether the inner layer is composited. -->
  <div class="composited outer">
    <div class="outlined">
      <div class="composited inner"></div>
    </div>
  </div>
</body>
</html>