CSS Regression Testing
Lewis Cowper
22

My suggestion would be to look into https://github.com/webdriverio/webdrivercss

It’s fairly flexible, so if you can hook in that sort of transformation before you actually run the assertions, that would solve your problem.