diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-break')
8 files changed, 70 insertions, 2 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 index ba0372df06..58cc0828d2 100644 --- 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 @@ -1,6 +1,6 @@ <!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> +<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, with "print backgrounds" enabled).</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> 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 index 5a9e55973d..9b174caf96 100644 --- 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 @@ -2,7 +2,7 @@ <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> +<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, with "print backgrounds" enabled).</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> diff --git a/testing/web-platform/tests/css/css-break/transform-022-print-ref.html b/testing/web-platform/tests/css/css-break/transform-022-print-ref.html new file mode 100644 index 0000000000..45c3abf181 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-022-print-ref.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<style> + body { margin: 0; } +</style> +<div style="height:500vh;"> + There should be 5 pages. +</div> diff --git a/testing/web-platform/tests/css/css-break/transform-022-print.html b/testing/web-platform/tests/css/css-break/transform-022-print.html new file mode 100644 index 0000000000..b8a097f225 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-022-print.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1442522"> +<link rel="match" href="transform-022-print-ref.html"> +<style> + body { margin: 0; } +</style> +<div style="height:0;"> + There should be 5 pages. +</div> +<div style="transform:rotate(180deg); height:500vh;"></div> diff --git a/testing/web-platform/tests/css/css-break/transform-023-print-ref.html b/testing/web-platform/tests/css/css-break/transform-023-print-ref.html new file mode 100644 index 0000000000..7204e1d657 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-023-print-ref.html @@ -0,0 +1,4 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<p>There should be a green square on the second page, and no red.</p> +<div style="break-before:page; width:100px; height:100px; background:green;"></div> diff --git a/testing/web-platform/tests/css/css-break/transform-023-print.html b/testing/web-platform/tests/css/css-break/transform-023-print.html new file mode 100644 index 0000000000..7650571abe --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-023-print.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1371426"> +<link rel="match" href="transform-023-print-ref.html"> +<p>There should be a green square on the second page, and no red.</p> +<div style="break-before:page; width:100px; height:100px; background:red;"> + <div style="position:absolute; width:0; height:0; transform:translateX(49px);"> + <div style="position:absolute; width:51px; height:100px; background:green;"></div> + </div> + <div style="position:absolute; width:50px; height:100px; background:green;"></div> +</div> diff --git a/testing/web-platform/tests/css/css-break/transform-024-print-ref.html b/testing/web-platform/tests/css/css-break/transform-024-print-ref.html new file mode 100644 index 0000000000..766c415a1b --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-024-print-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<style> + body { margin: 0; } +</style> +<div style="height:100vh; background:yellow;"> + There should be five pages. Each page should have a unique background - but no + red should be seen. +</div> +<div style="height:100vh; background:pink;"></div> +<div style="height:100vh; background:cyan;"></div> +<div style="height:100vh; background:papayawhip;"></div> +<div style="height:100vh; background:olive;"></div> diff --git a/testing/web-platform/tests/css/css-break/transform-024-print.html b/testing/web-platform/tests/css/css-break/transform-024-print.html new file mode 100644 index 0000000000..510b4c2e44 --- /dev/null +++ b/testing/web-platform/tests/css/css-break/transform-024-print.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1371426"> +<link rel="match" href="transform-024-print-ref.html"> +<style> + body { margin: 0; } +</style> +<div style="position:relative; z-index:1; height:100vh;"> + There should be five pages. Each page should have a unique background - but no + red should be seen. +</div> +<!-- This tests that the transform on the container is applied to all the + absolutely positioned descendants, and also that the transform origin is + correct. --> +<div style="transform:rotate(180deg); height:250vh; background:red;"> + <div style="position:absolute; width:100%; transform:translateY(-100vh); top:-100vh; height:100vh; background:yellow;"></div> + <div style="position:absolute; width:100%; height:100vh; background:pink;"></div> + <div style="position:absolute; width:100%; top:100vh; height:100vh; background:cyan;"></div> + <div style="position:absolute; width:100%; transform:translateY(-50vh); top:200vh; height:100vh; background:papayawhip;"></div> + <div style="position:absolute; width:100%; transform:translateY(-100vh); top:300vh; height:100vh; background:olive;"></div> +</div> |