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

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..6e33ae951d76a005e5b39b23d623640385461c31
--- /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>
+<label style="display: block;"><button>Button</button> Label</label>
+<script src="../resources/common.js"></script>
+<script>
+clickElement(document.querySelector('label'));
keishi 2013/08/01 05:39:36 clickElement clicks the center of the element. The
tkent 2013/08/01 05:48:49 That's the reason why the label element has displa
keishi 2013/08/01 06:00:20 I see. Yes I would prefer that if possible.
tkent 2013/08/01 06:17:27 ok, I updated the test.
+</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