I'm running into an issue using nth-of-type. I have a codepen demonstrating the problem.
https://codepen.io/nicole-staline/pen/bJMMjd
I would assume since the .input_range.marker is the first of it type, the following should work:
.marker {
&:nth-of-type(1) {
background:red;
}
But it doesn't, I have to use nth-of-type(4) to target it. Which doesn't make any sense to me.
I can reasonably assume that it's counting the other range inputs, but it shouldn't, unless I'm misunderstanding how nth-of-type works.
Hate to repost, but last question was immediately closed as a duplicate and linked me to an article that didn't address my question.