title: webkit htm5 css reset for input elements
body: <p>This is somewhat annoying. It appears that webkit (through chrome 13 canary) is having a right go at styling various input types and it's clashing with the design in a major way.</p>
  
  <p>In particular, these are causing me a headache:</p>
  
  <ul>
  <li>selected element glow (via outline)</li>
  <li>placeholder= text style</li>
  <li>ugly glow around focused textarea and input fields</li>
  </ul>
  
  <p>I am using boilerplate and modernizr.</p>
  
  <p>A simple <code>input[type=search]</code> with a placeholder overrides the text styling.</p>
  
  <p>I know you can target it via </p>
  
  <p><code>input::-webkit-input-placeholder</code></p>
  
  <p>However, this does not seem to be able to style things like <code>text-shadow</code> - which is a bit crap. <strong>Does anyone know if this is likely a bug that will be fixed or do I need to fall back on to a javascript placeholder solution?</strong></p>
  
  <p>The search input comes out with a white bg and removes the rounded corners defined in the base CSS class. I found a reset code:</p>
  
  <pre><code>input[type=search]::-webkit-search-decoration,
  input[type=search]::-webkit-search-cancel-button,
  input[type=search]::-webkit-search-results-button,
  input[type=search]::-webkit-search-results-decoration {
    display: none;
  }
  
  input[type=search] {
    /* the webkit overrides need to stay at the top */
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    /* your styles here */
  }
  </code></pre>
  
  <p>and it kind of helps.</p>
  
  <p>The glow around form elements I fix by setting <code>outline: none</code>.</p>
  
  <p>I guess what I am really after is a CSS reset that takes out any pre-defined styles in the <code>user agent stylesheet</code> (according to web inspector) that affect it. Is there any reset available that can do that so despite of the doctype being HTML5, the elements are rendered as simply as they were before HTML5 and follow implicit rules setup for them in the base CSS?</p>
  
  <p>I hate to say it but despite of all its memory hogging issues and slowness of plugins, FireFox 4 actually renders everything perfectly. Webkit should not be trying to style things for you, just provide an API that allows you to do so if you wanted to... </p>