Skip to content

Commit

Permalink
Bug 1860027 [wpt PR 42632] - Add WPT tests for printing with missing …
Browse files Browse the repository at this point in the history
…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 <mstenshochromium.org>
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/main{#1212090}

--

wpt-commits: 3aaf53272bb21b74df6b167bc504cd29542b5b4e
wpt-pr: 42632

UltraBlame original commit: dbfd44c0e10425dd46c1dff491294eeef7736a7b
  • Loading branch information
marco-c committed Nov 8, 2023
1 parent 06184ec commit fcbaf6d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1491107">
Nothing here.
<script>
var root = document.documentElement;
root.parentNode.removeChild(root);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>display:none on root should produce a blank page</title>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<link rel="help" href="https://www.w3.org/TR/css-page-3/#page-properties">
<link rel="match" href="reference/blank-print-ref.html">
<style>
@page {
border: solid red;
background: hotpink;
}
html {
display: none;
}
</style>
FAIL, this page should be blank.

0 comments on commit fcbaf6d

Please sign in to comment.