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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/hover-pseudo-element-quirks.html
diff --git a/LayoutTests/fast/css/hover-pseudo-element-quirks.html b/LayoutTests/fast/css/hover-pseudo-element-quirks.html
new file mode 100644
index 0000000000000000000000000000000000000000..a8413be69dfafc19c91e0ea2977181042eef53c1
--- /dev/null
+++ b/LayoutTests/fast/css/hover-pseudo-element-quirks.html
@@ -0,0 +1,29 @@
+<!-- quirks mode -->
+<script src="../../resources/js-test.js"></script>
+<style>
+:hover::before, :hover::after { background-color: green }
+#t1::before { content: "Green background when hovered" }
+#t2::after { content: "Green background when hovered" }
+</style>
+<div id="t1"></div>
+<div id="t2"></div>
+<script>
+description("Quirks mode - universal :hover on pseudo elements");
+
+function moveTo(element) {
+ eventSender.mouseMoveTo(element.offsetLeft + 1, element.offsetTop + 1);
+}
+
+var transparent = "rgba(0, 0, 0, 0)";
+var green = "rgb(0, 128, 0)";
+
+shouldBeDefined("window.eventSender");
+
+shouldBe("getComputedStyle(t1, '::before').backgroundColor", "transparent");
+moveTo(t1);
+shouldBe("getComputedStyle(t1, '::before').backgroundColor", "green");
+
+shouldBe("getComputedStyle(t2, '::after').backgroundColor", "transparent");
+moveTo(t2);
+shouldBe("getComputedStyle(t2, '::after').backgroundColor", "green");
+</script>
« 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