Commit Graph

332 Commits

Author SHA1 Message Date
Nicolas Gallagher
79e2c16ba5 Correct code format and update timestamp 2012-03-09 19:41:02 +00:00
Jonathan Neal
f9572a461a Add placeholder color normalization
As @mathiasbynens points out, webkit has already set the placeholder, and it has set it as darkGray (#A9A9A9)
2012-03-09 11:31:51 -08:00
Jonathan Neal
49392e9df2 Add placeholder color normalization
The browser-defined style for placeholder text color is overwritten by style for input elements in Firefox. Adding :-moz-placeholder style overrides that, bringing Firefox inline with other browsers.

@mathiasbynens made a test case for this @ https://tinker.io/be2f2

This change improves consistency of placeholder style between Chrome, Safari, and Firefox browsers.
2012-03-09 09:03:54 -08:00
Nicolas Gallagher
664a7a760e 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
2012-03-06 10:21:57 +00:00
Nicolas Gallagher
5e5496c026 Add summary to the block-level display rule for HTML5 elements
Legacy browsers, including IE6/7 and Firefox 3, do not make the
new HTML5 `summary` element block-level by default. This is
contrary to the HTML5 recommendations and the behaviour of modern
browsers.
2012-02-07 12:37:29 +00:00
Nicolas Gallagher
cb176831b9 Remove hr and separate some margin normalizations
Recommend that people supporting IE6/7 do not use the `hr` element
at all. It requires far more work than just normalizing margins.
IE6/7 do not collapse margins set on `hr` with margins of pre- or
proceeding elements.

Separate the margin normalizations for `p` and `pre` from that for
`h3`. Despite sharing the same margin value, headings are
qualitatively different from these other elements. Both in terms
of customisation and debugging using browser tools, it is cleaner
to keep the margins of heading separate.
2012-02-07 10:35:49 +00:00
jonathantneal
f1a096a498 Normalize typography
The margin of many elements in IE6/7 is set by 'pt', not relative to the root font-size. This is contrary to the HTML5 spec and all other modern browsers, including IE8+.

If people need to customize margins, they can either edit normalize.css directly or override later in the source. But at least any non-customized elements will behave consistently now.
2012-02-06 21:03:59 -08:00
Nicolas Gallagher
e65602a3b9 Manual merge with GitHub master branch 2012-02-07 01:55:13 +00:00
Nicolas Gallagher
6fc41118f7 Remove details from the rule applying padding-left to lists.
No browsers apply left padding to `details` by default.
2012-02-07 01:46:34 +00:00
Nicolas Gallagher
18406231cc Add interactive content tests to demo.html
Initial addition of a `details` and `summary` test to the demo.
These are new HTML5 elements and there is not yet widespread
browser implementation of their interactive functionality.
2012-02-07 01:41:43 +00:00
jonathantneal
e469f757fd Update CSS comments
The margin of lists in IE6/7 is set by 'pt', not relative to the root font-size. This is contrary to the HTML5 spec and other modern browsers, including IE8+.

If people need to customize the list margin, they can either edit normalize.css directly or override later in the source. But at least any non-customised lists will behave consistently now.
2012-02-06 17:29:54 -08:00
jonathantneal
450aa56a20 Normalize lists 2012-02-06 17:15:46 -08:00
Nicolas Gallagher
0f1f244aec Update CSS comments 2012-01-31 16:07:05 +00:00
Nicolas Gallagher
1dea394cbf Normalize headings
There are various inconsistencies surrounding headings that make
this change worth trialing. The font-size of headings in IE6/7
isn't relative to the root font-size (see #61). Modern browsers
set the `h1` font-size based on the depth of nesting in certain
HTML5 sectioning elements. This change overcomes both the issues.

At the same time, the margins are being normalized so that they
are consistent and `em`-based. If people need to customise the
heading font-size and margin, they can either edit normalize.css
directly or override later in the source. But at least any non-
customised headings will behave consistently now.

Close #41
2012-01-31 15:37:34 +00:00
Nicolas Gallagher
2326dcb082 Demo: add disabled input test and other minor updates.
Include an `input` and `button` disabled attribute style test.
Remove `initial-scale` from the meta viewport and add the `lang`
attribute to `html`.
2012-01-31 13:30:40 +00:00
Nicolas Gallagher
fe15b8f862 Re-set cursor to default for disabled input and button. 2012-01-31 13:28:24 +00:00
Nicolas Gallagher
f913304498 Combine the two WebKit search input pseudo-element rules 2012-01-22 23:31:15 +00:00
Nicolas Gallagher
a336a75dd2 Move font-family normalization from body to html. Close #62
Prevents the inability to override the font-family by setting it
on the `html` element later in the CSS.
2012-01-22 23:00:38 +00:00
Nicolas Gallagher
6ef5b9e78a Remove scrollbar normalization. Fix #64 #65
The `html` scrollbar normalization can cause issues in Firefox
when certain techniques are used by JS plugins (e.g. modals).
2012-01-22 22:44:53 +00:00
Nicolas Gallagher
efd8220019 Remove search cancel button from search inputs on Mac OS X.
After normalizing the search input on OS X, the search cancel
pseudo-element is not always well positioned and is missing from
other UAs.
2012-01-17 16:33:39 +00:00
Nicolas Gallagher
23c6fe17d2 Add small improvements to legend normalization.
Remove the default padding. In theory, the correct normalization
would be to add the padding to IE6/7 rather than remove it from
all browsers. However, the most common use case is going to be
for legends within unstyled fieldsets, and the presence of 2px
of horizontal padding is likely to be unexpected.

Allow text wrapping in Firefox 3. Modify the default white-space
value to allow long legends to wrap. No simple fix to allow this
in IE6/7/8.
2012-01-17 15:42:10 +00:00
Nicolas Gallagher
31eb8b611e Remove excess padding from checkbox and radio inputs in IE7. Close #42 2012-01-17 14:17:35 +00:00
Nicolas Gallagher
3404fcb8b9 Normalize only the left margin of lists. Fix #49
Prevent the addition of vertical margins on nested lists without
interferred with author expectations when customising margins
directly on 'ul' or 'ol' selectors later in the stylesheet.

Left margin needs to be normalized to remove it from IE6/7.

Close #57
2011-11-04 15:38:33 +00:00
Nicolas Gallagher
77e9ef4952 Minor comment cleanup.
Fix #50
Close #58
2011-11-04 15:37:10 +00:00
Nicolas Gallagher
e9e28741f4 Normalize h1 font-size. Close #41
h1 nested in 'section' and 'article' elements has a smaller
font-size in Firefox, Chrome, and Safari. This introduces browser
consistency.
2011-11-04 15:27:41 +00:00
Nicolas Gallagher
4288d2b7cf Clearing heading tests added to the demo 2011-11-04 15:23:00 +00:00
Nicolas Gallagher
26f9a3f065 Remove default a and a:visited color normalizations.
Inclusion of these normalizations can result in unwanted or
unexpected consequences. This is because `a:visited` has a
specificity of 0,0,1,1. Therefore, the pseudo-class has to be
included in every author link-style with a lower specificity.

This is not expected behaviour when building up link styles from
the browser defaults. Very little is lost by removing the link
color normalization.
2011-10-25 00:34:03 +01:00
Nicolas Gallagher
6d085d7e52 Prevent text inputs growing as you type in IE6/7. Fix #46
Applying *overflow:visible to button/input causes text inputs to
grow to fit their content, even if an explicit, fixed width is
applied. It was originally included to remove excess inner
spacing on buttons and submit/reset/button-type inputs in IE6/7.

Fixing this bug in IE6 requires dropping the fix entirely because
there is no way to avoid it being applied to text inputs. If
there is a need to fix this excess spacing bug in IE6, then it
should be done using a class that is applied to the
necessary elements.

For IE7, the excess spacing fix can be moved into the ruleset
that targets button and submit/reset/button-type inputs. This
prevents text inputs from growing.
2011-09-22 18:42:20 +01:00
Nicolas Gallagher
5e64a2c5cb Edit README to say normalize should be used as an alternative to resets. Close #39 2011-09-14 11:37:32 +01:00
Nicolas Gallagher
4d81be6383 Remove temporary Chrome pre-13 fix for audio/video control styling bug.
Chrome 13 onwards no longer has a problem with -webkit-appearance
destroying the appearance of audio/video button controls. Ref #20
2011-09-14 11:27:24 +01:00
Nicolas Gallagher
3be9da44bc Normalize fieldset border. Fix #34
IE renders rounded corners on fieldsets by default.

All browsers - even those that use the same border value of
2px groove threedface in their UA stylesheet - have different
final rendering colors, widths, and joining of the border.

The chosen value of 1px solid #c0c0c0 takes the most common
visual border width (IE, Firefox, Opera), removes the problematic
groove width value, and takes the computed color value from Chrome.
2011-09-14 11:25:05 +01:00
Nicolas Gallagher
f3de91ac51 Update comment for img border normalization to include reference to Firefox 3 2011-08-31 23:03:02 +01:00
Nicolas Gallagher
54aa1506bc Demo HTML: Whitespace cleanup. Validation cleanup (remove strike element, valid input values, SVG shape.) Close #32 2011-08-30 17:07:36 +01:00
Nicolas Gallagher
aec1395765 Add additional abbr and dfn tests to the demo 2011-08-12 18:34:20 +01:00
Nicolas Gallagher
fefbe796f1 Remove excess padding from radio and checkbox in IE8/9. Fix #27 2011-08-12 18:29:43 +01:00
Nicolas Gallagher
2bc78e7272 Link to a YUI Compressor-based minification tool in README. Close #4 2011-08-11 17:44:14 +01:00
Nicolas Gallagher
013d72407e Update monospace font stack fix to work in Safari 4 2011-08-11 10:27:57 +01:00
Nicolas Gallagher
743ee8bc7b Correct inaccurate description of [hidden] rule 2011-08-10 01:57:03 +01:00
Nicolas Gallagher
09be23f832 Leave default webkit-tap-highlight-color in place. Fix #23 2011-08-03 10:41:54 +01:00
Nicolas Gallagher
775989f4c7 Separate [hidden] and audio:not([controls]) to prevent entire rule being dropped in IE8 2011-08-03 10:39:34 +01:00
Nicolas Gallagher
0bb4cfa742 Simplify hiding of hidden and audio without controls. Work around IE6/7 list-style bug with nav, fix #25 2011-07-31 12:37:12 +01:00
Nicolas Gallagher
45a7355346 Add a test for the [hidden] attribute 2011-07-20 20:53:52 +01:00
Nicolas Gallagher
b3796b42b5 Add [hidden] attribute normalization 2011-07-20 20:35:55 +01:00
Nicolas Gallagher
8ae3231cdb Prevent IE6 from ignoring the embedded media ruleset. Fix #10 2011-07-20 20:06:47 +01:00
Nicolas Gallagher
9576d48fc2 Set {overflow:auto} in IE6/7 for <button> and <input> inside <table>. Fix #18 2011-07-12 12:52:07 +02:00
Nicolas Gallagher
1d174f1013 Fix #20 (only temporary until Chrome updates to version 13) 2011-07-12 12:44:40 +02:00
Nicolas Gallagher
86f6d2a9f2 Merge branch 'master' of github.com:necolas/normalize.css 2011-07-12 12:22:54 +02:00
Nicolas Gallagher
db80311682 Add <audio> and <video> tests to demo. Fix #21 2011-07-12 12:22:38 +02:00
Nicolas Gallagher
7372f50250 Very minor copy typo fix and zoom property change. 2011-06-27 12:09:33 -07:00
Nicolas Gallagher
8cece82659 Add IE9 correction for SVG overflow, fix #16. Update demo to include explicit <img> and <svg> tests. 2011-06-21 18:33:36 +01:00