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

Side by Side Diff: third_party/WebKit/LayoutTests/printing/avoid-setting-header-offset-on-header-expected.html

Issue 2803383002: The first table row is pushed down by border-spacing. (Closed)
Patch Set: break-inside:avoid on a row shouldn't prevent breaking inside adjacent border spacing Created 3 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 <body> 2 <body>
3 <style> 3 <style>
4 body { 4 body {
5 margin: 0px; 5 margin: 0px;
6 } 6 }
7 td { 7 td {
8 border: 1px solid black; 8 border: 1px solid black;
9 height: 40px; 9 height: 40px;
10 } 10 }
11 .header { 11 .header {
12 break-inside: avoid; 12 break-inside: avoid;
13 } 13 }
14 </style> 14 </style>
15 <script> 15 <script>
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.setPrinting(); 17 testRunner.setPrinting();
18 </script> 18 </script>
19 <!-- crbug.com/702605: Header uses offset intended for rows. The first header ro w should be at the top of the first page. --> 19 <!-- crbug.com/702605: Header uses offset intended for rows. The first header ro w should be at the top of the first page. -->
20 <table> 20 <table cellspacing="0">
21 <tr> 21 <tr>
22 <td>header 1</td> 22 <td>header 1</td>
23 <td>header 2</td> 23 <td>header 2</td>
24 <td>header 3</td> 24 <td>header 3</td>
25 </tr> 25 </tr>
26 <tr> 26 <tr>
27 <td>1-1</td> 27 <td>1-1</td>
28 <td>2-1</td> 28 <td>2-1</td>
29 <td>3-1</td> 29 <td>3-1</td>
30 </tr> 30 </tr>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 <tr> 96 <tr>
97 <td>1-15</td> 97 <td>1-15</td>
98 <td>2-15</td> 98 <td>2-15</td>
99 <td>3-15</td> 99 <td>3-15</td>
100 </tr> 100 </tr>
101 <tr> 101 <tr>
102 <td>1-16</td> 102 <td>1-16</td>
103 <td>2-16</td> 103 <td>2-16</td>
104 <td>3-16</td> 104 <td>3-16</td>
105 </tr> 105 </tr>
106 <tr>
107 <td>1-17</td>
108 <td>2-17</td>
109 <td>3-17</td>
110 </tr>
106 <tr class="header"> 111 <tr class="header">
107 <td>header 1</td> 112 <td>header 1</td>
108 <td>header 2</td> 113 <td>header 2</td>
109 <td>header 3</td> 114 <td>header 3</td>
110 </tr> 115 </tr>
111 <tr> 116 <tr>
112 <td>1-17</td>
113 <td>2-17</td>
114 <td>3-17</td>
115 </tr>
116 <tr>
117 <td>1-18</td> 117 <td>1-18</td>
118 <td>2-18</td> 118 <td>2-18</td>
119 <td>3-18</td> 119 <td>3-18</td>
120 </tr> 120 </tr>
121 <tr> 121 <tr>
122 <td>1-19</td> 122 <td>1-19</td>
123 <td>2-19</td> 123 <td>2-19</td>
124 <td>3-19</td> 124 <td>3-19</td>
125 </tr> 125 </tr>
126 <tr> 126 <tr>
127 <td>1-20</td> 127 <td>1-20</td>
128 <td>2-20</td> 128 <td>2-20</td>
129 <td>3-20</td> 129 <td>3-20</td>
130 </tr> 130 </tr>
131 </tbody> 131 </tbody>
132 </table> 132 </table>
133 </body> 133 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698