less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

Auto generate browser-specific tags from generics

Open farski opened this issue 15 years ago • 1 comments

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; }

farski avatar Mar 06 '10 19:03 farski

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.

nogweii avatar Mar 06 '10 21:03 nogweii