Index: LayoutTests/svg/text/selection-partial-gradient.html |
diff --git a/LayoutTests/svg/text/selection-partial-gradient.html b/LayoutTests/svg/text/selection-partial-gradient.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8e6d5f0625ef972b296479f38022f079029c6970 |
--- /dev/null |
+++ b/LayoutTests/svg/text/selection-partial-gradient.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<style> |
+text::selection { |
+ fill: url(#green); |
+} |
+</style> |
+<svg> |
+ <linearGradient id="green"> |
+ <stop stop-color="green"/> |
+ </linearGradient> |
+ <linearGradient id="white"> |
+ <stop stop-color="white"/> |
+ </linearGradient> |
+ <text x="10" y="20" font-size="20" font-family="monospace" fill="url(#white)">PASS FAIL</text> |
+</svg> |
+<script> |
+var textNode = document.querySelector('text').firstChild; |
+var range = new Range(); |
+range.setStart(textNode, 0); |
+range.setEnd(textNode, 4); |
+document.getSelection().addRange(range); |
+</script> |