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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script>
3 function highlightRange(id, start, end, active) {
4 var range = document.createRange();
5 var elem = document.getElementById(id).firstChild;
6 range.setStart(elem, start);
7 range.setEnd(elem, end);
8 window.internals.addTextMatchMarker(range, active);
9 window.internals.setMarkedTextMatchesAreHighlighted(document, true);
10 }
11 function highlightTest() {
12 highlightRange('1', 2, 5, true);
13 }
14 </script>
15
16 <body onload="highlightTest()">
17 Test for crbug.com/504712
18 <p>Find In Page: The below transparent text "ndM" from findMe should be highligh ted as orange and painted as black</p>
19 <span id="1" style="color:transparent">findMe</span>
20 </body>
OLDNEW
« 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