Previously we were only handling the ::-webkit-scrollbar-thumb and ::-webkit-slider-thumb vendor pseudo-elements. This change generalizes the code to handle any vendor-specific pseudo-elements (i.e. ::-webkit-*, ::-moz-*, and ::-ms-*) the same way. Apparently there are also some old, pre-Webkit Opera CSS elements (starting with -o-), but I'm not sure if there are any such pseudo-elements. In any case, it is unlikely anyone is using them, if there are.
Made sure the unit tests cover all these patterns.
Yeah, I think it's a good improvement to generalize things. Opera isn't among Storybook's nor Chromatic's supported browsers, so I consider that out of scope.
Previously we were only handling the
::-webkit-scrollbar-thumb
and::-webkit-slider-thumb
vendor pseudo-elements. This change generalizes the code to handle any vendor-specific pseudo-elements (i.e.::-webkit-*
,::-moz-*
, and::-ms-*
) the same way. Apparently there are also some old, pre-Webkit Opera CSS elements (starting with-o-
), but I'm not sure if there are any such pseudo-elements. In any case, it is unlikely anyone is using them, if there are.Made sure the unit tests cover all these patterns.