Skip to content

Commit e74224c

Browse files
csnardiemilio
authored andcommitted
Add links for media query terms in CSSOM
Also remove a bunch of ignored terms, as either these are no longer present or they since resolve properly.
1 parent 35f433a commit e74224c

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

cssom-1/Overview.bs

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Former Editor: Glenn Adams, Cox Communications, Inc. http://www.cox.com, gle
1818
Former Editor: Anne van Kesteren, Opera Software ASA http://www.opera.com, annevk@annevk.nl, https://annevankesteren.nl/
1919
!Legacy issues list: <a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=CSS&amp;component=CSSOM&amp;resolution=---">Bugzilla</a>
2020
Abstract: CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.
21-
Ignored Terms: EmptyString, mediaText, cssText, InvalidCharacterError, SecurityError, SyntaxError, IndexSizeError, HierarchyRequestError, InvalidStateError, InvalidModificationError, NoModificationAllowedError, group of selectors, list of css page selectors, CSSCharsetRule, ProcessingInstruction, EventTarget, EventListener, Event, EventInit, Element, Range, Node, Text, style, CSSFontFaceRule, -webkit-transform
21+
Ignored Terms: EmptyString, group of selectors, list of css page selectors, -webkit-transform
2222
Ignored Vars: m1, m2, camel_cased_attribute, webkit_cased_attribute, dashed_attribute
2323
Include Can I Use Panels: true
2424
Can I Use URL: https://drafts.csswg.org/cssom/
@@ -108,7 +108,7 @@ urlPrefix: https://fetch.spec.whatwg.org/#concept-
108108
spec:css-display-3; type:value; for:display; text:table
109109
spec:css-color-4; type:property; text:color
110110
spec:css-position-3; type:property; text:left
111-
spec:html5; type:element; text:style
111+
spec:html; type:element; text:style
112112
spec:css-namespaces-3; type:dfn; text:namespace prefix
113113
spec:dom; type:interface; text:Document
114114
spec:html; type:dfn; text:ascii case-insensitive
@@ -310,18 +310,16 @@ typedef DOMString CSSOMString;
310310
Media Queries {#media-queries}
311311
==============================
312312

313-
Media queries are defined by the Media Queries specification. This
314-
section defines various concepts around media queries, including their API
313+
[=Media queries=] are defined by [[!MEDIAQUERIES]]. This
314+
section defines various concepts around [=media queries=], including their API
315315
and serialization form.
316316

317-
<!-- XXX ref -->
318-
319317

320318
Parsing Media Queries {#parsing-media-queries}
321319
----------------------------------------------
322320

323321
To <dfn export>parse a media query list</dfn> for a
324-
given string <var>s</var> into a media query list is defined in
322+
given string <var>s</var> into a [=media query list=] is defined in
325323
the Media Queries specification. Return the list of media
326324
queries that the algorithm defined there gives. <!-- XXX ref -->
327325

@@ -346,25 +344,24 @@ To
346344
run these steps:
347345

348346
<ol>
349-
<li>If the media query list is empty, then return the empty string.
347+
<li>If the [=media query list=] is empty, then return the empty string.
350348

351-
<li><a lt="serialize a media query">Serialize</a> each media query in the list of media queries, in the same order as they appear in the list of
352-
media queries, and then <a lt="serialize a comma-separated list">serialize</a> the list.
349+
<li><a lt="serialize a media query">Serialize</a> each media query in the list of media queries, in the same order as they appear in the [=media query list=], and then <a lt="serialize a comma-separated list">serialize</a> the list.
353350
</ol>
354351

355352
To
356353
<dfn export>serialize a media query</dfn> let
357354
<var>s</var> be the empty string, run the steps below:
358355

359356
<ol>
360-
<li>If the media query is negated append "<code>not</code>", followed
357+
<li>If the [=media query=] is negated append "<code>not</code>", followed
361358
by a single SPACE (U+0020), to <var>s</var>.
362359

363360
<li>Let <var>type</var> be the <a lt="serialize an identifier">serialization
364-
as an identifier</a> of the media type of the media query,
361+
as an identifier</a> of the [=media type=] of the [=media query=],
365362
<a lt="ASCII lowercase">converted to ASCII lowercase</a>.
366363

367-
<li>If the media query does not contain media features append
364+
<li>If the [=media query=] does not contain [=media features=] append
368365
<var>type</var>, to <var>s</var>,
369366
then return <var>s</var>.
370367

@@ -373,13 +370,13 @@ To
373370
single SPACE (U+0020), followed by "<code>and</code>", followed by a single SPACE
374371
(U+0020), to <var>s</var>.
375372

376-
<li>Sort the media features in lexicographical order.
373+
<li>Sort the [=media features=] in lexicographical order.
377374

378375
<li>
379-
Then, for each media feature:
376+
Then, for each [=media feature=]:
380377

381378
<ol>
382-
<li>Append a "<code>(</code>" (U+0028), followed by the media feature
379+
<li>Append a "<code>(</code>" (U+0028), followed by the [=media feature=]
383380
name, <a lt="ASCII lowercase">converted to ASCII lowercase</a>,
384381
to <var>s</var>.
385382

@@ -391,7 +388,7 @@ To
391388
<li>Append a "<code>)</code>" (U+0029) to
392389
<var>s</var>.
393390

394-
<li>If this is not the last media feature append a single SPACE (U+0020),
391+
<li>If this is not the last [=media feature=] append a single SPACE (U+0020),
395392
followed by "<code>and</code>", followed by a single SPACE (U+0020), to
396393
<var>s</var>.
397394
</ol>

0 commit comments

Comments
 (0)