blob: 8ff8da70a609419d3e07a6063f04a0c8bb3c4e1d [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<!-- To calculate width of composed glyph -->
<div style="font-size:500%">
<span id="reference">&#x5e9;&#x5b0;</span>
</div>
<p>U+05e9 U+05b0 of following text should be selected.</p>
<div style="font-size:500%">
<span id="target">&#x5e1;&#x5b0;&#x5e9;&#x5b0;</span>
</div>
<script>
var width = document.getElementById("reference").offsetWidth;
var target = document.getElementById("target");
if (window.eventSender) {
window.eventSender.mouseMoveTo(target.offsetLeft + 5, target.offsetTop + 5);
window.eventSender.mouseDown();
window.eventSender.mouseMoveTo(target.offsetLeft + 5 + width / 2, target.offsetTop + 5);
window.eventSender.mouseUp();
}
</script>
</body>
</html>