summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/transitions/opacity-on-inline.html
blob: e4d8b05ae630744e651bfb9ac87f3b46d27c35e7 (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
<!DOCTYPE>

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Opacity on inline</title>
  <style type="text/css" media="screen">
    #fader {
      -webkit-transition: opacity 1s;
      border: 1px solid black;
    }
    
    .faded {
      opacity: 0.5;
    }
  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
      testRunner.dumpAsText();

    window.addEventListener('load', function() {
      var testSpan = document.getElementById('fader');
      testSpan.className = 'faded';
    }, false);
  </script>
</head>
<body>

<p>This should not assert in debug builds</p>
<span id="fader">Opacity fade on inline</span>

<div style="transform: translateZ(0)"> <!-- throw the page into compositing mode -->
</div>

</body>
</html>