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

Unified Diff: Source/core/css/html.css

Issue 100793006: Show speech button for x-webkit-speech only if the field is editable and focused/hovered. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | « LayoutTests/fast/speech/speech-bidi-rendering.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index fdacec72bdf384da89e70a484a156d3192722fa0..0801e374e423379abc09d70b4098da3e9b2ee868 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -632,6 +632,13 @@ input::-webkit-input-speech-button {
-webkit-user-modify: read-only !important;
-webkit-align-self: flex-start;
margin: auto 0;
+ opacity: 0;
+ pointer-events: none;
+}
+
+input:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-input-speech-button {
+ opacity: 1;
+ pointer-events: auto;
}
#endif
« no previous file with comments | « LayoutTests/fast/speech/speech-bidi-rendering.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698