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

Unified Diff: chrome/test/data/printing/layout_tests/source_html/css/repeating-item.html

Issue 438963008: Add test case for item not being displayed at each page break when it should be. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added expected PNG. Created 6 years, 5 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: chrome/test/data/printing/layout_tests/source_html/css/repeating-item.html
diff --git a/chrome/test/data/printing/layout_tests/source_html/css/repeating-item.html b/chrome/test/data/printing/layout_tests/source_html/css/repeating-item.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2cfa8f84aea22049cc48b3cc37aa573a323481e
--- /dev/null
+++ b/chrome/test/data/printing/layout_tests/source_html/css/repeating-item.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
ivandavid 2014/08/02 04:14:25 Currently the expected file is on Linux, however I
+<html>
+ <head>
+ <style>
+ @media screen {
+ #logo {
+ border: solid transparent;
+ position: fixed;
+ bottom: 2px;
+ right: 3px;
+ float: right;
+ }
+ #logo:hover {
+ background: rgba(0, 170, 0, 0.3);
+ }
+ #logo:active {
+ background: rgba(248, 253, 36, 0.3);
+ }
+ .page-break {
+ display: none;
+ }
+ }
+ @media print {
+ #logo {
+ position: fixed;
+ bottom: 0;
+ right: 0;
+ }
+ .page-break {
+ display: block;
+ page-break-before: always;
+ }
+ }
+ </style>
+ <script type='text/javascript'></script>
+ </head>
+ <body>
+ <div id="logo" width="35" height="35">
+ <img src="./resources/logo.png"> </img>
+ </div>
+ </div><div>Page 1</div><div class="page-break">
+ </div><div>Page 2</div><div class="page-break">
+ </div><div>Page 3</div>
+ </body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698