Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / reflections / nested-reflection-mask-change.html
blobb3f95e42d69a6f001cbb24801697556c97c79f4f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <style>
6 .outer {
7 width: 120px;
8 height: 230px;
9 margin: 20px;
10 border: 1px solid black;
11 -webkit-box-reflect: right 10px;
14 .inner {
15 margin: 10px;
16 width: 100px;
17 height: 100px;
18 background-color: green;
19 text-align: center;
20 font-size: 50pt;
21 -webkit-box-reflect: below 10px;
24 .composited {
25 transform: translateZ(0);
28 .masked {
29 -webkit-mask: -webkit-gradient(linear, left top, right top, from(transparent), to(white));
31 </style>
32 <script type="text/javascript" charset="utf-8">
33 if (window.testRunner)
34 testRunner.waitUntilDone();
36 function doTest()
38 window.setTimeout(function() {
39 document.getElementById('inner').className = 'inner composited masked';
40 if (window.testRunner)
41 testRunner.notifyDone();
42 }, 0);
44 window.addEventListener('load', doTest, false);
45 </script>
46 </head>
47 <body>
48 <p>The four green squares should all have the mask applied.</p>
49 <div class="outer box composited">
50 <div id="inner" class="inner composited">
52 </div>
53 </div>
54 </body>
55 </html>