-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Consider running tests with resvg-js #1656
Comments
Cool! Would you like to work this? |
Can you make a list of what can be adjusted? |
Here's the renderer https://github.com/svg/svgo/blob/main/test/regression.js#L101 |
My initial look at the test looks like there are quite a few changes needed. I'm sorry, I don't have time at the moment, probably until April. If you have some ideas, you can make some adjustments first. |
@yisibl @TrySound hello! I started to move regression tests to resvg. Now it has 15 mismatched icons, I've uploaded it with pngs and svgs here https://drive.google.com/file/d/1EacnF5KKYRvs5ZTts_SNRM4J5UJ5-fGU/view?usp=sharing I guess it's resvg issue for the other 14 mismatches. @yisibl can you check that? |
@Kreeg Thank you for your excellent work! color-prop-05-t.svgI think Safari and resvg-js are rendering correctly, and it should be green here. This means that svgo does not apply color values correctly after compression: <svg baseProfile="tiny" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg">
...
<path color="red" d="M120 60h150v150H120z" fill="currentColor" font-family="SVGFreeSansASCII,sans-serif" font-size="18" />
...
</svg> text-ws-03-t.svg
types-basic-02-f.svgresvg does not currently support CSS units(e.g. text-fonts-202-t.svg & text-fonts-02-t.svgresvg is not rendered correctly struct-dom-07-f.svgUses JS to dynamically modify var use = document.getElementById("use-elm");
var firstElementChild = use.instanceRoot.firstChild; support for So, this is an obsolete test case and this test case will not work in modern browsers. We should exclude it. |
Cool! Thanks for the answers @yisibl! |
resvg(resvg-js) is pretty much the best supported rendering library for SVG today, and a detailed test suite is available here. If playwright could be removed, this would greatly speed up CI and local testing.
The text was updated successfully, but these errors were encountered: