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

Side by Side Diff: LayoutTests/fast/css/hover-leftmost-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
« no previous file with comments | « no previous file | LayoutTests/fast/css/hover-leftmost-quirks-expected.txt » ('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 <!-- quirks mode -->
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 :hover#t1,
5 :hover.c2,
6 :hover[a3] { background-color: green }
7 </style>
8 <div id="t1">Green background when hovered</div>
9 <div id="t2" class="c2">Green background when hovered</div>
10 <div id="t3" a3>Green background when hovered</div>
11 <script>
12 description("Quirks mode - simple selectors right of :hover");
13
14 function moveTo(element) {
15 eventSender.mouseMoveTo(element.offsetLeft + 1, element.offsetTop + 1);
16 }
17
18 var transparent = "rgba(0, 0, 0, 0)";
19 var green = "rgb(0, 128, 0)";
20
21 shouldBeDefined("window.eventSender");
22
23 shouldBe("getComputedStyle(t1).backgroundColor", "transparent");
24 moveTo(t1);
25 shouldBe("getComputedStyle(t1).backgroundColor", "green");
26
27 shouldBe("getComputedStyle(t2).backgroundColor", "transparent");
28 moveTo(t2);
29 shouldBe("getComputedStyle(t2).backgroundColor", "green");
30
31 shouldBe("getComputedStyle(t3).backgroundColor", "transparent");
32 moveTo(t3);
33 shouldBe("getComputedStyle(t3).backgroundColor", "green");
34 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/hover-leftmost-quirks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698