OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <style> |
| 6 #test { |
| 7 font-family: arial; |
| 8 font-size: 300%; |
| 9 } |
| 10 </style> |
| 11 </head> |
| 12 <body> |
| 13 <section id="test"> |
| 14 بِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِا<br><span>test 1</span><br><span>te
st 2</span> |
| 15 </section> |
| 16 <section> |
| 17 <p> |
| 18 Tests that the glyph overflow rect, used for repaint, is |
| 19 correctly computed. After selecting and unselecting either |
| 20 <code>test</code> line above the harakat from the first line are |
| 21 correctly repainted. |
| 22 </p> |
| 23 </section> |
| 24 <script> |
| 25 var testElements = document.getElementById('test'). |
| 26 getElementsByTagName('span'); |
| 27 var text = testElements[1].firstChild; |
| 28 window.getSelection().setBaseAndExtent(text, 3, text, text.length); |
| 29 </script> |
| 30 </body> |
| 31 </html> |
OLD | NEW |