From ae8afed13baa912e7beeda2c320fd73a883dd26e Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 31 May 2011 05:33:24 -0700 Subject: [PATCH] Make tap-highlight-color fix work for Android devices. Fix #2 --- normalize.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index 4c3335a..e2c749a 100644 --- a/normalize.css +++ b/normalize.css @@ -37,7 +37,7 @@ video { /* * 1. Add vertical scrollbar to element * Keeps page centred in all browsers regardless of content height - * 2. Remove iOS tap highlight color to prevent entire container being highlighted + * 2. Remove Android and iOS tap highlight color to prevent entire container being highlighted * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/ * 3. Remove iOS text size adjust without disabling user zoom * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ @@ -45,7 +45,7 @@ video { html { overflow-y: scroll; /* 1 */ - -webkit-tap-highlight-color: transparent; /* 2 */ + -webkit-tap-highlight-color: rgba(0,0,0,0); /* 2 */ -webkit-text-size-adjust: 100%; /* 3 */ -ms-text-size-adjust: 100%; }