@@ -1808,7 +1808,7 @@ On setting the {{CSSStyleRule/selectorText}} attribute these steps must be run:
1808
1808
The <dfn attribute for=CSSStyleRule>style</dfn> attribute must return a <code> CSSStyleDeclaration</code> object for the style rule, with the
1809
1809
following properties:
1810
1810
<dl>
1811
- <dt> <a for="CSSStyleDeclaration">readonly flag</a>
1811
+ <dt> <a for="CSSStyleDeclaration">computed flag</a>
1812
1812
<dd> Unset.
1813
1813
<dt> <a for="CSSStyleDeclaration">declarations</a>
1814
1814
<dd> The declared declarations in the rule, in <a>specified order</a> .
@@ -1908,7 +1908,7 @@ On setting the {{CSSPageRule/selectorText}} attribute these steps must be run:
1908
1908
The <dfn attribute for=CSSGroupingRule>style</dfn> attribute must return a <code> CSSStyleDeclaration</code> object for the
1909
1909
<code> @page</code> at-rule, with the following properties:
1910
1910
<dl>
1911
- <dt> <a for="CSSStyleDeclaration">readonly flag</a>
1911
+ <dt> <a for="CSSStyleDeclaration">computed flag</a>
1912
1912
<dd> Unset.
1913
1913
<dt> <a for="CSSStyleDeclaration">declarations</a>
1914
1914
<dd> The declared declarations in the rule, in <a>specified order</a> .
@@ -1938,7 +1938,7 @@ included in the name. [[!CSS3SYN]]
1938
1938
The <dfn attribute for=CSSMarginRule>style</dfn> attribute must return a <code> CSSStyleDeclaration</code> object for the
1939
1939
margin at-rule, with the following properties:
1940
1940
<dl>
1941
- <dt> <a for="CSSStyleDeclaration">readonly flag</a>
1941
+ <dt> <a for="CSSStyleDeclaration">computed flag</a>
1942
1942
<dd> Unset.
1943
1943
<dt> <a for="CSSStyleDeclaration">declarations</a>
1944
1944
<dd> The declared declarations in the rule, in <a>specified order</a> .
@@ -1996,9 +1996,9 @@ the DOM a <a>CSS declaration block</a> is a
1996
1996
<a>CSS declaration block</a> has the following associated properties:
1997
1997
1998
1998
<dl dfn-for="CSSStyleDeclaration" export>
1999
- <dt> <dfn>readonly flag</dfn>
2000
- <dd> Unset if the object can be manipulated. Set if it can not be
2001
- manipulated . Unless otherwise stated it is unset.
1999
+ <dt> <dfn>computed flag</dfn>
2000
+ <dd> Set if the object is a computed style declaration, rather than a specified
2001
+ style . Unless otherwise stated it is unset.
2002
2002
2003
2003
<dt> <dfn>declarations</dfn>
2004
2004
<dd> The <a>CSS declarations</a> associated with the object.
@@ -2099,7 +2099,7 @@ A <a>CSS declaration block</a> has these <a>attribute change steps</a> for its <
2099
2099
with <var> localName</var> , <var> value</var> , and <var> namespace</var> :
2100
2100
2101
2101
<ol>
2102
- <li> If the <a for="CSSStyleDeclaration">readonly flag</a> is set, then return.
2102
+ <li> If the <a for="CSSStyleDeclaration">computed flag</a> is set, then return.
2103
2103
<li> If the <a for="CSSStyleDeclaration">updating flag</a> is set, then return.
2104
2104
<li> If <var> localName</var> is not "<code> style</code> ", or <var> namespace</var> is not null, then return.
2105
2105
<li> If <var> value</var> is null, empty the <a for="CSSStyleDeclaration">declarations</a> .
@@ -2111,7 +2111,7 @@ When a <a>CSS declaration block</a> object is created, then:
2111
2111
2112
2112
<ol>
2113
2113
<li> Let <var> owner node</var> be the <a for="CSSStyleDeclaration">owner node</a> .
2114
- <li> If <var> owner node</var> is null, or the <a for="CSSStyleDeclaration">readonly flag</a> is set, then return.
2114
+ <li> If <var> owner node</var> is null, or the <a for="CSSStyleDeclaration">computed flag</a> is set, then return.
2115
2115
<li> Let <var> value</var> be the result of <a lt="get an attribute by namespace and local name">getting an attribute</a>
2116
2116
given null, "<code> style</code> ", and <var> owner node</var> .
2117
2117
<li> If <var> value</var> is not null, let the <a for="CSSStyleDeclaration">declarations</a> be the result of
@@ -2121,7 +2121,7 @@ When a <a>CSS declaration block</a> object is created, then:
2121
2121
To <dfn export>update style attribute for</dfn> <var> declaration block</var> means to run the steps below:
2122
2122
2123
2123
<ol>
2124
- <li> Assert: <var> declaration block</var> 's <a for="CSSStyleDeclaration">readonly flag</a> is unset.
2124
+ <li> Assert: <var> declaration block</var> 's <a for="CSSStyleDeclaration">computed flag</a> is unset.
2125
2125
<li> Let <var> owner node</var> be <var> declaration block</var> 's <a for="CSSStyleDeclaration">owner node</a> .
2126
2126
<li> If <var> owner node</var> is null, then return.
2127
2127
<li> Set <var> declaration block</var> 's <a for="CSSStyleDeclaration">updating flag</a> .
@@ -2164,11 +2164,14 @@ The object's <a>supported property indices</a> are the numbers in the range zero
2164
2164
<a>CSS declarations</a> in the <a for="CSSStyleDeclaration">declarations</a> . If there are no such
2165
2165
<a>CSS declarations</a> , then there are no <a>supported property indices</a> .
2166
2166
2167
- The <dfn attribute for=CSSStyleDeclaration>cssText</dfn> attribute must return the result of
2168
- <a lt="serialize a CSS declaration block">serializing</a> the <a for="CSSStyleDeclaration">declarations</a> .
2167
+ Getting the <dfn attribute for="CSSStyleDeclaration">cssText</dfn> attribute must run these steps:
2168
+
2169
+ 1. If the <a for="CSSStyleDeclaration">computed flag</a> is set, then return the empty string.
2170
+ 2. Return the result of <a lt="serialize a CSS declaration block">serializing</a> the <a for="CSSStyleDeclaration">declarations</a> .
2171
+
2169
2172
Setting the {{CSSStyleDeclaration/cssText}} attribute must run these steps:
2170
2173
<ol>
2171
- <li> If the <a for="CSSStyleDeclaration">readonly flag</a> is set,
2174
+ <li> If the <a for="CSSStyleDeclaration">computed flag</a> is set,
2172
2175
then <a>throw</a> a {{NoModificationAllowedError}} exception.
2173
2176
<li> Empty the <a for="CSSStyleDeclaration">declarations</a> .
2174
2177
<li> <a lt="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not the empty list, insert the items in the list
@@ -2234,7 +2237,7 @@ value would be "<code>important</code>".</div>
2234
2237
2235
2238
The <dfn method for=CSSStyleDeclaration>setProperty(<var>property</var>, <var>value</var>, <var>priority</var>)</dfn> method must run these steps:
2236
2239
<ol>
2237
- <li> If the <a for="CSSStyleDeclaration">readonly flag</a> is set,
2240
+ <li> If the <a for="CSSStyleDeclaration">computed flag</a> is set,
2238
2241
then <a>throw</a> a {{NoModificationAllowedError}} exception.
2239
2242
<li> If <var> property</var> is not a <a>custom property</a> , follow these substeps:
2240
2243
<ol>
@@ -2349,7 +2352,7 @@ use different algorithms as long as the constraints above hold.
2349
2352
2350
2353
The <dfn method for=CSSStyleDeclaration>removeProperty(<var>property</var>)</dfn> method must run these steps:
2351
2354
<ol>
2352
- <li> If the <a for="CSSStyleDeclaration">readonly flag</a> is set,
2355
+ <li> If the <a for="CSSStyleDeclaration">computed flag</a> is set,
2353
2356
then <a>throw</a> a {{NoModificationAllowedError}} exception.
2354
2357
<li> If <var> property</var> is not a <a>custom property</a> ,
2355
2358
let <var> property</var> be <var> property</var> <a lt="ASCII lowercase">converted to ASCII lowercase</a> .
@@ -2801,7 +2804,7 @@ interface mixin ElementCSSInlineStyle {
2801
2804
</pre>
2802
2805
2803
2806
The <dfn attribute for=ElementCSSInlineStyle>style</dfn> attribute must return a <a>CSS declaration block</a> object whose
2804
- <a for="CSSStyleDeclaration">readonly flag</a> is unset, whose <a for="CSSStyleDeclaration">parent CSS rule</a> is null, and
2807
+ <a for="CSSStyleDeclaration">computed flag</a> is unset, whose <a for="CSSStyleDeclaration">parent CSS rule</a> is null, and
2805
2808
whose <a for="CSSStyleDeclaration">owner node</a> is the <a>context object</a> .
2806
2809
2807
2810
If the user agent supports HTML, the following IDL applies: [[HTML]]
@@ -2859,7 +2862,7 @@ steps:
2859
2862
<li>
2860
2863
Return a live <a>CSS declaration block</a> with the following properties:
2861
2864
<dl>
2862
- <dt> <a for="CSSStyleDeclaration">readonly flag</a>
2865
+ <dt> <a for="CSSStyleDeclaration">computed flag</a>
2863
2866
<dd> Set.
2864
2867
<dt> <a for="CSSStyleDeclaration">declarations</a>
2865
2868
<dd><var> decls</var> .
0 commit comments