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

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: Rebased and Fixed the build error Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/text-match-transparent-text-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/text-match-transparent-text-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698