Custom Properties: Questioning :root

For custom properties (aka CSS variables) we got into the habit of declaring variables in a rule with a :root selector. Yet unless you’re working in an environment in which style sheets serve several document types (and roots), question this use of&#16…


This content originally appeared on Blog (Web Development, Mostly) · Jens Oliver Meiert and was authored by Jens Oliver Meiert

For custom properties (aka CSS variables) we got into the habit of declaring variables in a rule with a :root selector. Yet unless you’re working in an environment in which style sheets serve several document types (and roots), question this use of :root.


This content originally appeared on Blog (Web Development, Mostly) · Jens Oliver Meiert and was authored by Jens Oliver Meiert


Print Share Comment Cite Upload Translate Updates
APA

Jens Oliver Meiert | Sciencx (2020-09-21T17:16:29+00:00) Custom Properties: Questioning :root. Retrieved from https://www.scien.cx/2020/09/21/custom-properties-questioning-root/

MLA
" » Custom Properties: Questioning :root." Jens Oliver Meiert | Sciencx - Monday September 21, 2020, https://www.scien.cx/2020/09/21/custom-properties-questioning-root/
HARVARD
Jens Oliver Meiert | Sciencx Monday September 21, 2020 » Custom Properties: Questioning :root., viewed ,<https://www.scien.cx/2020/09/21/custom-properties-questioning-root/>
VANCOUVER
Jens Oliver Meiert | Sciencx - » Custom Properties: Questioning :root. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/09/21/custom-properties-questioning-root/
CHICAGO
" » Custom Properties: Questioning :root." Jens Oliver Meiert | Sciencx - Accessed . https://www.scien.cx/2020/09/21/custom-properties-questioning-root/
IEEE
" » Custom Properties: Questioning :root." Jens Oliver Meiert | Sciencx [Online]. Available: https://www.scien.cx/2020/09/21/custom-properties-questioning-root/. [Accessed: ]
rf:citation
» Custom Properties: Questioning :root | Jens Oliver Meiert | Sciencx | https://www.scien.cx/2020/09/21/custom-properties-questioning-root/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.