Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.
Changing your Avatar.
The only way to currently change a forum avatar is through Gravatar.com. The email address used for your Userstyles.org account must be one of the email addresses that is registered to your Gravatar account.

What should you be putting in :root vs. HTML?

While the :root selector and html selector both target the same HTML elements, it may be useful to know that :root actually has a higher specificity. Pseudo-class selectors (but not pseudo-elements) have a specificity equal to that of a class, which is higher than a basic element selector.

Comments

  • Nobody:

    Absolutely no one:


    Chirag Boss:
    While the :root selector and html selector both target the same HTML elements, it may be useful to know that :root actually has a higher specificity. Pseudo-class selectors (but not pseudo-elements) have a specificity equal to that of a class, which is higher than a basic element selector.


    Is this some new type of meta-spam where they don't even bother with spam links? Do they make random posts related to the forum and edit the spam links in later?
  • ... Do they make random posts related to the forum and edit the spam links in later?

    More than likely. They think they are being sneaky, and obviously don't know what a change log is.
Sign In or Register to comment.