| <!DOCTYPE html> |
| Text match highlight should not extend into the line spacing. |
| <div style="line-height: 30px; font-size: 15px"> |
| <br id='b1'>AAA |
| </div> |
| |
| <div style="line-height: 30px; font-size: 15px; writing-mode: vertical-rl"> |
| <br id='b2'>AAA |
| </div> |
| |
| <script> |
| function highlightRange(element, start, end, active) { |
| var range = document.createRange(); |
| range.setStart(element, start); |
| range.setEnd(element, end); |
| internals.addTextMatchMarker(range, active); |
| } |
| |
| if (window.internals) { |
| onload = function() { |
| highlightRange(document.getElementById('b1').nextSibling, 0, 3, 'kInactive'); |
| highlightRange(document.getElementById('b2').nextSibling, 0, 3, 'kActive'); |
| internals.setMarkedTextMatchesAreHighlighted(document, true); |
| }; |
| } |
| </script> |