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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/tables/table-section-visual-overflow.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <!doctype HTML> 1 <!doctype HTML>
2 <style type="text/css"> 2 <style type="text/css">
3 #test 3 #test
4 { 4 {
5 display: table-row-group; 5 display: table-row-group;
6 outline-color: black; 6 outline-color: black;
7 outline-style: solid; 7 outline-style: solid;
8 outline-width: 10px; 8 outline-width: 10px;
9 } 9 }
10 #row 10 #row
11 { 11 {
12 display: table-row; 12 display: table-row;
13 } 13 }
14 #table 14 #table
15 { 15 {
16 display: table; 16 display: table;
17 table-layout: fixed; 17 table-layout: fixed;
18 /* Position the table to overlap a raster tile only for outline */ 18 /* Position the table to overlap a raster tile only for outline */
19 position: relative; 19 position: relative;
20 left: 145px; 20 left: 145px;
21 } 21 }
22 #cell 22 #cell
23 { 23 {
24 display: table-cell; 24 display: table-cell;
25 height: 100px; 25 height: 100px;
26 width: 100px; 26 width: 100px;
27 } 27 }
28 </style> 28 </style>
29 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 29 <script src="../../fast/repaint/resources/repaint.js"></script>
30 <div id="table"> 30 <div id="table">
31 <div id="test"> 31 <div id="test">
32 <div id="row"> 32 <div id="row">
33 <div id="cell"></div> 33 <div id="cell"></div>
34 </div> 34 </div>
35 </div> 35 </div>
36 </div> 36 </div>
37 <script> 37 <script>
38 window.enablePixelTesting = true; 38 window.enablePixelTesting = true;
39 function repaintTest() { 39 function repaintTest() {
40 // Moving to 0px will demonstrate the bug, since the invalidation rectangle will not include 40 // Moving to 0px will demonstrate the bug, since the invalidation rectangle will not include
41 // the outline. 41 // the outline.
42 table.style.left = "0px"; 42 table.style.left = "0px";
43 } 43 }
44 44
45 onload = function() { 45 onload = function() {
46 runRepaintTest(); 46 runRepaintTest();
47 } 47 }
48 </script> 48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698