| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 Text match highlight should not extend into the line spacing. |
| 3 <div style="line-height: 30px; font-size: 15px"> |
| 4 <br id='b1'>AAA |
| 5 </div> |
| 6 |
| 7 <div style="line-height: 30px; font-size: 15px; writing-mode: vertical-rl"> |
| 8 <br id='b2'>AAA |
| 9 </div> |
| 10 |
| 11 <script> |
| 12 function highlightRange(element, start, end, active) { |
| 13 var range = document.createRange(); |
| 14 range.setStart(element, start); |
| 15 range.setEnd(element, end); |
| 16 internals.addTextMatchMarker(range, active); |
| 17 } |
| 18 |
| 19 if (window.internals) { |
| 20 onload = function() { |
| 21 highlightRange(document.getElementById('b1').nextSibling, 0, 3, false); |
| 22 highlightRange(document.getElementById('b2').nextSibling, 0, 3, true); |
| 23 internals.setMarkedTextMatchesAreHighlighted(document, true); |
| 24 }; |
| 25 } |
| 26 </script> |
| OLD | NEW |