Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any interest in integrating HTML5 display definitions from normalize.css into html-reset.css, and perhaps other smart stuff from there (html5boilerplate uses this), but specifcally the html5 stuff? I changed their ie star hack into zen's ie conditional classes, but left in "zoom" for brevity.
/*
* Corrects block display not defined in IE6/7/8/9 & FF3
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
}
/*
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
*/
audio,
canvas,
video {
display: inline-block;
}
.ie6-7 audio,
.ie6-7 canvas,
.ie6-7 video {
display: inline;
zoom: 1;
}
/*
* Prevents modern browsers from displaying 'audio' without controls
*/
audio:not([controls]) {
display: none;
}
/*
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
* Known issue: no IE6 support
*/
[hidden] {
display: none;
}
Comment | File | Size | Author |
---|---|---|---|
#3 | 1295296-2-html5-legacy.patch | 1.44 KB | JohnAlbin |
Comments
Comment #2
JohnAlbinHow about we combine this with the patch that landed for D8? #1321678: Provide default styling for block-level HTML5 elements
Comment #3
JohnAlbinHere's a patch I'm considering.
Comment #4
JohnAlbinThanks, Elly! You're in the CHANGELOG now. :-)