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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/text-match.html

Issue 1468913002: Find In Page hides the text when text color matches text search hightlight color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 12 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 | third_party/WebKit/LayoutTests/fast/repaint/text-match-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 src="../../resources/ahem.js"></script>
3 <script>
4 function highlightRange(id, start, end, active) {
5 var range = document.createRange();
6 var elem = document.getElementById(id).firstChild;
7 range.setStart(elem, start);
8 range.setEnd(elem, end);
9 window.internals.addTextMatchMarker(range, active);
10 window.internals.setMarkedTextMatchesAreHighlighted(document, true);
11 }
12 function highlightTest() {
13 highlightRange('1', 2, 5, true);
14 }
15 </script>
16
17 <body onload="highlightTest()">
18 Test for crbug.com/512354
19 <p>Find In Page: The below text "ndM" from findMe should be highlighted as orang e and painted as black</p>
20 <span id="1" style="font-family: Ahem; font-size: 20px; color:#FF9632">findMe</s pan>
21 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/repaint/text-match-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698