OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/ahem.js"></script> | 4 <script src="../../resources/ahem.js"></script> |
5 <script src="../../resources/run-after-layout-and-paint.js"></script> | 5 <script src="../../resources/run-after-layout-and-paint.js"></script> |
6 <script src="resources/selection.js"></script> | 6 <script src="resources/selection.js"></script> |
7 <style> | 7 <style> |
8 div { | 8 div { |
9 font-family: Ahem; | 9 font-family: Ahem; |
10 } | 10 } |
11 </style> | 11 </style> |
12 </head> | 12 </head> |
13 <body onload="selectRange(container, 0, container2, 1);"> | 13 <body onload="selectRangeAfterLayoutAndPaint(container, 0, container2, 1);"> |
14 <!-- Two blocks each with one line. Selection should include space | 14 <!-- Two blocks each with one line. Selection should include space |
15 representing a newline at end of the first line. --> | 15 representing a newline at end of the first line. --> |
16 <div id="container"> | 16 <div id="container"> |
17 a | 17 a |
18 </div> | 18 </div> |
19 <div id="container2"> | 19 <div id="container2"> |
20 b | 20 b |
21 </div> | 21 </div> |
22 </body> | 22 </body> |
OLD | NEW |