Skip to content

Commit 272f1c0

Browse files
authored
[cssom-1] Follow Web IDL extended attribute changes (#4930)
[TreatNullAs=EmptyString] → [LegacyNullToEmptyString], per whatwg/webidl#870.
1 parent 20f6e0c commit 272f1c0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cssom-1/Overview.bs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ An object that implements the <code>MediaList</code> interface has an associated
507507
<pre class=idl>
508508
[Exposed=Window]
509509
interface MediaList {
510-
stringifier attribute [TreatNullAs=EmptyString] CSSOMString mediaText;
510+
stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
511511
readonly attribute unsigned long length;
512512
getter CSSOMString? item(unsigned long index);
513513
void appendMedium(CSSOMString medium);
@@ -2153,10 +2153,10 @@ interface CSSStyleDeclaration {
21532153
getter CSSOMString item(unsigned long index);
21542154
CSSOMString getPropertyValue(CSSOMString property);
21552155
CSSOMString getPropertyPriority(CSSOMString property);
2156-
[CEReactions] void setProperty(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value, optional [TreatNullAs=EmptyString] CSSOMString priority = "");
2156+
[CEReactions] void setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
21572157
[CEReactions] CSSOMString removeProperty(CSSOMString property);
21582158
readonly attribute CSSRule? parentRule;
2159-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cssFloat;
2159+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
21602160
};
21612161
</pre>
21622162

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

23912391
<pre class="idl extract">
23922392
partial interface CSSStyleDeclaration {
2393-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>camel_cased_attribute</var>;
2393+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>camel_cased_attribute</var>;
23942394
};
23952395
</pre>
23962396

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

24152415
<pre class="idl extract">
24162416
partial interface CSSStyleDeclaration {
2417-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>webkit_cased_attribute</var>;
2417+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>webkit_cased_attribute</var>;
24182418
};
24192419
</pre>
24202420

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

24402440
<pre class="idl extract">
24412441
partial interface CSSStyleDeclaration {
2442-
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>dashed_attribute</var>;
2442+
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>dashed_attribute</var>;
24432443
};
24442444
</pre>
24452445

@@ -3146,4 +3146,3 @@ initial version of the alternative style sheets API and canonicalization
31463146

31473147
</body>
31483148
</html>
3149-

0 commit comments

Comments
 (0)