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

Side by Side Diff: LayoutTests/fast/css/hover-active-drag.html

Issue 313183004: The element under mouse should be in hover state even if its not inActiveChain. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 div { background: rgb(0, 0, 0); } 3 div { background: rgb(0, 0, 0); }
4 div:hover { background: rgb(255, 0, 0); } 4 div:hover { background: rgb(255, 0, 0); }
5 div:hover:active { background: rgb(255, 255, 0); } 5 div:hover:active { background: rgb(255, 255, 0); }
6 div:active { background: rgb(0, 255, 0); } 6 div:active { background: rgb(0, 255, 0); }
7 div { 7 div {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 border: 2px solid rgb(0, 0, 255); 10 border: 2px solid rgb(0, 0, 255);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 shouldHaveBackground(box, 'rgb(255, 0, 0)') 42 shouldHaveBackground(box, 'rgb(255, 0, 0)')
43 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 43 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
44 44
45 eventSender.mouseDown() 45 eventSender.mouseDown()
46 shouldHaveBackground(box, 'rgb(255, 255, 0)') 46 shouldHaveBackground(box, 'rgb(255, 255, 0)')
47 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 47 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
48 48
49 // With the mouse still down, move into the second box. 49 // With the mouse still down, move into the second box.
50 eventSender.mouseMoveTo(50, 150) 50 eventSender.mouseMoveTo(50, 150)
51 shouldHaveBackground(box, 'rgb(0, 255, 0)') 51 shouldHaveBackground(box, 'rgb(0, 255, 0)')
52 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 52 shouldHaveBackground(box2, 'rgb(255, 0, 0)')
53 53
54 // Mouse still down, move outside of both boxes. 54 // Mouse still down, move outside of both boxes.
55 eventSender.mouseMoveTo(400, 50) 55 eventSender.mouseMoveTo(400, 50)
56 shouldHaveBackground(box, 'rgb(0, 255, 0)') 56 shouldHaveBackground(box, 'rgb(0, 255, 0)')
57 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 57 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
58 58
59 eventSender.mouseUp() 59 eventSender.mouseUp()
60 shouldHaveBackground(box, 'rgb(0, 0, 0)') 60 shouldHaveBackground(box, 'rgb(0, 0, 0)')
61 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 61 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
62 } 62 }
63 </script> 63 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/hover-active-drag-expected.txt » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698