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

Side by Side Diff: LayoutTests/fast/css/hover-pseudo-element-quirks.html

Issue 848853004: Support :hover/:active in quirks when leftmost in compound. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved comments Created 5 years, 11 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
(Empty)
1 <!-- quirks mode -->
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 :hover::before, :hover::after { background-color: green }
5 #t1::before { content: "Green background when hovered" }
6 #t2::after { content: "Green background when hovered" }
7 </style>
8 <div id="t1"></div>
9 <div id="t2"></div>
10 <script>
11 description("Quirks mode - universal :hover on pseudo elements");
12
13 function moveTo(element) {
14 eventSender.mouseMoveTo(element.offsetLeft + 1, element.offsetTop + 1);
15 }
16
17 var transparent = "rgba(0, 0, 0, 0)";
18 var green = "rgb(0, 128, 0)";
19
20 shouldBeDefined("window.eventSender");
21
22 shouldBe("getComputedStyle(t1, '::before').backgroundColor", "transparent");
23 moveTo(t1);
24 shouldBe("getComputedStyle(t1, '::before').backgroundColor", "green");
25
26 shouldBe("getComputedStyle(t2, '::after').backgroundColor", "transparent");
27 moveTo(t2);
28 shouldBe("getComputedStyle(t2, '::after').backgroundColor", "green");
29 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/hover-leftmost-quirks-expected.txt ('k') | LayoutTests/fast/css/hover-pseudo-element-quirks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698