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