CSS Variables (custom properties)
GPTKB entity
Statements (23)
Predicate | Object |
---|---|
gptkbp:instanceOf |
CSS feature
|
gptkbp:accessedWith |
var(--variable-name)
|
gptkbp:alsoKnownAs |
CSS custom properties
|
gptkbp:canBeCascaded |
true
|
gptkbp:canBeChangedWith |
gptkb:JavaScript
|
gptkbp:canBeOverridden |
true
|
gptkbp:compatibleWith |
gptkb:Internet_Explorer
|
gptkbp:definedIn |
:root
|
gptkbp:example |
:root { --main-color: #06c; }
color: var(--main-color); |
gptkbp:hasSyntax |
--variable-name: value;
|
https://www.w3.org/2000/01/rdf-schema#label |
CSS Variables (custom properties)
|
gptkbp:inheritance |
true
|
gptkbp:introducedIn |
gptkb:CSS3
|
gptkbp:scopedTo |
selector
|
gptkbp:standardizedBy |
gptkb:W3C
|
gptkbp:supportedBy |
modern browsers
|
gptkbp:type |
prop
|
gptkbp:usedFor |
theming
dynamic styling reusing values |
gptkbp:bfsParent |
gptkb:CSS_Environment_Variables
|
gptkbp:bfsLayer |
5
|