News for hackers. Stuff that matters.
Re:CSS in GitHub Readmes by eins1234 on Tuesday December 08, 2020 @04:48PM (#25351825)
This is really cool!

Would be super helpful to have some example screenshots linked in the readme though, to help set expectations.

Re:CSS in GitHub Readmes by felixfbecker on Tuesday December 08, 2020 @05:52PM (#25352641)
Here are some examples produced by the tests of the underlying library, including HN, GitHub and the Google homepage: https://github.com/felixfbecker/dom-to-svg/suites/1630896833...

The tests take a PNG screenshot of the webpage, then a PNG screenshot of the created SVG and pixelmatch the two. The difference must be below 0.5% for tests to pass.

Re:CSS in GitHub Readmes by Assossa on Tuesday December 08, 2020 @09:39PM (#25354672)
404's for me
Re:CSS in GitHub Readmes by felixfbecker on Wednesday December 09, 2020 @06:39AM (#25357595)
Ah, looks like GitHub actions don't allow public access to artifacts: https://github.community/t/public-read-access-to-actions-art...

In that case - just install the extension and try it out? :)

Re:CSS in GitHub Readmes by felixfbecker on Wednesday December 09, 2020 @04:02PM (#25364908)