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

[style] Automatically generate value enumerations and parser #13

Open
usadson opened this issue Jul 16, 2023 · 0 comments
Open

[style] Automatically generate value enumerations and parser #13

usadson opened this issue Jul 16, 2023 · 0 comments
Labels
💄 css Related to CSS parsing and/or the representation

Comments

@usadson
Copy link
Owner

usadson commented Jul 16, 2023

Currently, the parsing of CSS in the engine by retina-style-parser translates the CSS syntax into the format in retina-style, but doing this by hand is quite tedious and error-prone. It would be better to have the properties in some kind of syntax file that will generate a Rust file at compile time.

Looks like W3C already has a JSON representation for the CSS properties, see https://github.com/w3c/webref/tree/main/ed/css

@usadson usadson added the 💄 css Related to CSS parsing and/or the representation label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💄 css Related to CSS parsing and/or the representation
Projects
Status: Todo
Development

No branches or pull requests

1 participant