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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/clip-with-layout-delta.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=15994</title> 3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=15994</title>
4 <style type="text/css"> 4 <style type="text/css">
5 div { 5 div {
6 overflow: hidden; 6 overflow: hidden;
7 } 7 }
8 div, span { 8 div, span {
9 height: 100px; 9 height: 100px;
10 width: 100px; 10 width: 100px;
11 display: block; 11 display: block;
12 } 12 }
13 span.blue { 13 span.blue {
14 padding: 100px 0 0 0; 14 padding: 100px 0 0 0;
15 background: blue; 15 background: blue;
16 } 16 }
17 </style> 17 </style>
18 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 18 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
19 <script type="text/javascript"> 19 <script type="text/javascript">
20 function repaintTest() 20 function repaintTest()
21 { 21 {
22 document.getElementById('t1').removeAttribute("class"); 22 document.getElementById('t1').removeAttribute("class");
23 document.getElementById('t2').setAttribute("class", "blue"); 23 document.getElementById('t2').setAttribute("class", "blue");
24 } 24 }
25 </script> 25 </script>
26 </head> 26 </head>
27 <body onload="runRepaintTest()"> 27 <body onload="runRepaintAndPixelTest()">
28 <div style="background: green;"><span id="t1" class="blue">&nbsp;</span></di v> 28 <div style="background: green;"><span id="t1" class="blue">&nbsp;</span></di v>
29 <div style="position: relative; margin: -100px 0 0 100px; background: red;"> <span id="t2">&nbsp;</span></div> 29 <div style="position: relative; margin: -100px 0 0 100px; background: red;"> <span id="t2">&nbsp;</span></div>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698