| 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 <style> | 5 <style> |
| 6 body { | 6 body { |
| 7 font-family: Ahem; | 7 font-family: Ahem; |
| 8 font-size: 16px; | 8 font-size: 16px; |
| 9 -webkit-font-smoothing: none; | 9 -webkit-font-smoothing: none; |
| 10 color: rgba(0, 0, 0, 0.1); | 10 color: rgba(0, 0, 0, 0.1); |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <!-- All texts inside the ruby should be highlighted. --> | 15 <!-- All texts inside the ruby should be highlighted. --> |
| 16 a<ruby>1<rt>1</rt>2<rt>2</rt>3<rt>3</rt>4<rt>4</rt></ruby>b | 16 a<ruby>1<rt>1</rt>2<rt>2</rt>3<rt>3</rt>4<rt>4</rt></ruby>b |
| 17 <script> | 17 <script> |
| 18 var range = document.createRange(); | 18 window.getSelection().setBaseAndExtent(document.body.childNodes[2], 1, document.
body.childNodes[4], 1) |
| 19 range.selectNodeContents(document.body); | |
| 20 window.getSelection().addRange(range); | |
| 21 </script> | 19 </script> |
| 22 </body> | 20 </body> |
| 23 </html> | 21 </html> |
| OLD | NEW |