News for hackers. Stuff that matters.
Re:Normalize.css v1.0.0 by VMG on Wednesday August 15, 2012 @07:01AM (#4385383)
I'm kind of suspicious of these kinds of things. Especially the "subtle improvements" can have unintended effects.

Can I really just include without worrying about it?

Re:Normalize.css v1.0.0 by jakobe on Wednesday August 15, 2012 @07:07AM (#4385395)
Please don't use this file. Use it for inspiration and take the parts that make sense for your website, but don't just copy the entire file without examining it closely.

For example, this file disables the webkit text size adjustment on the iPhone. Text size adjustment is what makes most websites readable on the iPhone without excessive zooming / scrolling. You should disable it only if you are making a mobile optimized version of your website and the automatic text size adjustment actually causes problems.

Re:Normalize.css v1.0.0 by timdorr on Wednesday August 15, 2012 @10:05AM (#4385968)
Incorrect:

  /*
   * 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using    
   *    `em` units.    
   * 2. Prevents iOS text size adjust after orientation change, without disabling    
   *    user zoom.    
   */

  html {    
      font-size: 100%; /* 1 */    
      -webkit-text-size-adjust: 100%; /* 2 */    
      -ms-text-size-adjust: 100%; /* 2 */    
  }
Your statement would be true if it was setting -webkit-text-size-adjust:none, but 100% does as the comment says and only prevents resizing when changing orientations.
Re:Normalize.css v1.0.0 by jakobe on Wednesday August 15, 2012 @12:51PM (#4386839)
Did you test this? On my iPhone (iOS 5.1.1), the above css snippet disabled automatic text size adjustment.

If you have an iPhone, look at my test pages to see for yourself:

http://jabakobob.net/2012/08/hntest/test.html (without snippet)

http://jabakobob.net/2012/08/hntest/test2.html (with snippet)

For me, the first page renders with a much more legible text size.

Re:Normalize.css v1.0.0 by necolas on Wednesday August 15, 2012 @08:20AM (#4385559)
> this file disables the webkit text size adjustment on the iPhone.

No it doesn't.

Re:Normalize.css v1.0.0 by jakobe on Wednesday August 15, 2012 @12:55PM (#4386855)
Yes it does. See above.
Re:Normalize.css v1.0.0 by dt7 on Wednesday August 15, 2012 @10:31AM (#4386102)
No- in fact I'm sure the readme used to say "don't use this as a black box", instead use it as a starting point.
Re:Normalize.css v1.0.0 by Skalman on Wednesday August 15, 2012 @07:03AM (#4385386)
I believe that all of the CSS in there is the default CSS in at least one browser. It really intends to only normalize between browsers.
Re:Normalize.css v1.0.0 by VMG on Wednesday August 15, 2012 @08:32AM (#4385599)
Well the page says Improves usability with subtle improvements.
Re:Normalize.css v1.0.0 by Skalman on Wednesday August 15, 2012 @09:02AM (#4385733)
Good point. I think the only usability improvement is:

  button, html input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
  }
  button[disabled], input[disabled] {
    cursor: default;
  }