summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html b/testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html
new file mode 100644
index 0000000000..1eb011bed8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
+<style>
+ @page {
+ size: 600px 300px;
+ margin: 0;
+ }
+ body {
+ margin: 0;
+ }
+ div {
+ break-after: page;
+ width: 100px;
+ height: 100px;
+ overflow: clip; /* Depending on font, glyphs may overflow. */
+ background: yellow;
+ }
+ div:nth-child(odd) {
+ margin-top: 200px;
+ }
+ div:nth-child(even) {
+ margin-left: 500px;
+ }
+</style>
+<div>
+ bottom left corner
+</div>
+<div>
+ top right corner
+</div>
+<div>
+ bottom left corner
+</div>
+<div>
+ top right corner
+</div>