Skip to content
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

Why not use servo project's CSS parser + Selector? #11

Open
baseplate-admin opened this issue May 12, 2024 · 3 comments
Open

Why not use servo project's CSS parser + Selector? #11

baseplate-admin opened this issue May 12, 2024 · 3 comments

Comments

@baseplate-admin
Copy link

Hi,

There's a servo project rust-cssparser that implements CSS 3 features.

Why not use that + make a thin selector on top of it?

That would make implementation of new features faster and more stable.


Unless you dont want to add another dependency?

@RazrFalcon
Copy link
Collaborator

rust-cssparser is a very heavy dependency. That's the main and only issue.

@baseplate-admin
Copy link
Author

While i understand your concern, please think about it.

It would be awesome if you can focus on supporting more features in resvg (which by the way is used in everything these days, and i am really a fan of that software)

Thank you for your Interest in this.

@RazrFalcon
Copy link
Collaborator

Add rust-cssparser is half of the problem. the second half is to properly apply it to SVG. Which is far from trivial.
It wouldn't magically solve all our CSS support problem.

I will look into it when I would have time, but no idea when.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants