Giter Site home page Giter Site logo

Comments (3)

RazrFalcon avatar RazrFalcon commented on May 26, 2024

Aren't WPT uses HTML? Those tests cannot be used by pure SVG libraries. That's why resvg has its own tests.

Also, this test suite uses SVG-to-PNG tests, while WPT uses some other method? No idea.

I did looked into WPT long time ago, so I'm maybe missing something.

from resvg-test-suite.

progers avatar progers commented on May 26, 2024

WPT can use either .html or .svg, and no-background.svg is a random example of a .svg test in the WPT repository. Many of the SVG tests in WPT do use HTML, but I think it would be okay to script bulk-convert the ones not using HTML features to .svg. Having implementations that work the same way (we call this "interoperability") is critical to the success of SVG.

If you think there could be some value in this area, I'd be willing to take one of the examples from your book and add it as a WPT test, and we could see what happens.

from resvg-test-suite.

RazrFalcon avatar RazrFalcon commented on May 26, 2024

I don't understand how WPT checks that a test have passed. Is it automated? Is there an expected output file? I see -ref files, but those are SVG as well, which is pointless. I don't understand how it would work for complex cases, like filters. Can you clarify it?

Either way, the idea seems interesting, but I have no time working on it. Not to mention that is seems like my test suite has far more tests, so it would be mostly a one way transition. And I cannot use WPT anyway, because there are no reference images (afaiu).
It would be nice to reduce fragmentation, but I don't see how it can be done in a way that would satisfy everyone.

Having implementations that work the same way (we call this "interoperability") is critical to the success of SVG.

Well, I work with SVG long enough to know that it would never happen. Reproducible SVG rendering is a myth. You cannot even draw a simple path reliably, forget about more complex features like clipping, masking, filters and text.
The only solution here is an SVG spec subset or an automated tool to dumb down an input SVG (kinda like usvg, but actually working).

from resvg-test-suite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.