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

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

Issue 283333005: Use RecalcStyleDeferred for printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/printing/print-media-recalc-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3 <style>
4 @media print {
5 body { font-size: 150px; }
6 }
7 </style>
8 A<br>
9 B
10 <script>
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.
13
14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true);
15
16 if (window.internals)
17 shouldBe("internals.numberOfPages(800, 200)", "2");
18
19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/printing/print-media-recalc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698