Allow degenerate SVG radial gradients
Per spec clarification [1], do not skip drawing of radial gradients with
overlapping start/end radii - defer to Skia's handling of degenerate gradients
instead.
[1] https://github.com/w3c/svgwg/issues/648#issuecomment-474090448
Bug: 933413
Change-Id: I05afae454a1a9e6c5385f592dddbb18c4e44f4a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529266
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#642769}
diff --git a/svg/pservers/reftests/radialgradient-fully-overlapping.svg b/svg/pservers/reftests/radialgradient-fully-overlapping.svg
index e16bb4a..5b5f7bd 100644
--- a/svg/pservers/reftests/radialgradient-fully-overlapping.svg
+++ b/svg/pservers/reftests/radialgradient-fully-overlapping.svg
@@ -3,14 +3,14 @@
<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."/>
+ <h:meta name="assert" content="If the start circle fully overlaps with the end circle, the gradient should be drawn."/>
</metadata>
- <rect width="100" height="100" fill="green"/>
+ <rect width="100" height="100" fill="red"/>
<radialGradient id="fully_overlapping" r="100" fr="100">
- <stop stop-color="red"/>
- <stop stop-color="red" offset="1"/>
+ <stop stop-color="green"/>
+ <stop stop-color="green" offset="1"/>
</radialGradient>
<rect width="100" height="100" fill="url(#fully_overlapping) orange"/>
</svg>