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

Implement CSSStyleSheet API #13898

Open
lucacasonato opened this issue Mar 10, 2022 · 6 comments
Open

Implement CSSStyleSheet API #13898

lucacasonato opened this issue Mar 10, 2022 · 6 comments
Labels
suggestion suggestions for new features (yet to be agreed) web related to Web APIs

Comments

@lucacasonato
Copy link
Member

lucacasonato commented Mar 10, 2022

It would be awesome to be able to use CSSStyleSheet server side to easily manipulate and generate style sheets using the same API as the browser.

https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet

https://andreubotella.com/csswg-auto-build/cssom-1/

@lucacasonato lucacasonato added suggestion suggestions for new features (yet to be agreed) web related to Web APIs labels Mar 10, 2022
@lucacasonato lucacasonato changed the title Implement StyleSheet API Implement CSSStyleSheet API Mar 10, 2022
@surma
Copy link
Contributor

surma commented Mar 10, 2022

A Built-In CSS Parser/Generator would be 10/10

@zhmushan
Copy link
Contributor

https://github.com/servo/rust-cssparser
Could we use this crate?

@cryptographix
Copy link
Contributor

cryptographix commented Mar 15, 2022

Maybe could use prior work by @littledivy https://github.com/deno-front-end/css-parser

There's a branch with port to servo WIP

@andrewbrey
Copy link

To toss another related project into your field of view, there's https://github.com/parcel-bundler/parcel-css as well 👍

@devongovett
Copy link

Parcel CSS uses rust-cssparser under the hood, and provides parsing/serializing support for all rules/properties on top. I've been meaning to implement CSSOM. All the pieces are there, just need to put them together. Would be cool to collaborate with Deno on that!

@timreichen
Copy link
Contributor

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed) web related to Web APIs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants