Bug 1530839 [wpt PR 15526] - Add test for "fully overlapping" radial gradient case, a=testonly
authorFredrik Söderquist <fs@opera.com>
Wed, 06 Mar 2019 12:35:58 +0000
changeset 464666 5020df9a98bd
parent 464665 e1c49ed3584b
child 464667 21ae0e9fd907
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1530839, 15526, 933413, 1483023, 634711
milestone67.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 1530839 [wpt PR 15526] - Add test for "fully overlapping" radial gradient case, a=testonly Automatic update from web-platform-tests Add test for "fully overlapping" radial gradient case This adds a test for the case where the start and end circles of a radial gradient fully overlap (while having non-zero radii). Bug: 933413 Change-Id: Id059cb607f6fc137111d2306dd9c9eef1f55b6bc Reviewed-on: https://chromium-review.googlesource.com/c/1483023 Commit-Queue: Fredrik Söderquist <fs@opera.com> Commit-Queue: Florin Malita <fmalita@chromium.org> Auto-Submit: Fredrik Söderquist <fs@opera.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#634711} -- wpt-commits: d45e29788020056d6bb95db7920a67306f06ade5 wpt-pr: 15526
testing/web-platform/tests/svg/pservers/reftests/radialgradient-fully-overlapping.svg
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/svg/pservers/reftests/radialgradient-fully-overlapping.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
+  <title>Radial gradient with overlapping start and end circles</title>
+  <metadata>
+    <h:link rel="help" href="https://svgwg.org/svg2-draft/pservers.html#RadialGradientNotes"/>
+    <h:link rel="match" href="reference/green-100x100.svg"/>
+    <h:meta name="assert" content="If the start circle fully overlaps with the end circle, no gradient is drawn."/>
+  </metadata>
+
+  <rect width="100" height="100" fill="green"/>
+
+  <radialGradient id="fully_overlapping" r="100" fr="100">
+    <stop stop-color="red"/>
+    <stop stop-color="red" offset="1"/>
+  </radialGradient>
+  <rect width="100" height="100" fill="url(#fully_overlapping) orange"/>
+</svg>