com web/php: Reset HTML5 elements in the reset stylesheet by adding them to the master element list and adding a display: block rule for the block
level elements.: styles/reset.css styles/theme.css

From: Date: Mon, 10 Jan 2011 10:05:46 +0000
Subject: com web/php: Reset HTML5 elements in the reset stylesheet by adding them to the master element list and adding a display: block rule for the block
level elements.: styles/reset.css styles/theme.css
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23611@lists.php.net to get a copy of this message
Commit: f3c3baa5a199d88ba8a2ca2993dd0f60fb7b5f96 Author: Adam Harvey <aharvey@php.net> Mon, 10 Jan 2011 10:05:46 +0000 Parents: 64cb8c3038a2b5462c072ea07ac642db7177c300 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f3c3baa5a199d88ba8a2ca2993dd0f60fb7b5f96 Log: Reset HTML5 elements in the reset stylesheet by adding them to the master element list and adding a display: block rule for the block level elements. The original plan here was to replace Eric Meyer's reset stylesheet with Richard Clark's HTML5 reset stylesheet, but some of the changes he's made aren't really ones we want, such as the different handling of list-style by default, not resetting text-decoration on anchors, and removing a couple of deprecated elements that we're still using (hello <acronym>). Since we'd have to modify whichever reset stylesheet we use, I've stuck with the old one as the base for now, since we already know it works with the site. Changed paths: M styles/reset.css M styles/theme.css Diff: diff --git a/styles/reset.css b/styles/reset.css index 49a2e4e..12965e6 100644 --- a/styles/reset.css +++ b/styles/reset.css @@ -6,7 +6,12 @@ small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { +table, caption, tbody, tfoot, thead, tr, th, td, +section, article, aside, hgroup, header, footer, +nav, figure, figcaption, video, audio, embed, +mark, progress, meter, time, ruby, rt, rp, wbr, +canvas, command, details, datalist, keygen, +output { margin: 0; padding: 0; border: 0; @@ -40,4 +45,9 @@ q:before, q:after { table { border-collapse: collapse; border-spacing: 0; -} \ No newline at end of file +} + +/* Ensure HTML5 block elements are rendered so. */ +section, article, aside, header, footer, nav, figure { + display: block; +} diff --git a/styles/theme.css b/styles/theme.css index fcba3ba..ba70332 100644 --- a/styles/theme.css +++ b/styles/theme.css @@ -493,8 +493,3 @@ footer a { footer a:hover { color: #000; } - -section, footer, aside, nav { - display: block; -} -

« previous php.webmaster (#23611) next »