Skip to content

Commit 79b3d21

Browse files
committed
Reintroduce fix for WebKit audio/video control bug
This fix was first introduced to deal with Chrome < 13 destroying the appearance of native `audio` and `video` button controls when `-webkit-appearance` is set on `input[type="button"]`. See #20 Android 4.0.* seems to use a version of WebKit that contains this bug. See: h5bp/mobile-boilerplate#121 ...so the fix needs to be reintroduced.
1 parent 0357529 commit 79b3d21

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

normalize.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
1+
/*! normalize.css 2012-07-07T08:58 UTC - http://github.com/necolas/normalize.css */
22

33
/* =============================================================================
44
HTML5 display definitions
@@ -408,19 +408,22 @@ input {
408408
}
409409

410410
/*
411-
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
411+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
412+
* and `video` controls
412413
* 2. Corrects inability to style clickable 'input' types in iOS
413-
* 3. Removes inner spacing in IE7 without affecting normal text inputs
414+
* 3. Improves usability and consistency of cursor style between image-type
415+
* 'input' and others
416+
* 4. Removes inner spacing in IE7 without affecting normal text inputs
414417
* Known issue: inner spacing remains in IE6
415418
*/
416419

417420
button,
418-
input[type="button"],
421+
html input[type="button"], /* 1 */
419422
input[type="reset"],
420423
input[type="submit"] {
421-
cursor: pointer; /* 1 */
422424
-webkit-appearance: button; /* 2 */
423-
*overflow: visible; /* 3 */
425+
cursor: pointer; /* 3 */
426+
*overflow: visible; /* 4 */
424427
}
425428

426429
/*

0 commit comments

Comments
 (0)