Bug 1508349 [wpt PR 14127] - Add test for viewport units in SVG-in-<img> context, a=testonly
authorFredrik Söderquist <fs@opera.com>
Thu, 22 Nov 2018 10:34:07 +0000
changeset 507121 dec1700436465e92682e7112001752f5d9aed814
parent 507120 4ed4a397f224d2987f7b8c7ba22fbdc63de465d9
child 507122 223f2214ba65c111ed3335307ee485d355d503fa
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1508349, 14127, 650147, 1341836, 609346
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1508349 [wpt PR 14127] - Add test for viewport units in SVG-in-<img> context, a=testonly Automatic update from web-platform-testsAdd test for viewport units in SVG-in-<img> context Bug: 650147 Change-Id: I4a158f600acb733477d33ebbd6a504490a5b54a4 Reviewed-on: https://chromium-review.googlesource.com/c/1341836 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#609346} -- wpt-commits: fca3dc941825b298617f8bf6c9ce7c196b4de6f5 wpt-pr: 14127
testing/web-platform/tests/svg/embedded/image-embedding-svg-with-viewport-units.svg
testing/web-platform/tests/svg/embedded/support/green-rect-100x100.svg
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/embedded/image-embedding-svg-with-viewport-units.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     xmlns:h="http://www.w3.org/1999/xhtml">
+  <metadata>
+    <title>&lt;image&gt; embedding SVG image with viewport units</title>
+    <h:link rel="match" href="support/green-rect-100x100.svg"/>
+  </metadata>
+  <image xlink:href="data:image/svg+xml,&lt;svg xmlns='http://www.w3.org/2000/svg'&gt;&lt;rect width='50vw' height='50vh' fill='green'/&gt;&lt;/svg&gt;"
+         width="200" height="200"/>
+</svg>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/embedded/support/green-rect-100x100.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+  <rect width="100" height="100" fill="green"/>
+</svg>