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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg

Issue 1541083002: Fix invalid selection produced when dragging mouse outside the SVG text element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
(Empty)
1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3 .org/1999/xlink" width="400" height="400" style="border: 1px solid black;">
2 <text id="line" x="130" y="150" font-family="Arial" font-size="10" fill="bla ck">Hello World. Hello, SVG.</text>
3 <script>
4 var line = document.getElementById("line");
5 var bbox = line.getBBox();
6
7 var x = bbox.x + bbox.width/2;
8 var y = 300;
9
10 if (eventSender) {
11 eventSender.mouseMoveTo(x, y);
12 eventSender.mouseDown();
13 eventSender.mouseMoveTo(400, y);
14 eventSender.mouseUp();
15 }
16
17 if (window.testRunner)
18 window.testRunner.dumpSelectionRect();
19 </script>
20 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698