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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html

Issue 1473363003: Invalidate first line display item clients when first line style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address mstensho's comments Created 5 years 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #t { width: 600px; height: 400px; } 3 #t { width: 600px; height: 400px; }
4 #t::first-line { background-color: red; } 4 #t::first-line { background-color: red; }
5 #t:hover::first-line { background-color: green; } 5 #t:hover::first-line { background-color: green; }
6 </style> 6 </style>
7 <div id="t"> 7 <div id="t">
8 <div> 8 <div>
9 <p>This text should have a green background when hovered.</p> 9 <p>This text should have a green background when hovered.</p>
10 </div> 10 </div>
11 </div> 11 </div>
12 <script src="../../resources/run-after-layout-and-paint.js"></script>
12 <script> 13 <script>
13 document.body.offsetTop; // Force layout. The mouse is not tracked before first layout. 14 runAfterLayoutAndPaint(function() {
14 15 if (window.eventSender)
15 if (window.eventSender)
16 eventSender.mouseMoveTo(100, 100); // Hover. 16 eventSender.mouseMoveTo(100, 100); // Hover.
17 17 document.body.offsetTop; // Update layout for the hovered state.
18 document.body.offsetTop; // Update layout for the hovered state. 18 }, true);
19 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698