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

Unified Diff: LayoutTests/fast/forms/button/button-focus-by-label-click.html

Issue 21321002: Form control focus by click on a label should be handled as same as focus (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test Created 7 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/button/button-focus-by-label-click-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/button/button-focus-by-label-click.html
diff --git a/LayoutTests/fast/forms/button/button-focus-by-label-click.html b/LayoutTests/fast/forms/button/button-focus-by-label-click.html
new file mode 100644
index 0000000000000000000000000000000000000000..4ce49589b201f85c812c1418f6e11d1b08e25597
--- /dev/null
+++ b/LayoutTests/fast/forms/button/button-focus-by-label-click.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<body>
+<p>Click a label element makes an associated control focused, but it shouldn't have focus appearance.</p>
+<button id="button1">Button</button><label for="button1">Label</label>
+<script src="../resources/common.js"></script>
+<script>
+clickElement(document.querySelector('label'));
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/button/button-focus-by-label-click-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698