| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> p { margin: 0px; } </style> | 4 <style> p { margin: 0px; } </style> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div style="font-family: monospace; monospace; -webkit-transform: rotate(-45deg)
; width: 200px; height: 200px; -webkit-transform-origin: top right; font-size:50
px;"> | 7 <div style="font-family: monospace; monospace; transform: rotate(-45deg); width:
200px; height: 200px; -webkit-transform-origin: top right; font-size:50px;"> |
| 8 <p>hello</p> | 8 <p>hello</p> |
| 9 <p>world</p> | 9 <p>world</p> |
| 10 </div> | 10 </div> |
| 11 <script> | 11 <script> |
| 12 | 12 |
| 13 // This test ensures WebKit can extend selection vertically inside transform. | 13 // This test ensures WebKit can extend selection vertically inside transform. |
| 14 | 14 |
| 15 window.getSelection().collapse(document.getElementsByTagName('p')[0].firstChild,
2); | 15 window.getSelection().collapse(document.getElementsByTagName('p')[0].firstChild,
2); |
| 16 window.getSelection().modify('extend', 'forward', 'line'); | 16 window.getSelection().modify('extend', 'forward', 'line'); |
| 17 | 17 |
| 18 </script> | 18 </script> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |