Simplify JS breakpoint detection and make it cross-browser; getMatchedCSSRukes is deprecated and being removed.