Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: LayoutTests/fast/repaint/text-match-transparent-text.html

Issue 1220733012: Display transparent text when it's being searched and selected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added Layout Test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ }
+</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>

Powered by Google App Engine
This is Rietveld 408576698