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

Side by Side Diff: third_party/WebKit/LayoutTests/printing/print-media-recalc.html

Issue 1909233002: Spec-compliant parsing and initial values for 'orphans' and 'widows'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some unit tests had non-conformant widphans assumptions too. Created 4 years, 8 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 <script src="../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <style> 3 <style>
4 @media print { 4 @media print {
5 body { font-size: 150px; } 5 body { font-size: 150px; orphans:1; widows:1; }
6 } 6 }
7 </style> 7 </style>
8 A<br> 8 A<br>
9 B 9 B
10 <script> 10 <script>
11 // Check that the 150px font-size for body is applied for printing, causing 11 // Check that the 150px font-size for body is applied for printing, causing
12 // room for only one line per page with a page height of 200px. 12 // room for only one line per page with a page height of 200px.
13 13
14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true); 14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true);
15 15
16 if (window.internals) 16 if (window.internals)
17 shouldBe("internals.numberOfPages(800, 200)", "2"); 17 shouldBe("internals.numberOfPages(800, 200)", "2");
18 18
19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'"); 19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'");
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698