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

Unified Diff: LayoutTests/fast/forms/label/hover-on-moving-mouse-checkbox-to-parent-label.html

Issue 1064543002: Set hovered state of current Hovered node even if it is also common ancestor of oldHovered node and (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/forms/label/hover-on-moving-mouse-checkbox-to-parent-label.html
diff --git a/LayoutTests/fast/forms/label/hover-on-moving-mouse-checkbox-to-parent-label.html b/LayoutTests/fast/forms/label/hover-on-moving-mouse-checkbox-to-parent-label.html
new file mode 100644
index 0000000000000000000000000000000000000000..cfc649b07812232b20572c4f6d1fd4ad7bfb6300
--- /dev/null
+++ b/LayoutTests/fast/forms/label/hover-on-moving-mouse-checkbox-to-parent-label.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/common.js"></script>
+<script>
+function startTest() {
+ var label = document.getElementById("label");
+ var checkbox = document.getElementById("checkbox");
+
+ // Move mouse to checkbox.
+ hoverOverElement(checkbox);
+ // Move mouse to text after checkbox.
+ hoverOverElement(label);
+}
+</script>
+<style>
+ input[type=checkbox]:hover:after {
tkent 2015/05/14 05:24:00 Don't use :after for an input element.
+ content: 'Hovering';
+ top: 2em;
+ position: relative;
+ }
+</style>
+</head>
+<body onload="startTest()">
+<label id="label"><input id="checkbox" type="checkbox" /> Test</label>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698