Chromium Code Reviews| Index: LayoutTests/fast/repaint/text-match-transparent-text.html |
| diff --git a/LayoutTests/fast/repaint/text-match-transparent-text.html b/LayoutTests/fast/repaint/text-match-transparent-text.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9e12325d1f2a6d77ae775a4d6bde3dd02db67f00 |
| --- /dev/null |
| +++ b/LayoutTests/fast/repaint/text-match-transparent-text.html |
| @@ -0,0 +1,20 @@ |
| +<!DOCTYPE HTML> |
| +<script> |
| + function highlightRange(id, start, end, active) { |
| + var range = document.createRange(); |
| + var elem = document.getElementById(id).firstChild; |
| + range.setStart(elem, start); |
| + range.setEnd(elem, end); |
| + window.internals.addTextMatchMarker(range, active); |
| + window.internals.setMarkedTextMatchesAreHighlighted(document, true); |
| + } |
| + function highlightTest() { |
| + highlightRange('1', 0, 6, true); |
|
pdr.
2015/07/21 22:03:57
Can you modify this to only select a small range,
|
| + } |
| +</script> |
| + |
| +<body onload="highlightTest()"> |
| +Test for crbug.com/504712 |
| +<p>Find In Page: The below transparent text should be highlighted as orange and painted as black</p> |
| +<span id="1" style="color:transparent">findMe</span> |
| +</body> |