Skip to content

Commit 81f24a9

Browse files
author
Simon Pieters
committed
[cssom] Define MediaList's getter
1 parent a0bc1d9 commit 81f24a9

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

cssom/Overview.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ <h3 id="the-medialist-interface"><span class="secno">4.4 </span>The <code title=
565565
void <a href="#dom-medialist-deletemedium" title="dom-MediaList-deleteMedium">deleteMedium</a>(DOMString medium);
566566
};</pre>
567567

568+
<p>The object's <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of media queries
569+
in the <a href="#collection-of-media-queries">collection of media queries</a> represented by the collection. If there are no such media queries, then there are no
570+
<a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
571+
568572
<p>When the <dfn id="dom-medialist" title="dom-MediaList"><code>MediaList(<var>text</var>)</code></dfn> constructor is invoked, run these steps:</p>
569573
<ol>
570574
<li><p>Create a new <code><a href="#medialist">MediaList</a></code> object.</li>
@@ -2075,7 +2079,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
20752079
DOMString <a href="#dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item">item</a>(unsigned long index);
20762080
DOMString <a href="#dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue</a>(DOMString property);
20772081
DOMString <a href="#dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority">getPropertyPriority</a>(DOMString property);
2078-
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, optional DOMString priority);
2082+
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, optional [TreatNullAs=EmptyString] DOMString priority);
20792083
DOMString <a href="#dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty">removeProperty</a>(DOMString property);
20802084
readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">parentRule</a>;
20812085
};</pre>

cssom/Overview.src.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ <h3>The <code title>MediaList</code> Interface</h3>
495495
void <span title=dom-MediaList-deleteMedium>deleteMedium</span>(DOMString medium);
496496
};</pre>
497497

498+
<p>The object's <span data-anolis-spec=webidl>supported property indices</span> are the numbers in the range zero to one less than the number of media queries
499+
in the <span>collection of media queries</span> represented by the collection. If there are no such media queries, then there are no
500+
<span data-anolis-spec=webidl>supported property indices</span>.
501+
498502
<p>When the <dfn title=dom-MediaList><code>MediaList(<var>text</var>)</code></dfn> constructor is invoked, run these steps:</p>
499503
<ol>
500504
<li><p>Create a new <code>MediaList</code> object.</p></li>

0 commit comments

Comments
 (0)