Skip to content

[cssom][css-conditional] Merge IDL definitions for CSSMediaRule #1209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions css-conditional/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -927,18 +927,18 @@ interface CSSConditionRule : CSSGroupingRule {
<h3 id="the-cssmediarule-interface">
The <code>CSSMediaRule</code> interface</h3>

<p>The {{CSSMediaRule}} interface represents a ''@media'' rule:
<p>The {{CSSMediaRule}} interface represents a ''@media'' at-rule:

<pre class='idl'>
interface CSSMediaRule : CSSConditionRule {
readonly attribute <a href="https://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList">MediaList</a> media;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
};
</pre>

<dl class='idl-attributes'>
<dt><code>media</code> of type <code><a href="https://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList">MediaList</a></code>, readonly
<dd>The <code>media</code> attribute must return a <code>MediaList</code> object
for the list of media queries specified with the ''@media'' rule.
<dt><code>media</code> of type {{MediaList}}, readonly
<dd>The <code>media</code> attribute must return a {{MediaList}} object
for the list of media queries specified with the ''@media'' at-rule.

<dt><code>conditionText</code> of type <code>DOMString</code> (CSSMediaRule-specific definition for attribute on CSSConditionRule)
<dd>The <code>conditionText</code> attribute (defined on the <code>CSSConditionRule</code> parent rule),
Expand Down
12 changes: 2 additions & 10 deletions cssom/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1696,16 +1696,8 @@ The <dfn method for=CSSGroupingRule>deleteRule(<var>index</var>)</dfn> method mu

### The {{CSSMediaRule}} Interface ### {#the-cssmediarule-interface}

The <code>CSSMediaRule</code> interface represents an <code>@media</code> at-rule.

<pre class=idl>
interface CSSMediaRule : CSSGroupingRule {
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
};
</pre>

The <dfn attribute for=CSSGroupingRule>media</dfn> attribute must return a <code>MediaList</code> object for the list of media queries specified
with the <code>@media</code> at-rule.
The {{CSSMediaRule}} interface is defined in <cite>CSS Conditional Rules</cite>.
[[!CSS3-CONDITIONAL]]


### The {{CSSPageRule}} Interface ### {#the-csspagerule-interface}
Expand Down