Hacker News new | past | comments | ask | show | jobs | submit login

What the hell, CSS has types now?



Always has.

You can see them in the specs.

You might have a variable that has the type: A|D, or maybe even A&D.

And you might have a case where a rule can interpolate values of type A, B, or C, but not D.

The @property syntax allows you to say: This variable will only ever have a type of A, so now it can be animated.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: