5 <title>Test selection across multiple shaper runs
</title>
7 body { font-size:
30px; }
8 ::selection { color: red; background: rgba(
120,
120,
120,
120); }
12 <p>The selection should be painted correctly from and including 猫 until and including C, then from right to left for العر.
</p>
13 <div>吾輩は猫で मानक हिन्दीABCالعربية
</div>
14 <div id=
"multiruns">吾輩は猫で मानक हिन्दीABCالعربية
</div>
16 var node
= document
.getElementById('multiruns').firstChild
;
17 var range
= document
.createRange();
18 range
.setStart(node
, 3);
19 range
.setEnd(node
, node
.length
- 3);
20 window
.getSelection().addRange(range
);