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

Comma separated rule not expanded into multiple with different values #55

Open MadLittleMods opened 6 years ago

MadLittleMods commented 6 years ago

Input

:root {
  --color: blue;
}

.my-theme {
  --color: red;
}

:root,
.my-theme {
  a {
     color: var(--color);
  }
}

Output:

:root,
.my-theme {
  a {
     color: red;
  }
}

Expected:

:root {
  a {
     color: blue;
  }
}

.my-theme {
  a {
     color: red;
  }
}