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

:root.className[attr] selector #40

Open
zanona opened this issue May 22, 2016 · 0 comments
Open

:root.className[attr] selector #40

zanona opened this issue May 22, 2016 · 0 comments

Comments

@zanona
Copy link

zanona commented May 22, 2016

Hey guys, congrats for the initiative! Amazing work.

I was trying this on Chrome and it seems to work fine, but not sure if it follows the spec.
Although, I believe it would be a great addition if there could be a way to implement this perhaps?

input.css

  :root {
    --theme-color: blue;
  }
  :root.alt {
    --theme-color: green;
  }
  p {
    margin: 1em;
    color: var(--theme-color, red);
}

output.css

p  {
  margin: 1em;
  color: blue;
}
.alt p { color: green; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant