3 ms·
> For example, constants defined with css-constant('foo', 'bar') instead of $foo: bar The issue with sigil is that they risk conflicting with (and making more
by masklinn 15y ago
> For example, constants defined with css-constant('foo', 'bar') instead of $foo: bar
The issue with sigil is that they risk conflicting with (and making more complex the parsing of) selectors. `$` used to be coopted by the Selectors Level 4 draft spec in order to select a non-tail subject for instance (it's apparently been changed to the `!` suffix).
Not that I like what they picked any more than you do (the spec is currently using the `data-` prefix for definition and `data()` for dereference, likely in keeping with HTML5's `data-` attributes)