-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to show CSS diff instead of imagediff output #68
Comments
I've seen the post, amazingly simple technique :) This might be a simplification for the display of the diff, however I don't believe we can move away from JS as we need to find out whether there are changes at all. Also one should check the proposed solution for transparency (not that the imagediff library in the background handles it too well though). I haven't looked much into browser specific solutions so far. It might be worth a shot, but 1) I'd try to make the regression runner browser independent as much as possible 2) not require any special download via browser app store or similar. Let's see what the browser vendors are coming up with in the future. Hopefully better first-class support for what we are doing here. |
I was expecting to keep the js diff for detection. I was thinking CSS diff Agreed that no browser specific addon should be required. I was thinking it
|
Re point 1) I would welcome the option to switch between different diff modes. I feel there might not be a the best solution, so choice would be good. Re point 2) Why not :) CSS Critic is written in a modular way, there's certainly room for different renderers. Not sure if I will have enough time to look into that though. Ideas and PRs welcome! |
Understand about not having enough time. I wanted to make sure you'd be
|
Speeding up tests might be worth a try. I am not very good at profiling JS, there might be some insights along the way. |
Would using the css diff technique here make diff images easier to understand:
http://franklinta.com/2014/11/30/image-diffing-using-css/
(feel free to close this if it's not. I just wanted to point this out ot you. Also, they link to chrome extension's captureVisibleTab method and I wondered if it could be used to make a CSSCritic chrome extension that passes the rendered page back to the regression runner. NB: it's not currently supported by Firefox, and there's no bug in bugzilla for it yet, but the WebExtensions page says at the bottom that they plan to add "Ability to take images of frames/tabs (like canvas.drawWindow)" so I expect there will be a way to write a firefox extension to do it in time.)
The text was updated successfully, but these errors were encountered: