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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-shadow-clipped.html

Issue 207153002: Remove repaint.js include from css3/filters tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 <!-- 2 <!--
3 This tests verifies that blur is repainted using the full source image of th e element instead of just the dirty area. 3 This tests verifies that blur is repainted using the full source image of th e element instead of just the dirty area.
4 Also it tests that the clipping rectangle of the box is not affecting the sh adow. 4 Also it tests that the clipping rectangle of the box is not affecting the sh adow.
5 There should be two boxes on the screen: one blue and one green of same size . No red should be visible. 5 There should be two boxes on the screen: one blue and one green of same size . No red should be visible.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <style> 9 <style>
10 .clipping_box { 10 .clipping_box {
11 margin: 20px; 11 margin: 20px;
12 width: 100px; 12 width: 100px;
13 height: 100px; 13 height: 100px;
14 overflow: hidden; 14 overflow: hidden;
15 background: red; 15 background: red;
16 } 16 }
17 17
18 .empty_box { 18 .empty_box {
19 height: 50px; 19 height: 50px;
20 } 20 }
21 21
22 .box { 22 .box {
23 height: 100px; 23 height: 100px;
24 width: 100px; 24 width: 100px;
25 background-color: green; 25 background-color: green;
26 } 26 }
27 27
28 .before { 28 .before {
29 background-color: transparent; 29 background-color: transparent;
30 } 30 }
31 31
32 .blur { 32 .blur {
33 -webkit-filter: drop-shadow(0px -100px 0px blue); 33 -webkit-filter: drop-shadow(0px -100px 0px blue);
34 } 34 }
35 </style> 35 </style>
36 36
37 <script src="../../fast/repaint/resources/repaint.js"></script> 37 <script src="../../resources/run-after-display.js"></script>
38 <script> 38 <script>
39 if (window.testRunner) 39 if (window.testRunner) {
40 testRunner.dumpAsTextWithPixelResults(); 40 testRunner.dumpAsTextWithPixelResults();
41 41 testRunner.waitUntilDone();
42 }
42 function repaintTest() 43 function repaintTest()
43 { 44 {
44 document.querySelector(".before").classList.remove("before"); 45 runAfterDisplay(function() {
46 document.querySelector(".before").classList.remove("before");
47 if (window.testRunner)
48 testRunner.notifyDone();
49 });
45 } 50 }
46 </script> 51 </script>
47 </head> 52 </head>
48 53 <body onload="repaintTest()">
49 <body onload="runRepaintTest()">
50
51 <div class="clipping_box"> 54 <div class="clipping_box">
52 <div class="blur"> 55 <div class="blur">
53 <div class="empty_box"></div> 56 <div class="empty_box"></div>
54 <div class="box before"></div> 57 <div class="box before"></div>
55 </div> 58 </div>
56 </div> 59 </div>
57 </body> 60 </body>
58 </html> 61 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-repaint-shadow.html ('k') | LayoutTests/css3/filters/filter-repaint-shadow-rotated.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698