<!DOCTYPE html> | |
<html> | |
<head> | |
<title>RTL Selection repaint test for complex text</title> | |
</head> | |
<body> | |
<!-- The ̀ forces complext text rendering --> | |
<bdo dir="rtl">m̀uspimeroL</bdo> | |
<p> | |
Tests that rtl selections are repainted correctly for complex text. | |
</p> | |
<script> | |
var el = document.getElementsByTagName('bdo')[0]; | |
var text = el.firstChild; | |
window.getSelection().setBaseAndExtent(text, 2, text, 6); | |
</script> | |
</body> | |
</html> |