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> The <ahref="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-names">supported property names</a>
678
-
on a CSSStyleDeclaration object
680
+
<p> The <ahref="http://dev.w3.org/2006/webapi/WebIDL/#REPLACE-ME">map tuples</a>
681
+
on a CSSVariablesMap object
679
682
are the property names of all the <adata-autolink="link" href="#custom-property">custom properties</a> in the <ahref="http://dev.w3.org/csswg/cssom/#css-declaration-block-declarations"><dfnid="css-declaration-block-declarations">CSS declaration block declarations</dfn></a>
on the <adata-autolink="link" href="#associated-style-declaration">associated style declaration</a>
719
+
by passing <var>varName</var> as its argument.
720
+
Return its returned value.
721
+
</dd></dl>
682
722
683
-
</p><p> Before running any of the algorithms in this section,
684
-
prepend "var-" to <var>varName's</var> value.
685
-
686
-
</p><p> When asked to <dfnid="cssvariablesdeclaration-getter" title="getter">get the value of a variable</dfn>,
687
-
if <var>varName</var> is in the <adata-autolink="link" href="#css-declaration-block-declarations">CSS declaration block declarations</a>,
688
-
invoke <code>getPropertyValue()</code> on the <adata-autolink="link" href="#associated-style-declaration">associated style declaration</a> by passing <var>varName</var> as its argument,
689
-
and return the returned value.
690
-
Otherwise, return the empty string.
691
-
692
-
</p><p> When asked to <dfnid="cssvariablesdeclaration-setter" title="setter">set</dfn> or <dfnid="cssvariablesdeclaration-creator" title="creator">create the value of a variable</dfn>,
693
-
invoke <code>setProperty()</code> on the <adata-autolink="link" href="#associated-style-declaration">associated style declaration</a> by passing <var>varName</var> as the first argument and <var>varValue</var> as the second argument.
694
-
695
-
</p><pclass="note">
696
-
Note that using <code>setProperty()</code> to set a property to the empty string
697
-
instead deletes the property.
698
-
699
-
</p><p> When asked to <dfnid="cssvariablesdeclaration-deleter" title="deleter">delete the value of a variable</dfn>,
700
-
if <var>varName</var> matches the grammar of a <adata-autolink="link" href="#custom-property">custom property</a> name,
701
-
invoke <code>removeProperty()</code> on the <adata-autolink="link" href="#associated-style-declaration">associated style declaration</a> by passing <var>varName</var> as its argument,
702
-
and return the returned value.
703
-
Otherwise, do nothing and return the empty string.
The <ahref="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-names">supported property names</a>
641
-
on a CSSStyleDeclaration object
642
+
The <ahref="http://dev.w3.org/2006/webapi/WebIDL/#REPLACE-ME">map tuples</a>
643
+
on a CSSVariablesMap object
642
644
are the property names of all the <a>custom properties</a> in the <ahref="http://dev.w3.org/csswg/cssom/#css-declaration-block-declarations"><dfn>CSS declaration block declarations</dfn></a>
643
645
with a non-initial value,
644
-
with the "var-" prefix removed.
645
-
646
-
Before running any of the algorithms in this section,
647
-
prepend "var-" to <var>varName's</var> value.
648
-
649
-
When asked to <dfnid='cssvariablesdeclaration-getter' title='getter'>get the value of a variable</dfn>,
650
-
if <var>varName</var> is in the <a>CSS declaration block declarations</a>,
651
-
invoke <code>getPropertyValue()</code> on the <a>associated style declaration</a> by passing <var>varName</var> as its argument,
652
-
and return the returned value.
653
-
Otherwise, return the empty string.
654
-
655
-
When asked to <dfnid='cssvariablesdeclaration-setter' title='setter'>set</dfn> or <dfnid='cssvariablesdeclaration-creator' title='creator'>create the value of a variable</dfn>,
656
-
invoke <code>setProperty()</code> on the <a>associated style declaration</a> by passing <var>varName</var> as the first argument and <var>varValue</var> as the second argument.
657
-
658
-
<pclass='note'>
659
-
Note that using <code>setProperty()</code> to set a property to the empty string
660
-
instead deletes the property.
661
-
662
-
When asked to <dfnid='cssvariablesdeclaration-deleter' title='deleter'>delete the value of a variable</dfn>,
663
-
if <var>varName</var> matches the grammar of a <a>custom property</a> name,
664
-
invoke <code>removeProperty()</code> on the <a>associated style declaration</a> by passing <var>varName</var> as its argument,
665
-
and return the returned value.
666
-
Otherwise, do nothing and return the empty string.
0 commit comments