In a mixin that outputs ::selection
styles:
@mixin selection($color, $background) {
$prefixes: '', '-moz-';
@each $prefix in $prefixes {
&::#{$prefix}selection {
color: $color;
background: $background;
}
}
}
everything outputs as expected.
If I change the order of items in the list:
$prefixes: '-moz-', '';
it outputs only the case for the second item.
If I change the first list item to not start with a "-" then it outputs both cases.
Why doesn't it work when "-moz-" is the first item?