CSS Custom Properties (variables)

GPTKB entity

Statements (32)
Predicate Object
gptkbp:instanceOf CSS feature
gptkbp:accessedWith var(--variable-name)
gptkbp:alsoKnownAs CSS variables
gptkbp:canBe custom functions
calc()
media queries (with limitations)
gptkbp:canBeAnimated no
gptkbp:canBeChangedWith gptkb:JavaScript
gptkbp:canBeOverridden yes
gptkbp:compatibleWith gptkb:Internet_Explorer
gptkbp:defaultValueSyntax var(--variable, fallback)
gptkbp:definedIn :root selector for global scope
gptkbp:distinctFrom Sass/Less variables are preprocessed, CSS variables are runtime
gptkbp:hasSyntax --variable-name: value;
https://www.w3.org/2000/01/rdf-schema#label CSS Custom Properties (variables)
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
https://www.w3.org/TR/css-variables/
gptkbp:standardizedBy gptkb:W3C
gptkbp:supportedBy gptkb:Chrome_49
gptkb:Edge_15
gptkb:Firefox_31
gptkb:Opera_36
gptkb:Safari_9.1
modern browsers
gptkbp:uses reusability
theming
dynamic styling
gptkbp:bfsParent gptkb:Chrome_49
gptkbp:bfsLayer 6