MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

Selector which is separated by comma #6

Closed bangseongbeom closed 9 years ago

bangseongbeom commented 9 years ago

I expected .a x, .b x would be separated into two ruleset but the output wasn't.

Input:

.a {
    --color: red;
}
.b {
    --color: blue;
}

.a x, .b x {
    color: var(--color);
}

Real output:

.a x, .b x {
    color: blue;
}

Expected:

.a x {
    color: red;
}

.b x {
    color: blue;
}
tunnckoCore commented 9 years ago

:+1:

MadLittleMods commented 9 years ago

@bangseongbeom Thank you for the bug report and concise input/output expectation!

I fixed this issue in the latest commit and added a test so it doesn't regress.