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

Type selector for accessors and variables

Open tatey opened this issue 16 years ago • 0 comments

When defining rules using type selectors, it is not possible to use accessors or variables in new rules as mixins.

Class or ID selector example (Works):

.a { width: 100px; }
#b { width: .a['width']; }

Type selector with class and ID example (Proposed):

div.a { width: 100px; }
ul#b { width: .a['width']; }

Currently raises an exception

! Syntax Error: on line 6: expected one of , ; } got ' after:

Ideally, you should be able to use accessors and variables with type selectors. Are you aware of any show stoppers, or opposed to this functionality?

tatey avatar Dec 14 '09 10:12 tatey