CSS Custom Properties

GPTKB entity

Statements (28)
Predicate Object
gptkbp:instanceOf CSS feature
gptkbp:accessedWith var(--main-color)
gptkbp:accessibleBy getComputedStyle in JavaScript
gptkbp:allows JavaScript manipulation
dynamic theming
reuse of values
gptkbp:alsoKnownAs CSS variables
gptkbp:canBeAnimated no
gptkbp:canBeOverridden yes
gptkbp:canBeSetBy element.style.setProperty
gptkbp:canStore any valid CSS value
gptkbp:cascades yes
gptkbp:compatibleWith gptkb:Internet_Explorer
gptkbp:definedIn :root selector for global scope
gptkbp:enables component-based design
context-dependent styling
gptkbp:example --main-color: #06c;
gptkbp:hasSyntax --property-name: value;
https://www.w3.org/2000/01/rdf-schema#label CSS Custom Properties
gptkbp:inheritsFrom yes
gptkbp:introducedIn gptkb:CSS3
gptkbp:scope element and its descendants
gptkbp:specifies gptkb:CSS_Custom_Properties_for_Cascading_Variables_Module_Level_1
gptkbp:supportedBy modern browsers
gptkbp:usedFor var() function
gptkbp:W3CStatus Candidate Recommendation
gptkbp:bfsParent gptkb:CSS_Working_Group
gptkbp:bfsLayer 4