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

Side by Side Diff: LayoutTests/compositing/culling/filter-occlusion-alpha.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html><head> 2 <html><head>
3 <title>CSS filter blur occlusion test.</title> 3 <title>CSS filter blur occlusion test.</title>
4 <style type="text/css"> 4 <style type="text/css">
5 .composited { 5 .composited {
6 -webkit-transform: translateZ(0); 6 -webkit-transform: translateZ(0);
7 } 7 }
8 .green-parent { 8 .green-parent {
9 width: 600px; 9 width: 600px;
10 height: 600px; 10 height: 600px;
11 } 11 }
12 .centered { 12 .centered {
13 width: 200px; 13 width: 200px;
14 height: 200px; 14 height: 200px;
15 position: absolute; 15 position: absolute;
16 left: 100px; 16 left: 100px;
17 top: 100px; 17 top: 100px;
18 } 18 }
19 .alpha { 19 .alpha {
20 -webkit-filter: opacity(0%); 20 -webkit-filter: opacity(0%);
21 } 21 }
22 </style> 22 </style>
23 <script type="text/javascript"> 23 <script type="text/javascript">
24 if (window.testRunner) { 24 if (window.testRunner) {
25 testRunner.dumpAsText(true); 25 testRunner.dumpAsTextWithPixelResults();
26 } 26 }
27 </script> 27 </script>
28 </head> 28 </head>
29 <body> 29 <body>
30 <!-- 30 <!--
31 This test guards against culling behind filters that change opacity. The red box is given 31 This test guards against culling behind filters that change opacity. The red box is given
32 an opacity of 0% with a CSS filter, so only the green box behind it should be visible. 32 an opacity of 0% with a CSS filter, so only the green box behind it should be visible.
33 --> 33 -->
34 <div class="green-parent composited" style="position:absolute; left:0; top:0"> 34 <div class="green-parent composited" style="position:absolute; left:0; top:0">
35 <div class="centered composited" style="background-color: green;"> 35 <div class="centered composited" style="background-color: green;">
36 </div> 36 </div>
37 </div> 37 </div>
38 <div class="composited centered alpha" style="background-color: red;"> 38 <div class="composited centered alpha" style="background-color: red;">
39 </div> 39 </div>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698