Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: LayoutTests/compositing/reflections/nested-reflection-opacity.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <style> 5 <style>
6 .outer { 6 .outer {
7 width: 120px; 7 width: 120px;
8 height: 230px; 8 height: 230px;
9 margin: 20px; 9 margin: 20px;
10 border: 1px solid black; 10 border: 1px solid black;
11 -webkit-box-reflect: right 10px; 11 -webkit-box-reflect: right 10px;
12 } 12 }
13 13
14 .inner { 14 .inner {
15 margin: 10px; 15 margin: 10px;
16 width: 100px; 16 width: 100px;
17 height: 100px; 17 height: 100px;
18 background-color: green; 18 background-color: green;
19 text-align: center; 19 text-align: center;
20 font-size: 50pt; 20 font-size: 50pt;
21 -webkit-box-reflect: below 10px; 21 -webkit-box-reflect: below 10px;
22 } 22 }
23 23
24 .composited { 24 .composited {
25 -webkit-transform: translateZ(0); 25 transform: translateZ(0);
26 } 26 }
27 </style> 27 </style>
28 <script type="text/javascript" charset="utf-8"> 28 <script type="text/javascript" charset="utf-8">
29 if (window.testRunner) 29 if (window.testRunner)
30 testRunner.waitUntilDone(); 30 testRunner.waitUntilDone();
31 31
32 function doTest() 32 function doTest()
33 { 33 {
34 window.setTimeout(function() { 34 window.setTimeout(function() {
35 document.getElementById('inner').style.opacity = '0.5'; 35 document.getElementById('inner').style.opacity = '0.5';
36 if (window.testRunner) 36 if (window.testRunner)
37 testRunner.notifyDone(); 37 testRunner.notifyDone();
38 }, 0); 38 }, 0);
39 } 39 }
40 window.addEventListener('load', doTest, false); 40 window.addEventListener('load', doTest, false);
41 </script> 41 </script>
42 </head> 42 </head>
43 <body> 43 <body>
44 <p>The four green squares should look equally transparent.</p> 44 <p>The four green squares should look equally transparent.</p>
45 <div class="outer box composited"> 45 <div class="outer box composited">
46 <div id="inner" class="inner box composited"> 46 <div id="inner" class="inner box composited">
47 1 47 1
48 </div> 48 </div>
49 </div> 49 </div>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698