diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:44:51 +0000 |
commit | 9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /image/test/mochitest/mq_dynamic_svg_test.html | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
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.html | 61 |
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='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: 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, + &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;50&quot; height=&quot;50&quot;> + &lt;style> + @media (prefers-color-scheme: dark) { + rect { fill: green; } + } + &lt;/style> + &lt;rect width=&quot;50&quot; height=&quot;50&quot; fill=&quot;red&quot;/> + &lt;/svg> + " width="50" height="50"/> + </svg> +' width=50 height=50> |