summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/grid
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-break/grid')
-rw-r--r--testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print-ref.html19
-rw-r--r--testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print.html19
2 files changed, 38 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print-ref.html b/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print-ref.html
new file mode 100644
index 0000000000..ba0372df06
--- /dev/null
+++ b/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<link rel="author" title="Psychpsyo" href="mailto:psychpsyo@gmail.com" />
+<p style="height: 50vh">Test passes if there is two purple rectangles at the start of both page 2 and 3 when printing the page (Ctrl+P).</p>
+<div style="display:grid; grid-template-columns:1fr 1fr; break-before:page;">
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+</div>
+<div style="display:grid; grid-template-columns:1fr 1fr; break-before:page;">
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+</div>
diff --git a/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print.html b/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print.html
new file mode 100644
index 0000000000..5a9e55973d
--- /dev/null
+++ b/testing/web-platform/tests/css/css-break/grid/monolithic-overflow-print.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<link rel="author" title="Psychpsyo" href="mailto:psychpsyo@gmail.com">
+<link rel="help" href="https://issues.chromium.org/issues/327643792">
+<link rel="match" href="./monolithic-overflow-print-ref.html">
+<p style="height: 50vh">Test passes if there is two purple rectangles at the start of both page 2 and 3 when printing the page (Ctrl+P).</p>
+<div style="display:grid; grid-template-columns:1fr 1fr;">
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+ <div style="contain:size; height:75vh;">
+ <div style="height:75vh; width: 100px; background:purple;"></div>
+ </div>
+</div>