Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not duplicate blocks of multiple comma separated selectors #110

Closed
SuperPat45 opened this issue Oct 23, 2019 · 1 comment
Closed

Do not duplicate blocks of multiple comma separated selectors #110

SuperPat45 opened this issue Oct 23, 2019 · 1 comment
Labels

Comments

@SuperPat45
Copy link

SuperPat45 commented Oct 23, 2019

Input:

:root {
  --font-size: 12px;
  --font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html,body {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

Actual output:

:root {
  --font-size: 12px;
  --font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html {
  font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--font-family);
  font-size: 12px;
  font-size: var(--font-size);
}
body {
  font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--font-family);
  font-size: 12px;
  font-size: var(--font-size);
}

Expected:

:root {
  --font-size: 12px;
  --font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html,body {
  font-family: roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--font-family);
  font-size: 12px;
  font-size: var(--font-size);
}
@SuperPat45 SuperPat45 changed the title Do not duplicate bloc when selectors contains comma Do not duplicate blocs of multiple comma separated selectors Oct 23, 2019
@MadLittleMods MadLittleMods changed the title Do not duplicate blocs of multiple comma separated selectors Do not duplicate blocks of multiple comma separated selectors Nov 25, 2019
@MadLittleMods
Copy link
Owner

Duplicate of #58

Related to #67, #105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants