summaryrefslogtreecommitdiffstats
path: root/dom/svg/test/text-helper-selection.svg
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/svg/test/text-helper-selection.svg
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/svg/test/text-helper-selection.svg')
-rw-r--r--dom/svg/test/text-helper-selection.svg23
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/svg/test/text-helper-selection.svg b/dom/svg/test/text-helper-selection.svg
new file mode 100644
index 000000000..df84a19ac
--- /dev/null
+++ b/dom/svg/test/text-helper-selection.svg
@@ -0,0 +1,23 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300"
+ style="font: 24px monospace">
+
+ <!-- We need these two rects so that getBoundingClientRect of the <svg> does
+ not just return the region covered by the <text>, which would result in
+ the synthesizeMouse calls using the wrong positions. We don't use one
+ big rect because that could interfere with text selection when dragging
+ outside the bounds of text elements. -->
+ <rect width="10" height="10" fill="white"/>
+ <rect x="350" y="250" width="10" height="10" fill="white"/>
+
+ <text x="100" y="50">hello there</text>
+ <text x="100" y="100">to you all!</text>
+ <text x="200" y="150">abc<tspan x="100" dy="10 -10">def</tspan></text>
+ <text x="100" y="200">אבגabc</text>
+ <text x="100" y="250" transform="scale(0.5,1)translate(100)">squashed</text>
+
+ <!-- These two circles are just used for debugging the test; passing true
+ as the last argument to drag() will place these circles at the drag
+ start and end points. -->
+ <circle id="dragstart" fill="blue"/>
+ <circle id="dragend" fill="red"/>
+</svg>