mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Remove height from audio:not([controls])
in iOS5
A bug in iOS5 means that `audio` elements without controls are not entirely hidden. They retain some height, as demonstrated in this test case: http://jsbin.com/ios-audio-bug/3 The fix is to add `height: 0` to the rule. Fix #69
This commit is contained in:
parent
5e5496c026
commit
664a7a760e
4
normalize.css
vendored
4
normalize.css
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! normalize.css 2012-02-07T12:37 UTC - http://github.com/necolas/normalize.css */
|
/*! normalize.css 2012-03-06T10:21 UTC - http://github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
HTML5 display definitions
|
HTML5 display definitions
|
||||||
@ -36,10 +36,12 @@ video {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Prevents modern browsers from displaying 'audio' without controls
|
* Prevents modern browsers from displaying 'audio' without controls
|
||||||
|
* Remove excess height in iOS5 devices
|
||||||
*/
|
*/
|
||||||
|
|
||||||
audio:not([controls]) {
|
audio:not([controls]) {
|
||||||
display: none;
|
display: none;
|
||||||
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user