From fcbaf6d7672396467401145bd1e1ea6d1eaf8935 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 8 Nov 2023 15:27:25 +0000 Subject: [PATCH] Bug 1860027 [wpt PR 42632] - Add WPT tests for printing with missing root element., a=testonly Automatic update from web-platform-tests Add WPT tests for printing with missing root element. And remove corresponding non-WPT tests. Test both with a display:none root HTML element, and with the root element completely missing in the DOM. Change-Id: I438a1c5acc6763b69e0caa18020196adfd0c34d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4952500 Commit-Queue: Morten Stenshorne Reviewed-by: Rune Lillesveen Cr-Commit-Position: refs/heads/main{#1212090} -- wpt-commits: 3aaf53272bb21b74df6b167bc504cd29542b5b4e wpt-pr: 42632 UltraBlame original commit: dbfd44c0e10425dd46c1dff491294eeef7736a7b --- .../crashtests/root-element-remove-print.html | 8 ++++++++ .../css/printing/reference/blank-print-ref.html | 2 ++ .../printing/root-element-display-none-print.html | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 testing/web-platform/tests/css/printing/crashtests/root-element-remove-print.html create mode 100644 testing/web-platform/tests/css/printing/reference/blank-print-ref.html create mode 100644 testing/web-platform/tests/css/printing/root-element-display-none-print.html diff --git a/testing/web-platform/tests/css/printing/crashtests/root-element-remove-print.html b/testing/web-platform/tests/css/printing/crashtests/root-element-remove-print.html new file mode 100644 index 000000000000..8497e8c4fd76 --- /dev/null +++ b/testing/web-platform/tests/css/printing/crashtests/root-element-remove-print.html @@ -0,0 +1,8 @@ + + + +Nothing here. + diff --git a/testing/web-platform/tests/css/printing/reference/blank-print-ref.html b/testing/web-platform/tests/css/printing/reference/blank-print-ref.html new file mode 100644 index 000000000000..ad73420cdb97 --- /dev/null +++ b/testing/web-platform/tests/css/printing/reference/blank-print-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/css/printing/root-element-display-none-print.html b/testing/web-platform/tests/css/printing/root-element-display-none-print.html new file mode 100644 index 000000000000..d6802f62251a --- /dev/null +++ b/testing/web-platform/tests/css/printing/root-element-display-none-print.html @@ -0,0 +1,15 @@ + +display:none on root should produce a blank page + + + + +FAIL, this page should be blank.