vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

LESS: variables in property names #198

Closed archerzz closed 10 years ago

archerzz commented 10 years ago

I tried to simplify CSS declaration for browser prefixes. I wrote the mixing like below. The eclipse plugin will report error. However, lessc can compile it without error.

.prefix-style-all (@name; @rest...) {
  -moz-@{name}: @rest;
  -ms-@{name}: @rest;
  -o-@{name}: @rest;
  -webkit-@{name}: @rest;
  @{name}: @rest;
}

.box-sizing (@type: content-box) {
  .prefix-style-all(box-sizing, @type);
}