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 width: 5em; | 10 width: 5em; |
11 } | 11 } |
12 </style> | 12 </style> |
13 </head> | 13 </head> |
14 <body onload="selectRange(container, 0, container, 3);"> | 14 <body onload="selectRangeAfterLayoutAndPaint(container, 0, container, 3);"> |
15 <!-- Two lines in one block with a span on the first line. Should wrap and | 15 <!-- Two lines in one block with a span on the first line. Should wrap and |
16 include space representing a newline only at end of the first line. --> | 16 include space representing a newline only at end of the first line. --> |
17 <div id="container"> | 17 <div id="container"> |
18 x <span>y</span> z a | 18 x <span>y</span> z a |
19 </div> | 19 </div> |
20 </body> | 20 </body> |
OLD | NEW |