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

Side by Side Diff: LayoutTests/fast/css/first-letter-hover-002.html

Issue 169643002: SubtreeStyleChange for :hover/:active/:focus with ::first-letter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check for :hover/:active/:focus instead. Created 6 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 | LayoutTests/fast/css/first-letter-hover-002-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 #t { width: 400px; height: 400px; }
4 #t::first-letter { background-color: red; }
5 #t:hover::first-letter { background-color: green; }
6 </style>
7 <div id="t">
8 <div>
9 <p>X</p>
10 <p>The X above should have a green background when hovered.</p>
11 </div>
12 </div>
13 <script>
14 document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
15
16 if (window.eventSender)
17 eventSender.mouseMoveTo(100, 100); // Hover.
18
19 document.body.offsetTop; // Update layout for the hovered state.
20 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/first-letter-hover-002-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698