Skip to content

Commit 20b2044

Browse files
committed
[mediaqueries] Move commented out section to the right level
1 parent af5c0e1 commit 20b2044

2 files changed

Lines changed: 56 additions & 56 deletions

File tree

mediaqueries-5/Overview.bs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,62 @@ Script-based Custom Media Queries</h3>
224224
</pre>
225225
</div>
226226

227+
<!--
228+
██████ ██████ ██████ ███████ ██ ██
229+
██ ██ ██ ██ ██ ██ ██ ██ ███ ███
230+
██ ██ ██ ██ ██ ████ ████
231+
██ ██████ ██████ ██ ██ ██ ███ ██
232+
██ ██ ██ ██ ██ ██ ██
233+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
234+
██████ ██████ ██████ ███████ ██ ██
235+
-->
236+
<!--
237+
<h2 id='custom-mq-cssom'>
238+
CSSOM</h2>
239+
240+
The <a interface>CSSRule</a> interface is extended as follows:
241+
242+
<pre class="idl partial">
243+
partial interface CSSRule {
244+
const unsigned short CUSTOM_MEDIA_RULE = 17;
245+
};
246+
</pre>
247+
248+
The <a interface>CSSCustomMediaRule</a> interface represents a ''@custom-media'' rule.
249+
250+
<pre class="idl">
251+
interface CSSCustomMediaRule : CSSRule {
252+
attribute CSSOMString name;
253+
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
254+
};
255+
</pre>
256+
257+
<dl dfn-type=attribute dfn-for=CSSCustomMediaRule>
258+
<dt><dfn>name</dfn>, of type <code>CSSOMString</code>
259+
<dd>
260+
The <a attribute>name</a> attribute on getting must return a <code>CSSOMString</code> object
261+
that contains the serialization of the <<extension-name>> defined for the associated rule.
262+
263+
On setting the <a attribute>name</a> attribute,
264+
run the following steps:
265+
266+
<ol>
267+
<li><a>Parse a component value</a> from the value.
268+
269+
<li>
270+
If the returned value is an <<extension-name>>,
271+
replace the associated rule's name with the <<extension-name>>'s representation.
272+
273+
<li>
274+
Otherwise, do nothing.
275+
</ol>
276+
277+
<dt><dfn>media</dfn>, of type <a interface>MediaList</a>, readonly
278+
<dd>
279+
The <a attribute>media</a> attribute must return a <a interface>MediaList</a> object
280+
for the <<media-query-list>> specified with the associated rule.
281+
</dl>
282+
-->
227283

228284
<!--
229285
██ ██ ██████ ████████ ████████ ████████ ████████ ████████ ████████ ██████

mediaqueries/Overview.bs

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,62 +2021,6 @@ Assorted Issues</h2>
20212021
Another media feature should probably be added to deal with the type of resolution authors want to know to deal with monochrome printing.
20222022
-->
20232023

2024-
<!--
2025-
██████ ██████ ██████ ███████ ██ ██
2026-
██ ██ ██ ██ ██ ██ ██ ██ ███ ███
2027-
██ ██ ██ ██ ██ ████ ████
2028-
██ ██████ ██████ ██ ██ ██ ███ ██
2029-
██ ██ ██ ██ ██ ██ ██
2030-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
2031-
██████ ██████ ██████ ███████ ██ ██
2032-
-->
2033-
<!--
2034-
<h2 id='custom-mq-cssom'>
2035-
CSSOM</h2>
2036-
2037-
The <a interface>CSSRule</a> interface is extended as follows:
2038-
2039-
<pre class="idl partial">
2040-
partial interface CSSRule {
2041-
const unsigned short CUSTOM_MEDIA_RULE = 17;
2042-
};
2043-
</pre>
2044-
2045-
The <a interface>CSSCustomMediaRule</a> interface represents a ''@custom-media'' rule.
2046-
2047-
<pre class="idl">
2048-
interface CSSCustomMediaRule : CSSRule {
2049-
attribute CSSOMString name;
2050-
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
2051-
};
2052-
</pre>
2053-
2054-
<dl dfn-type=attribute dfn-for=CSSCustomMediaRule>
2055-
<dt><dfn>name</dfn>, of type <code>CSSOMString</code>
2056-
<dd>
2057-
The <a attribute>name</a> attribute on getting must return a <code>CSSOMString</code> object
2058-
that contains the serialization of the <<extension-name>> defined for the associated rule.
2059-
2060-
On setting the <a attribute>name</a> attribute,
2061-
run the following steps:
2062-
2063-
<ol>
2064-
<li><a>Parse a component value</a> from the value.
2065-
2066-
<li>
2067-
If the returned value is an <<extension-name>>,
2068-
replace the associated rule's name with the <<extension-name>>'s representation.
2069-
2070-
<li>
2071-
Otherwise, do nothing.
2072-
</ol>
2073-
2074-
<dt><dfn>media</dfn>, of type <a interface>MediaList</a>, readonly
2075-
<dd>
2076-
The <a attribute>media</a> attribute must return a <a interface>MediaList</a> object
2077-
for the <<media-query-list>> specified with the associated rule.
2078-
</dl>
2079-
-->
20802024
<!--
20812025
████████ ████████ ████████ ████████ ████████ ██████ ███ ████████ ████████ ████████
20822026
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██

0 commit comments

Comments
 (0)