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

Side by Side Diff: LayoutTests/css3/filters/blur-filter-page-scroll-self.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 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a layer 1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a layer
2 that contains a fixed positioned object. 2 that contains a fixed positioned object.
3 One fixed black bar should be visible at the top of the page. The page shoul d be scrolled 3 One fixed black bar should be visible at the top of the page. The page shoul d be scrolled
4 100px and no red should be visible. The rest of the page should be green. 4 100px and no red should be visible. The rest of the page should be green.
5 --> 5 -->
6 <!DOCTYPE html> 6 <!DOCTYPE html>
7 <html> 7 <html>
8 <head> 8 <head>
9 <script> 9 <script>
10 if (window.testRunner) { 10 if (window.testRunner) {
11 // Force software rendering mode. 11 // Force software rendering mode.
12 window.testRunner.overridePreference("WebKitAcceleratedCompositi ngEnabled", "0"); 12 window.testRunner.overridePreference("WebKitAcceleratedCompositi ngEnabled", "0");
13 window.testRunner.waitUntilDone();
13 } 14 }
14 </script> 15 </script>
15 <!-- Make sure the mock scrollbars are enabled after the call to overrid ePreference, otherwise the setting will be overwritten. --> 16 <!-- Make sure the mock scrollbars are enabled after the call to overrid ePreference, otherwise the setting will be overwritten. -->
16 <script src="../../compositing/resources/mock_scrollbars.js"></script> 17 <script src="../../compositing/resources/mock_scrollbars.js"></script>
17 <style> 18 <style>
18 body { 19 body {
19 margin: 0px; 20 margin: 0px;
20 border: 0px; 21 border: 0px;
21 padding: 0px; 22 padding: 0px;
22 } 23 }
23 24
24 #fixedBox { 25 #fixedBox {
25 position: fixed; 26 position: fixed;
26 background-color: #000000; 27 background-color: #000000;
27 height: 100px; 28 height: 100px;
28 width: 100%; 29 width: 100%;
29 -webkit-filter: blur(1px); 30 -webkit-filter: blur(1px);
30 } 31 }
31 32
32 #redBox { 33 #redBox {
33 background-color: red; 34 background-color: red;
34 height: 200px; 35 height: 200px;
35 } 36 }
36 37
37 #greenBox { 38 #greenBox {
38 background-color: green; 39 background-color: green;
39 height: 1000px; 40 height: 1000px;
40 } 41 }
41 </style> 42 </style>
42 <script src="../../fast/repaint/resources/repaint.js"></script> 43 <script src="../../resources/run-after-display.js"></script>
43 <script type="text/javascript"> 44 <script type="text/javascript">
44 function repaintTest() { 45 function repaintTest() {
45 window.scrollTo(0, 100); 46 runAfterDisplay(function() {
47 window.scrollTo(0, 100);
48 if (window.testRunner)
49 testRunner.notifyDone();
50 });
46 } 51 }
47 </script> 52 </script>
48 </head> 53 </head>
49 <body onload="runRepaintTest()"> 54 <body onload="repaintTest()">
50 <div id="fixedBox"></div> 55 <div id="fixedBox"></div>
51 <div id="redBox"></div> 56 <div id="redBox"></div>
52 <div id="greenBox"></div> 57 <div id="greenBox"></div>
53 </body> 58 </body>
54 </html> 59 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/blur-filter-page-scroll-parents.html ('k') | LayoutTests/css3/filters/filter-change-repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698