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 <code>removeProperty</code> operation must run these steps:</p><ol><li><p>If the <ahref="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is set, <aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a '<codeclass="external"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>' and terminate these steps.</li><li><p>If <var>property</var> is an <aclass="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a property of a declaration in the <span>collection of CSS declarations</span> remove the declaration.</li></ol></dd>
1979
1979
</dl>
1980
1980
1981
+
1982
+
<p>For each CSS property <var>property</var> that the user agent supports, the following
1983
+
partial interface applies where <var>attribute</var> is obtained by running the
1984
+
<ahref="#css-property-to-idl-attribute">CSS property to IDL attribute</a> algorithm for <var>property</var>.
<p>Getting the <var>attribute</var> attribute must return the result of invoking
1991
+
<codetitle="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue()</code> with as
1992
+
argument the result of running the <ahref="#idl-attribute-to-css-property">IDL attribute to CSS property</a>
1993
+
algorithm for <var>attribute</var>.</p>
1994
+
1995
+
<p>Setting the <var>attribute</var> attribute must invoke
1996
+
<codetitle="dom-CSSStyleDeclaration-setPropertyValue">setPropertyValue()</code> with as
1997
+
first argument the result of running the <ahref="#idl-attribute-to-css-property">IDL attribute to CSS property</a>
1998
+
algorithm for <var>attribute</var>, as second argument the given value, and no third argument. Any
1999
+
exceptions thrown must be re-thrown.</p>
2000
+
2001
+
<p>The <dfnid="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
2002
+
follows:</p>
2003
+
2004
+
<ol>
2005
+
<li><p>Let <var>output</var> be the empty string.
2006
+
2007
+
<li><p>Let <var>uppercase next</var> be unset.
2008
+
2009
+
<li><p>For each character <var>c</var> in <var>property</var>:
2010
+
2011
+
<ol>
2012
+
<li><p>If <var>c</var> is "<codetitle="">-</code>" (U+002D), let <var>uppercase next</var> be set.
2013
+
2014
+
<li><p>Otherwise, if <var>uppercase next</var> is set, let <var>uppercase next</var> be unset and append <var>c</var> converted to ASCII uppercase to <var>output</var>.
2015
+
2016
+
<li><p>Otherwise, append <var>c</var> to <var>output</var>.
2017
+
</ol>
2018
+
2019
+
<li><p>Return <var>output</var>.
2020
+
</ol>
2021
+
2022
+
<p>The <dfnid="idl-attribute-to-css-property">IDL attribute to CSS property</dfn> algorithm for <var>attribute</var> is as
2023
+
follows:</p>
1981
2024
2025
+
<ol>
2026
+
<li><p>Let <var>output</var> be the empty string.
2027
+
2028
+
<li><p>For each character <var>c</var> in <var>attribute</var>:
2029
+
2030
+
<ol>
2031
+
<li><p>If <var>c</var> is in the range U+0041 to U+005A (ASCII uppercase), append "<codetitle="">-</code>" (U+002D) followed by <var>c</var> converted to ASCII lowercase to <var>output</var>.
2032
+
2033
+
<li><p>Otherwise, append <var>c</var> to <var>output</var>.
2034
+
</ol>
2035
+
2036
+
<li><p>Return <var>output</var>.
2037
+
</ol>
2038
+
2039
+
2040
+
<!--
1982
2041
<hr>
1983
2042
1984
2043
<p>For the table below, the IDL attribute in the first column
<p>Getting the <var>attribute</var> attribute must return the result of invoking
1547
+
<code title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with as
1548
+
argument the result of running the <span>IDL attribute to CSS property</span>
1549
+
algorithm for <var>attribute</var>.</p>
1550
+
1551
+
<p>Setting the <var>attribute</var> attribute must invoke
1552
+
<code title=dom-CSSStyleDeclaration-setPropertyValue>setPropertyValue()</code> with as
1553
+
first argument the result of running the <span>IDL attribute to CSS property</span>
1554
+
algorithm for <var>attribute</var>, as second argument the given value, and no third argument. Any
1555
+
exceptions thrown must be re-thrown.</p>
1556
+
1557
+
<p>The <dfn>CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
1558
+
follows:</p>
1559
+
1560
+
<ol>
1561
+
<li><p>Let <var>output</var> be the empty string.
1562
+
1563
+
<li><p>Let <var>uppercase next</var> be unset.
1564
+
1565
+
<li><p>For each character <var>c</var> in <var>property</var>:
1566
+
1567
+
<ol>
1568
+
<li><p>If <var>c</var> is "<code title>-</code>" (U+002D), let <var>uppercase next</var> be set.
1569
+
1570
+
<li><p>Otherwise, if <var>uppercase next</var> is set, let <var>uppercase next</var> be unset and append <var>c</var> converted to ASCII uppercase to <var>output</var>.
1571
+
1572
+
<li><p>Otherwise, append <var>c</var> to <var>output</var>.
1573
+
</ol>
1574
+
1575
+
<li><p>Return <var>output</var>.
1576
+
</ol>
1577
+
1578
+
<p>The <dfn>IDL attribute to CSS property</dfn> algorithm for <var>attribute</var> is as
1579
+
follows:</p>
1537
1580
1581
+
<ol>
1582
+
<li><p>Let <var>output</var> be the empty string.
1583
+
1584
+
<li><p>For each character <var>c</var> in <var>attribute</var>:
1585
+
1586
+
<ol>
1587
+
<li><p>If <var>c</var> is in the range U+0041 to U+005A (ASCII uppercase), append "<code title>-</code>" (U+002D) followed by <var>c</var> converted to ASCII lowercase to <var>output</var>.
1588
+
1589
+
<li><p>Otherwise, append <var>c</var> to <var>output</var>.
1590
+
</ol>
1591
+
1592
+
<li><p>Return <var>output</var>.
1593
+
</ol>
1594
+
1595
+
1596
+
<!--
1538
1597
<hr>
1539
1598
1540
1599
<p>For the table below, the IDL attribute in the first column
0 commit comments