Home › Forums › CSS › Why won't this @mixin work? › Reply To: Why won't this @mixin work?
[some prefixer mixins] make no distinction between properties. Therefore, you get prefixes that aren’t necessary now and in fact have NEVER been necessary.
Look at how bourbon did it. Their prefixer mixin is an (internal) utility function, and each mixin that does something that needs prefixing calls it, passing which prefixes to use as an argument. The developers keep things up-to-date on each release.
If nothing else, now I know I need to use interpolation… which I don’t know why I didn’t think to do that.
I knew you’d have to use it to get a var to be part of a string, but I didn’t know that you had to use it no-matter-what in the property
position. That threw me off for a bit.
I guess if it doesn’t break anything… who cares?
Indeed. Though I think it’s entirely reasonable to get something “best practice” to start with, and then you can “not worry about it” later.