Skip to content

Commit 39be12a

Browse files
committed
[cssom] Add [CEReactions] extended attributes
Things that can mutate the style="" attribute need to be annotated for custom element callbacks. Ack @domenic. Fixes w3c#200.
1 parent d6fe230 commit 39be12a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

cssom/Overview.bs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,17 +1922,17 @@ underlying state depends upon the source of the <code>CSSStyleDeclaration</Code>
19221922

19231923
<pre class=idl>
19241924
interface CSSStyleDeclaration {
1925-
attribute DOMString cssText;
1925+
[CEReactions] attribute DOMString cssText;
19261926
readonly attribute unsigned long length;
19271927
getter DOMString item(unsigned long index);
19281928
DOMString getPropertyValue(DOMString property);
19291929
DOMString getPropertyPriority(DOMString property);
1930-
void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
1931-
void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value);
1932-
void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
1933-
DOMString removeProperty(DOMString property);
1930+
[CEReactions] void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
1931+
[CEReactions] void setPropertyValue(DOMString property, [TreatNullAs=EmptyString] DOMString value);
1932+
[CEReactions] void setPropertyPriority(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
1933+
[CEReactions] DOMString removeProperty(DOMString property);
19341934
readonly attribute CSSRule? parentRule;
1935-
[TreatNullAs=EmptyString] attribute DOMString cssFloat;
1935+
[CEReactions, TreatNullAs=EmptyString] attribute DOMString cssFloat;
19361936
};
19371937
</pre>
19381938

@@ -2139,7 +2139,7 @@ is obtained by running the <a>CSS property to IDL attribute</a> algorithm for
21392139

21402140
<pre class="idl extract">
21412141
partial interface CSSStyleDeclaration {
2142-
[TreatNullAs=EmptyString] attribute DOMString _<var>camel_cased_attribute</var>;
2142+
[CEReactions, TreatNullAs=EmptyString] attribute DOMString _<var>camel_cased_attribute</var>;
21432143
};
21442144
</pre>
21452145

@@ -2163,7 +2163,7 @@ algorithm for <var>property</var>, with the <i>lowercase first</i> flag set.
21632163

21642164
<pre class="idl extract">
21652165
partial interface CSSStyleDeclaration {
2166-
[TreatNullAs=EmptyString] attribute DOMString _<var>webkit_cased_attribute</var>;
2166+
[CEReactions, TreatNullAs=EmptyString] attribute DOMString _<var>webkit_cased_attribute</var>;
21672167
};
21682168
</pre>
21692169

@@ -2188,7 +2188,7 @@ the following partial interface applies where <var>dashed attribute</var> is <va
21882188

21892189
<pre class="idl">
21902190
partial interface CSSStyleDeclaration {
2191-
[TreatNullAs=EmptyString] attribute DOMString _<var>dashed_attribute</var>;
2191+
[CEReactions, TreatNullAs=EmptyString] attribute DOMString _<var>dashed_attribute</var>;
21922192
};
21932193
</pre>
21942194

@@ -2802,6 +2802,7 @@ Brian Kardell,
28022802
Christian Krebs,
28032803
Daniel Glazman,
28042804
David Baron,
2805+
Domenic Denicola,
28052806
<i>fantasai</i>,
28062807
Hallvord R. M. Steen,
28072808
Ian Hickson,

0 commit comments

Comments
 (0)