summaryrefslogtreecommitdiffstats
path: root/image/test/mochitest/mq_dynamic_svg_test.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /image/test/mochitest/mq_dynamic_svg_test.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/test/mochitest/mq_dynamic_svg_test.html')
-rw-r--r--image/test/mochitest/mq_dynamic_svg_test.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/image/test/mochitest/mq_dynamic_svg_test.html b/image/test/mochitest/mq_dynamic_svg_test.html
new file mode 100644
index 0000000000..8acb6d3331
--- /dev/null
+++ b/image/test/mochitest/mq_dynamic_svg_test.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<meta charset=utf-8>
+<style>
+@media (prefers-color-scheme: dark) {
+ rect { fill: green; }
+}
+iframe { border: none; }
+</style>
+<p>inline</p>
+<svg width="50" height="50">
+ <rect width="50" height="50" fill="red"/>
+</svg>
+<p>iframe</p>
+<iframe src='data:image/svg+xml,
+ <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <style>
+ @media (prefers-color-scheme: dark) {
+ rect { fill: green; }
+ }
+ </style>
+ <rect width="50" height="50" fill="red"/>
+ </svg>
+' width=50 height=50></iframe>
+<p>img</p>
+<img src='data:image/svg+xml,
+ <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <style>
+ @media (prefers-color-scheme: dark) {
+ rect { fill: green; }
+ }
+ </style>
+ <rect width="50" height="50" fill="red"/>
+ </svg>
+' width=50 height=50>
+<p>background-image</p>
+<div style='background-image: url("data:image/svg+xml,\
+ <svg xmlns=&apos;http://www.w3.org/2000/svg&apos; width=&apos;50&apos; height=&apos;50&apos;>\
+ <style>\
+ @media (prefers-color-scheme: dark) {\
+ rect { fill: green; }\
+ }\
+ </style>\
+ <rect width=&apos;50&apos; height=&apos;50&apos; fill=&apos;red&apos;/>\
+ </svg>\
+"); width: 50px; height: 50px;'></div>
+<p>img with nested document</p>
+<img src='data:image/svg+xml,
+ <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <image href="data:image/svg+xml,
+ &amp;lt;svg xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot; width=&amp;quot;50&amp;quot; height=&amp;quot;50&amp;quot;>
+ &amp;lt;style>
+ @media (prefers-color-scheme: dark) {
+ rect { fill: green; }
+ }
+ &amp;lt;/style>
+ &amp;lt;rect width=&amp;quot;50&amp;quot; height=&amp;quot;50&amp;quot; fill=&amp;quot;red&amp;quot;/>
+ &amp;lt;/svg>
+ " width="50" height="50"/>
+ </svg>
+' width=50 height=50>