futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

Support more @ rules #29

Open WorldSEnder opened 3 years ago

WorldSEnder commented 3 years ago

Supporting more at rules mainly divides into two (new) categories:

Global at rules that introduce a new name:

At rules that are always global and not associated to a name, offering conditional styling:

The parser and the ast should be mainly reusable, but emitting the style probably needs to be changed to allow for replacing fragments in at rules. Out of the above keyframes and font-face would be my two priorities.

simbleau commented 2 years ago

Add @-webkit-keyframes to the mix.

futursolo commented 2 years ago
image image

I am not sure why we need to support this since all browser versions that support WebAssembly support @keyframes without vendor prefixing.

simbleau commented 2 years ago

You're right - I learned this yesterday and forgot to remove my comment here. +1

phatgolo commented 1 year ago

Don't forget: