summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/child-transform-layer-requires-box.html
blob: 5ac7fbae8a5eec5db05e76ba05be8b946b50dde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>
<style>
</style>
<script>
  if (window.testRunner)
      testRunner.dumpAsText();

  onload = function() {
      el0=document.createElement('a'); el0.setAttribute('id','el0'); document.body.appendChild(el0);
      el4=document.createElement('input'); el4.setAttribute('id','el4'); el0.appendChild(el4);
      document.querySelector('style').appendChild(document.createTextNode('#el0 { -webkit-perspective:800 }'));
      document.querySelector('style').appendChild(document.createTextNode('#el0 { opacity:0 }'));
      document.querySelector('style').appendChild(document.createTextNode('#el4 { transform:translate3d(0,20px,0) }'));
  }
</script>
<!--
This test causes a situation where we have a non-box element (a LayoutInline) with
a perspective applied to it. This should not invoke the perspective machinery in the
CompositedLayerMapping or it will crash.
-->
<body>
This test passes if it does not crash.
</body>