Re:Idea: When (if) statements in CSS
by francoisdevlin on Monday June 04, 2012 @09:09AM
(#4063791)
Looks cool. My one thought is replace @when with @if, to make life easier for every programmer ever.
[ Parent
| on HN ]
Depends on if the OP means this should be event-driven/dynamic or not. The "when" seems to imply that it should be. When .widget becomes larger than 300px (screen resize/flip, for instance), then the font-size should become larger.
If that is OP's intention, then I feel @when is more appropriate than @if