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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/fixed-tranformed-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 body { 6 body {
7 height: 1000px; 7 height: 1000px;
8 margin: 0; 8 margin: 0;
9 } 9 }
10 #test { 10 #test {
11 width: 100px; 11 width: 100px;
12 height: 100px; 12 height: 100px;
13 background-color: red; 13 background-color: green;
14 position: fixed; 14 position: absolute;
15 top: 10px; 15 top: 110px;
16 left: 10px; 16 left: 60px;
17 transform: translate(50px, 50px);
18 }
19
20 .box:hover {
21 background-color: green;
22 } 17 }
23 </style> 18 </style>
24 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
25 <script type="text/javascript"> 19 <script type="text/javascript">
26 function repaintTest()
27 {
28 document.getElementById('test').style.background='green';
29 }
30
31 function setupTest() { 20 function setupTest() {
32 window.scrollBy(0, 50); 21 window.scrollBy(0, 50);
33 runRepaintTest();
34 }; 22 };
35 window.addEventListener('load', setupTest, false); 23 window.addEventListener('load', setupTest, false);
36 </script> 24 </script>
37 </head> 25 </head>
38 <body> 26 <body>
39 27
40 <!-- 28 <!--
41 https://bugs.webkit.org/show_bug.cgi?id=36686 29 https://bugs.webkit.org/show_bug.cgi?id=36686
42 Test repainting of a fixed-position element with a transform. 30 Test repainting of a fixed-position element with a transform.
43 The box should be entirely green. 31 The box should be entirely green.
44 --> 32 -->
45 <div id="test"></div> 33 <div id="test"></div>
46 34
47 </body> 35 </body>
48 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698