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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/selection/selection-repaint.html

Issue 2709693003: Repaint selection when element with ::selection style is recalculated. (Closed)
Patch Set: Fixed review issues Created 3 years, 10 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/paint/invalidation/selection/selection-repaint-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 <style>
3 ::selection {
4 background-color: transparent;
5 color: red
6 }
7 .green::selection {
8 color: green
9 }
10 </style>
11 <span id="t1">This text should be green.</span>
12 <script>
13 if (window.testRunner)
14 testRunner.waitUntilDone();
15
16 function setSelection(textNode) {
17 window.getSelection().removeAllRanges();
18 var range = document.createRange();
19 range.setStart(textNode, 0);
20 range.setEnd(textNode, textNode.data.length);
21 window.getSelection().addRange(range);
22 }
23
24 setSelection(t1.firstChild);
25 requestAnimationFrame(() =>
26 requestAnimationFrame(() => {
27 t1.className = "green";
28 if (window.testRunner)
29 testRunner.notifyDone();
30 }));
31 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/selection/selection-repaint-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698