RazrFalcon / simplecss

A simple CSS 2.1 parser and selector
Apache License 2.0
35 stars 9 forks source link

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

Open baseplate-admin opened 5 months ago

baseplate-admin commented 5 months ago

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 commented 5 months ago

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

baseplate-admin commented 5 months ago

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 commented 5 months ago

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.