Skip to content

Commit

Permalink
[cssom-1] Follow Web IDL extended attribute changes (#4930)
Browse files Browse the repository at this point in the history
[TreatNullAs=EmptyString] → [LegacyNullToEmptyString], per whatwg/webidl#870.
  • Loading branch information
domenic authored Apr 23, 2020
1 parent 20f6e0c commit 272f1c0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ An object that implements the <code>MediaList</code> interface has an associated
<pre class=idl>
[Exposed=Window]
interface MediaList {
stringifier attribute [TreatNullAs=EmptyString] CSSOMString mediaText;
stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
readonly attribute unsigned long length;
getter CSSOMString? item(unsigned long index);
void appendMedium(CSSOMString medium);
Expand Down Expand Up @@ -2153,10 +2153,10 @@ interface CSSStyleDeclaration {
getter CSSOMString item(unsigned long index);
CSSOMString getPropertyValue(CSSOMString property);
CSSOMString getPropertyPriority(CSSOMString property);
[CEReactions] void setProperty(CSSOMString property, [TreatNullAs=EmptyString] CSSOMString value, optional [TreatNullAs=EmptyString] CSSOMString priority = "");
[CEReactions] void setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
[CEReactions] CSSOMString removeProperty(CSSOMString property);
readonly attribute CSSRule? parentRule;
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cssFloat;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
};
</pre>

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

<pre class="idl extract">
partial interface CSSStyleDeclaration {
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>camel_cased_attribute</var>;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>camel_cased_attribute</var>;
};
</pre>

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

<pre class="idl extract">
partial interface CSSStyleDeclaration {
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>webkit_cased_attribute</var>;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>webkit_cased_attribute</var>;
};
</pre>

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

<pre class="idl extract">
partial interface CSSStyleDeclaration {
[CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString _<var>dashed_attribute</var>;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _<var>dashed_attribute</var>;
};
</pre>

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

</body>
</html>

0 comments on commit 272f1c0

Please sign in to comment.