Copy mIsSrcdocDocument for print clones.

So that we correctly avoid choosing about:srcdoc as a base URI.

Differential Revision: https://phabricator.services.mozilla.com/D114989

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1710822
gecko-commit: 7baec26f3e187e6b4ca3dca34dc8e2d3c394b51f
gecko-reviewers: smaug
diff --git a/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html b/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html
new file mode 100644
index 0000000..160f9f5
--- /dev/null
+++ b/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html
@@ -0,0 +1,8 @@
+<!doctype html>
+<style>
+  body { margin: 0 }
+  img {
+    margin: 16px; /* to account for iframe + body margin in the test */
+  }
+</style>
+<img src="/images/green-100x50.png" alt="FAIL">
diff --git a/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html b/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html
new file mode 100644
index 0000000..4ad922b
--- /dev/null
+++ b/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html
@@ -0,0 +1,6 @@
+<!doctype html>
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1710822">
+<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
+<link rel="author" href="https://mozilla.org" title="Mozilla">
+<link rel="match" href="image-srcdoc-relative-uri-print-ref.html">
+<iframe frameborder=0 srcdoc="<img src=/images/green-100x50.png>">