Comments (3)
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.
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.
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)
- W3C test suite Revision version differs between png and svg HOT 2
- update official.csv for librsvg 2.5X HOT 1
- [featureRequest] terminal-comands for vdiff HOT 1
- FYI duplicates HOT 1
- textLength HOT 2
- Tests Validity HOT 10
- vdiff supports Qt6? HOT 2
- Test against Safari
- Do not use text in a-stroke-opacity tests
- Styling Issue HOT 9
- Test `filter` with external url
- Figure out how to trigger `no-composite` property of `feBlend`
- e-radialGradient-044: focal point overlapping should result in no gradient drawn HOT 1
- e-radialGradient-031: Focal point correction changed in SVG2 HOT 1
- [vdiff] inkscape does not work on Gnome, but on KDE and Xfce HOT 4
- Issue with `structure/transform/rotate-at-position.svg`? HOT 1
- Tests `marker-on-rounded-rect` and `orient=audo-on-M-C-C-4` wrong HOT 2
- `image-with-float-size-scaling` has wrong resolution? HOT 3
- Upgrade Chrome to the latest stable version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resvg-test-suite.