| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/ahem.js"></script> | 2 <script src="../../resources/ahem.js"></script> |
| 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 4 <script src="resources/selection.js"></script> | 4 <script src="resources/selection.js"></script> |
| 5 <script> | 5 <script> |
| 6 // Selects two lines and expects a newline to be represented. | 6 // Selects two lines and expects a newline to *not* be represented as newline |
| 7 // highlight selection is currently only enabled for horizontal text. |
| 7 function repaintTest() { | 8 function repaintTest() { |
| 8 selectRange(container, 0, container, 1); | 9 selectRange(container, 0, container, 1); |
| 9 }; | 10 }; |
| 10 window.onload = runRepaintTest; | 11 window.onload = runRepaintTest; |
| 11 </script> | 12 </script> |
| 12 <style> | 13 <style> |
| 13 div { | 14 div { |
| 14 font-family: Ahem; | 15 font-family: Ahem; |
| 15 width: 2em; | 16 height: 2em; |
| 17 -webkit-writing-mode: vertical-lr; |
| 16 } | 18 } |
| 17 </style> | 19 </style> |
| 18 <div id="container"> | 20 <div id="container"> |
| 19 xx y | 21 xx y |
| 20 </div> | 22 </div> |
| OLD | NEW |