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

Side by Side Diff: LayoutTests/fast/css-generated-content/hover-style-change.html

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix review comment Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head> 4 <head>
5 <title></title> 5 <title></title>
6 <style type="text/css"> 6 <style type="text/css">
7 div:after { 7 div:after {
8 content: "and generated content"; 8 content: "and generated content";
9 } 9 }
10 div:hover:after { 10 div:hover:after {
11 content: "and generated hover content"; 11 content: "and generated hover content";
12 } 12 }
13 </style> 13 </style>
14 <script type="text/javascript"> 14 <script type="text/javascript">
15 function test() 15 function test()
16 { 16 {
17 if (!window.testRunner) 17 if (!window.testRunner)
18 return; 18 return;
19 // Mouse events only work after an initial layout
20 document.body.offsetLeft;
19 eventSender.mouseMoveTo(12, 12); // hover 21 eventSender.mouseMoveTo(12, 12); // hover
20 eventSender.mouseDown(); // get noticed 22 eventSender.mouseDown(); // get noticed
21 eventSender.mouseUp(); 23 eventSender.mouseUp();
22 } 24 }
23 </script> 25 </script>
24 </head> 26 </head>
25 <body onload="test()"> 27 <body onload="test()">
26 <div> 28 <div>
27 This is a test 29 This is a test
28 </div> 30 </div>
29 <hr> 31 <hr>
30 <p> 32 <p>
31 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=6431">http: //bugzilla.opendarwin.org/show_bug.cgi?id=6431</a> 33 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=6431">http: //bugzilla.opendarwin.org/show_bug.cgi?id=6431</a>
32 REGRESSION: style change where :hover changes only an :after style doesn 't work</i>. 34 REGRESSION: style change where :hover changes only an :after style doesn 't work</i>.
33 </p> 35 </p>
34 <p> 36 <p>
35 The line at the top of the page should read &ldquo;This is a test and ge nerated content&rdquo; 37 The line at the top of the page should read &ldquo;This is a test and ge nerated content&rdquo;
36 or &ldquo;This is a test and generated hover content&rdquo; depending on whether it is 38 or &ldquo;This is a test and generated hover content&rdquo; depending on whether it is
37 hovered. 39 hovered.
38 </p> 40 </p>
39 <p> 41 <p>
40 To reproduce the bug outside of DumpRenderTree, mouse over the div sever al times, and the style change won't update every time 42 To reproduce the bug outside of DumpRenderTree, mouse over the div sever al times, and the style change won't update every time
41 like it should. 43 like it should.
42 </p> 44 </p>
43 </body> 45 </body>
44 </html> 46 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/block/float/float-in-float-hit-testing.html ('k') | LayoutTests/fast/css/hover-active-drag.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698