1

What is the difference between

 :root {
    /* some style */
}

and

html /*(or body)*/ {
/* some style */
}

In practice, don't they have the same effect?

Lisa Shiphrah
  • 447
  • 4
  • 13
  • yes they have the same effect but if root is used the all elements that are not targeted get the style – Dev Man Feb 12 '14 at 14:52
  • 1
    Also see [:root | CSS-Tricks](http://css-tricks.com/almanac/selectors/r/root/) – Itay Feb 12 '14 at 14:52

0 Answers0