3 ms·
What the hell, CSS has types now?
by szkosma 2y ago
What the hell, CSS has types now?
- spartanatreyu 2y agoAlways 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.