This isn't perfect, and focus frame can still be off by 1px for RTL sliders, but I'm' out of ideas how to make it better.