Re: [csswg-drafts] [cssom] Implement CSSStyleRule.p.matches (#3670)

> Looks like the most reliable thing to do would be to return the actual computed (not resolved) top / bottom / left / right values instead? Maybe that's just easier.

It would be, but I don't think it would be easy to polyfill in the meantime. I've got to support IE11, Edge, recent Chrome, recent Firefox, and Safari 9. The `matches` approach would be easy enough to polyfill, and it won't hurt performance at all.

-- 
GitHub Notification of comment by jridgewell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3670#issuecomment-467160558 using your GitHub account

Received on Monday, 25 February 2019 19:59:34 UTC