less.ruby
less.ruby copied to clipboard
Auto generate browser-specific tags from generics
Since it seems like we're going to be living with -moz, -webkit, etc for a while at, I think it would be convenient if there were a way to coerce less to generate all the necessary attributes without needing to actually define them all separately. It probably shouldn't be the default, for the sake of continuity and the hope that someday (soon) they'll be unnecessary.
Here's what I've got in mind # 'normal' definition Less.parse "div { border-radius: 10px; }" => div { border-radius: 10px; } # compatibility mode Less.parse "div { -border-radius: 10px; }" => div { -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; }
This is a perfect situation for mixins - dunno how cloudhead would react, but if there were some "standard library" for @imports, one that included border-radius, etc, that would be a great boon, and very DRY-ish.