You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> A <code>CSSStyleDeclaration</code> is the <dfndata-dfn-type=dfndata-noexport="" id=associated-style-declaration>associated style declaration<aclass=self-linkhref=#associated-style-declaration></a></dfn>
695
695
for the <code>CSSVariablesMap</code> assigned to its <code>var</code> attribute.
696
696
697
-
<p> While the CSSStyleDeclaration interface normally contains attributes that are camel-cased name variants of all CSS properties
698
-
(and sometimes also attributes for their canonical names),
699
-
it must not contain any such attributes for custom properties.
700
-
The camel-case trick does not work,
701
-
as custom property names are case-sensitive,
702
-
and there are potentially an infinity of custom properties,
703
-
which is incompatible with the normal behavior of exposing every property
704
-
whether it was set in the corresponding declaration block or not.
697
+
<p> All <adata-link-type=dfnhref=#custom-propertytitle="custom property">custom property</a><adata-link-type=dfntitle=declarations>declarations</a> have the <adata-link-type=dfntitle=case-insensitive>case-insensitive</a> flag set.
705
698
699
+
<pclass=note> Note: Custom properties do not appear on a CSSStyleDeclaration object in camel-cased form,
700
+
because their names may have both upper and lower case letters
701
+
which indicate distinct custom properties.
702
+
The sort of text transformation that automatic camel-casing performs is incompatible with this.
703
+
They can still be accessed by their proper name via <aclass=idl-codedata-link-type=methodtitle=getproperty()>getProperty()</a>/etc,
704
+
or by the <aclass=idl-codedata-link-type=interfacehref=#dom-cssvariablesmaptitle=cssvariablesmap>CSSVariablesMap</a> interface defined below.
Abstract: This module introduces cascading variables as a new primitive value type that is accepted by all CSS properties, and custom properties for defining them.
0 commit comments