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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/text/selection-partial-gradient-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 text::selection {
4 fill: url(#green);
5 }
6 </style>
7 <svg>
8 <linearGradient id="green">
9 <stop stop-color="green"/>
10 </linearGradient>
11 <linearGradient id="white">
12 <stop stop-color="white"/>
13 </linearGradient>
14 <text x="10" y="20" font-size="20" font-family="monospace" fill="url(#white)"> PASS FAIL</text>
15 </svg>
16 <script>
17 var textNode = document.querySelector('text').firstChild;
18 var range = new Range();
19 range.setStart(textNode, 0);
20 range.setEnd(textNode, 4);
21 document.getSelection().addRange(range);
22 </script>
OLDNEW
« 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