Commit Graph

213 Commits

Author SHA1 Message Date
Nicolas Gallagher
6729f5e8f5 Update CHANGELOG 2013-01-20 09:47:45 -08:00
Nicolas Gallagher
fdb11ae5b5 Normalize hr
Firefox uses different `box-sizing` and `height` values to all other
browsers. Firefox doesn't currently support `box-sizing` without the
`-moz-` prefix, so we use both the vendor-prefixed and unprefixed
properties to ensure that it matches the `content-box` value of other
browsers. It also requires the `height` to be set to `0`.

Fix gh-133
2013-01-20 09:46:54 -08:00
Nicolas Gallagher
36fa71d531 Add hr test 2013-01-20 09:45:25 -08:00
Nicolas Gallagher
28f1518666 Remove unnecessary pre styles
`word-wrap: break-word` was only needed for IE 6/7, and `white-space:
pre` is the default for all supported browsers.

Fix gh-159
2013-01-19 13:07:09 -08:00
Nicolas Gallagher
63acb0bf1d Update CHANGELOG 2013-01-14 20:55:41 -08:00
Dawid Kruczek
2eb80024f6 Add main element to HTML5 display definitions
The HTML Working Draft has added `main` as a new element.
2013-01-14 20:48:50 -08:00
Nicolas Gallagher
5399ff9c0e Fix cursor style for disabled button input
The Android 4.0.* work around - `html input[type="button"]` - requires
the addition of `html` to the selector for disabled inputs, otherwise
disabled button inputs still have the `pointer` cursor.
2012-12-01 17:36:41 -08:00
Nicolas Gallagher
70c34af15b Language and comment style
* Make consistent use of tense in code comments.
* Update the comment style to match a more common convention.
* Remove an unintentional newline.
2012-11-26 09:27:11 -08:00
TJ Holowaychuk
f29e03ae8f Update component.json for 'component' support
Add 'styles' property to component.json to play nice with 'component'.

'Component' is another component package manager.
See: https://github.com/component/component
2012-09-28 09:35:45 -07:00
Nicolas Gallagher
994782f372 v2.0.1 2012-08-20 10:50:37 +01:00
François Robichet
dcc17fd21a Remove stray IE 6/7 hack 2012-08-20 10:46:38 +01:00
Nicolas Gallagher
494d32bd1d v2.0.0 2012-08-19 20:41:41 +01:00
Nicolas Gallagher
7e014980b9 Drop legacy browser support
No longer supports IE 6/7, Firefox < 4, and Safari < 5.

* Make use of `inherit` to simplify some of the rules.

* Remove a lot of padding and margin normalization, particularly for
  typographic elements, because modern browsers share common base
  styles.

* Add `quotes` normalization. While all target browsers support
  `quotes`, they don't share a common set of quote styles. Opera and IE
  use "curly" quotes whereas other browsers do not. Browsers don't
  appear to set different quotes depending on the language (via the
  `lang` attribute) of the content.

* Remove all list normalizations and they aren't needed anymore.

* Remove a handful of form normalizations that targetted IE 6/7 or
  Firefox 3.
2012-08-19 20:41:11 +01:00
Nicolas Gallagher
9d729698e6 v1.0.1 2012-08-19 20:38:00 +01:00
Nicolas Gallagher
0cdbf7c713 Adjust small font size normalization
Make the font size for `small` not quite so small. The default value of
`smaller` doesn't scale the base font size down by the same proportion
whatever the base size. IE 6/7/8 end up rendering small text larger than
most modern browsers. Opera can render it slightly smaller than Chrome
and Firefox when the base font size is relatively large.

The previous size of `75%` was a bit too small.
2012-08-19 19:45:58 +01:00
Nicolas Gallagher
138536c843 Minor change to test file
Switch from placekitten.com to lorempixel.com for placeholder images.
2012-08-19 19:19:13 +01:00
Nicolas Gallagher
701c73be55 Add component.json
Used by the Bower package manager.
2012-08-16 22:22:48 +01:00
Nicolas Gallagher
9f5837a95a Add CHANGELOG 2012-08-16 22:04:16 +01:00
Nicolas Gallagher
207a39780c v1.0.0 2012-08-14 23:43:47 +01:00
Nicolas Gallagher
f52da7461f Update CSS comment wording 2012-08-14 23:35:20 +01:00
Nicolas Gallagher
4ed3786354 Rename demo.html to test.html 2012-08-14 23:32:24 +01:00
Nicolas Gallagher
ddf924369d Rename LICENSE to LICENSE.md 2012-08-14 23:30:47 +01:00
Nicolas Gallagher
31f72b55be Add MIT License 2012-08-07 22:27:32 +01:00
Nicolas Gallagher
b7579700ea Minor copy and comment adjustments 2012-07-08 23:43:00 +01:00
Nicolas Gallagher
6de1f055d6 Remove .gitignore 2012-07-07 11:29:23 +01:00
Nicolas Gallagher
93beaa2e94 Minor consistency adjustments
Normalize comments and ordering.
2012-07-07 10:49:39 +01:00
Nicolas Gallagher
79b3d21b69 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: https://github.com/h5bp/mobile-boilerplate/issues/121

...so the fix needs to be reintroduced.
2012-07-07 09:58:40 +01:00
Nicolas Gallagher
03575299fc Update README with link to 'contribute' wiki 2012-04-10 23:59:06 +01:00
Nicolas Gallagher
99b187d1a2 Revert addition of input placeholder rules
This commit reverts the following 5 commits:

49392e9df2
f9572a461a
79e2c16ba5
2691e7ab14
567af2e7d6

The `:moz-placeholder` rule doesn't have the desired effect because any
subsequent rule with higher specificity will result in the Firefox bug
resurfacing. There is no way to ensure that Firefox doesn't change the
color of the placeholder text. Example: https://tinker.io/e34a2

The `:focus::webkit-input-placeholder` normalization is being removed
because the current Chrome / Safari on Lion OSX behaviour is allowed in
the spec, Firefox is set to implement the same behaviour, and other
browsers may follow suit for usability reasons.

Some browser differences like these - low importance and in flux - can
be allowed to evolve and settle before assessing whether or not they
need or merit normalization.
2012-03-11 12:55:55 +00:00
Nicolas Gallagher
567af2e7d6 Fix indentation and update timestamp
Correct the indentation for the WebKit placeholder focus rule and move
the placeholder rules to the bottom of the forms normalization.

Update the timestamp.
2012-03-09 22:11:47 +00:00
Jonathan Neal
2691e7ab14 Addresses placeholder text remaining visible on focus in Chrome
The placeholder attribute in Chrome does not work to spec. This makes the text transparent on focus to work like Firefox, Safari, and the spec. Credit goes to @chadbaudoin for bringing this up in his pull request https://github.com/necolas/normalize.css/pull/86 and this Chrome bug is further documented at http://code.google.com/p/chromium/issues/detail?id=106714  and my own test is at https://tinker.io/be2f2/1
2012-03-09 13:30:17 -08:00
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