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

Unified Diff: LayoutTests/printing/print-no-background.html

Issue 1196223008: ViewPainter should skip background in print economy mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix unittests Created 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/printing/print-no-background.html
diff --git a/LayoutTests/printing/print-no-background.html b/LayoutTests/printing/print-no-background.html
new file mode 100644
index 0000000000000000000000000000000000000000..b757039cf8cc871899bc9a040701fde125c8f9d1
--- /dev/null
+++ b/LayoutTests/printing/print-no-background.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.setPrinting();
+</script>
+<style>
+body {
+ background-color: red;
+}
+</style>
+<html>
+<body>
+ This test succeed if root background is correctly ignored in printing mode.
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/printing/print-no-background-expected.html » ('j') | Source/core/paint/BoxPainter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698