I want to style this element:
This is working:
input[class*=\"mysl
Becuase you are selecting input inside .mySlider. Try this:
.mySlider
.myslider[type='range'] { -webkit-appearance: none; width: 100px; background-color: black; height: 2px; }
DEMO