nex3/sass — Issue #229: Custom selector tokens
Author: LiamGoodacre
Created: 2011-12-19 02:35:09+00:00
State: open

Currently only ids, classes, and pseudo selectors have particular tokens to use:
id - #
class - .
pseudo - :

To select by a custom attribute, you usually have to write some form of:
[attr=value]

I feel that it would be useful to define custom attributes:
Example definition:
@attr !($value) [data-foo*=" $value "]

Example use:
#id_selector!bar!baz {...}

Output:
#id_selector[data-foo*=" bar "][data-foo*=" baz "] {...}