Customizing input[type="range"] with CSS

Info from http://glazkov.com/2011/01/14/what-the-heck-is-shadow-dom/

by Alex

HTML

<form oninput="amount.value=rangeInput.value">
<input type="range" name="rangeInput" min="0" max="10" />

<output name="amount" for="rangeInput">0</output>
</form>

CSS

input[type=range] {
    -webkit-appearance: none;
    background-color: silver;
    width: 200px;
    height:20px;
}
input[type=range]:focus{
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
     -webkit-appearance: none;
    background-color: #666;
    opacity: 0.5;
    width: 10px;
    height: 20px;
}