| 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..6540ce66688a0fb8b7961652d38196e28a6cf2b4
|
| --- /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', 2, 5, true);
|
| + }
|
| +</script>
|
| +
|
| +<body onload="highlightTest()">
|
| +Test for crbug.com/504712
|
| +<p>Find In Page: The below transparent text "ndM" from findMe should be highlighted as orange and painted as black</p>
|
| +<span id="1" style="color:transparent">findMe</span>
|
| +</body>
|
|
|