Submit button with icon + browser styling

When using a background image on an input button you lose the default browser styling. Using this approach to work around it.

HTML

<link rel="stylesheet" href="http://dl.dropbox.com/u/70903/jsfiddle/9Rgcb.css">
<form>
    <button type="submit">Submit</button>
</form>

CSS

button {
    padding: 0 10px;
    line-height:3em;
    cursor: pointer; /* UX */
}

button:before {
    content: text'test';
    vertical-align: middle; /* align icon */
    padding-right: 5px; /* space between icon and text */
}

JavaScript

// adding an image to a submit button without losing default browser styling