Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: LayoutTests/svg/text/selection-partial-gradient.html

Issue 585563002: [SVG] Restore the non-selection style after painting the selected run (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak test. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/text/selection-partial-gradient-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/svg/text/selection-partial-gradient-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698