Skip to content

Commit 8f78f65

Browse files
committed
[cssom][cssom-view] Editorial: Fix validation issues
1 parent b3a5023 commit 8f78f65

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

cssom-view/Overview.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ When the <dfn method for=Window>matchMedia(<var>query</var>)</dfn> method is inv
465465
<li>Return a new {{MediaQueryList}} object,
466466
with the <a>context object’s</a>
467467
<a>associated <code>Document</code></a>
468-
as the <a concept>document</a>,
468+
as the <a for=MediaQueryList>document</a>,
469469
with <var>parsed media query list</var> as its associated <a>media query list</a>.
470470
</ol>
471471

@@ -705,13 +705,13 @@ The {{MediaQueryList}} Interface {#the-mediaquerylist-interface}
705705
This section integrates with the <a spec=html>event loop</a> defined in HTML. [[!HTML]]
706706

707707
A {{MediaQueryList}} object has an associated <dfn>media query list</dfn>
708-
and an associated <dfn concept for=MediaQueryList>document</dfn> set on creation.
708+
and an associated <dfn for=MediaQueryList>document</dfn> set on creation.
709709

710-
A {{MediaQueryList}} object has an associated <dfn concept for=MediaQueryList>media</dfn> which is the
710+
A {{MediaQueryList}} object has an associated <dfn for=MediaQueryList>media</dfn> which is the
711711
<a lt='serialize a media query list'>serialized</a> form of the associated <a>media query list</a>.
712712

713-
A {{MediaQueryList}} object has an associated <dfn concept for=MediaQueryList>matches state</dfn> which is
714-
true if the associated <a>media query list</a> matches the state of the <a concept>document</a>, and false otherwise.
713+
A {{MediaQueryList}} object has an associated <dfn for=MediaQueryList>matches state</dfn> which is
714+
true if the associated <a>media query list</a> matches the state of the <a for=MediaQueryList>document</a>, and false otherwise.
715715

716716
<!--XXX update the matches state when flushing layout (offsetWidth et al), without firing a change event. -->
717717

@@ -721,18 +721,18 @@ When asked to <dfn>evaluate media queries and report changes</dfn> for a {{Docum
721721

722722
<li>
723723

724-
For each {{MediaQueryList}} object <var>target</var> that has <var>doc</var> as its <a concept>document</a>,
724+
For each {{MediaQueryList}} object <var>target</var> that has <var>doc</var> as its <a for=MediaQueryList>document</a>,
725725
in the order they were created, oldest first, run these substeps:
726726

727727
<ol>
728728

729-
<li>If <var>target</var>'s <a concept>matches state</a> has changed since the last time these steps were run,
729+
<li>If <var>target</var>'s <a>matches state</a> has changed since the last time these steps were run,
730730
<a>dispatch</a> a new <a>event</a> to <var>target</var>
731731
using the {{MediaQueryList}} interface,
732732
with its {{Event/type}} attribute initialized to <a event>change</a>,
733733
its {{Event/isTrusted}} attribute initialized to true,
734-
its {{MediaQueryList/media}} attribute initialized to <var>target</var>'s <a concept>media</a>,
735-
and its {{MediaQueryListEvent/matches}} attribute initialized to <var>target</var>'s <a concept>matches state</a>. <!--fingerprint-->
734+
its {{MediaQueryList/media}} attribute initialized to <var>target</var>'s <a>media</a>,
735+
and its {{MediaQueryListEvent/matches}} attribute initialized to <var>target</var>'s <a>matches state</a>. <!--fingerprint-->
736736

737737
</ol>
738738

@@ -764,10 +764,10 @@ interface MediaQueryList : EventTarget {
764764
</pre>
765765

766766
The <dfn attribute for=MediaQueryList>media</dfn> attribute must return
767-
the associated <a concept>media</a>.
767+
the associated <a>media</a>.
768768

769769
The <dfn attribute for=MediaQueryList>matches</dfn> attribute must return
770-
the associated <a concept>matches state</a>. <!--fingerprint-->
770+
the associated <a>matches state</a>. <!--fingerprint-->
771771

772772
The <dfn method for=MediaQueryList>addListener(<var>listener</var>)</dfn> method must run these steps:
773773

@@ -842,7 +842,7 @@ The <dfn attribute for=MediaQueryListEvent>matches</dfn> attribute must return t
842842
<td><dfn event for=MediaQueryList>change</dfn>
843843
<td>{{Event}}
844844
<td>{{MediaQueryList}}
845-
<td>Fired at the {{MediaQueryList}} when the <a concept>matches state</a> changes.
845+
<td>Fired at the {{MediaQueryList}} when the <a>matches state</a> changes.
846846
</table>
847847

848848
The {{Screen}} Interface {#the-screen-interface}

cssom/Overview.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,12 +1042,12 @@ thoughts:
10421042

10431043
### The HTTP Default-Style Header ### {#the-http-default-style-header}
10441044

1045-
The HTTP <code lt="http-default-style">Default-Style</code> header
1045+
The HTTP <a lt="http-default-style">Default-Style</a> header
10461046
can be used to set the <a>preferred CSS style sheet set name</a>
10471047
influencing which <a>CSS style sheet set</a> is (initially) the
10481048
<a>enabled CSS style sheet set</a>.
10491049

1050-
For each HTTP <code lt="http-default-style">Default-Style</code>
1050+
For each HTTP <a lt="http-default-style">Default-Style</a>
10511051
header, in header order, the user agent must
10521052
<a>change the preferred CSS style sheet set name</a> with name being the
10531053
value of the header.
@@ -1463,10 +1463,10 @@ To <dfn>serialize a CSS rule</dfn>, perform one of the following in accordance w
14631463
<dd>The literal string "<code>@namespace</code>", followed by a single SPACE
14641464
(U+0020), followed by the
14651465
<a lt="serialize an identifier">identifier escaped</a> value of the
1466-
<code lt="dom-CSSNamespaceRule-prefix">prefix</code> attribute (if
1466+
{{CSSNamespaceRule/prefix}} attribute (if
14671467
any), followed by a single SPACE (U+0020) if there is a prefix, followed by the
14681468
<a lt="serialize a URL">URL escaped</a> value of the
1469-
<code lt="dom-CSSNamespaceRule-namespaceURI">namespaceURI</code>
1469+
{{CSSNamespaceRule/namespaceURI}}
14701470
attribute, followed the character "<code>;</code>" (U+003B).
14711471
</dl>
14721472

@@ -2149,7 +2149,7 @@ result of invoking {{CSSStyleDeclaration/getPropertyValue()}} with the
21492149
argument being the result of running the <a>IDL attribute to CSS property</a>
21502150
algorithm for <var>camel-cased attribute</var>.
21512151

2152-
Setting the <code attribute for=CSSStyleDeclaration><var>camel-cased attribute</var></code> attribute must invoke
2152+
Setting the <a attribute for=CSSStyleDeclaration><var>camel-cased attribute</var></a> attribute must invoke
21532153
{{CSSStyleDeclaration/setProperty()}} with the
21542154
first argument being the result of running the <a>IDL attribute to CSS property</a>
21552155
algorithm for <var>camel-cased attribute</var>, as second argument the given value, and no third argument. Any
@@ -2173,7 +2173,7 @@ getting, must return the result of invoking {{CSSStyleDeclaration/getPropertyVal
21732173
argument being the result of running the <a>IDL attribute to CSS property</a> algorithm for
21742174
<var>webkit-cased attribute</var>, with the <i>dash prefix</i> flag set.
21752175

2176-
Setting the <code attribute for=CSSStyleDeclaration><var>webkit-cased attribute</var></code>
2176+
Setting the <a attribute for=CSSStyleDeclaration><var>webkit-cased attribute</var></a>
21772177
attribute must invoke {{CSSStyleDeclaration/setProperty()}} with the first argument being the result
21782178
of running the <a>IDL attribute to CSS property</a> algorithm for <var>webkit-cased attribute</var>,
21792179
with the <i>dash prefix</i> flag set, as second argument the given value, and no third argument.
@@ -2197,7 +2197,7 @@ The <dfn attribute for=CSSStyleDeclaration><var>dashed attribute</var></dfn> att
21972197
result of invoking {{CSSStyleDeclaration/getPropertyValue()}} with the
21982198
argument being <var>dashed attribute</var>.
21992199

2200-
Setting the <code attribute for=CSSStyleDeclaration><var>dashed attribute</var></code> attribute must invoke
2200+
Setting the <a attribute for=CSSStyleDeclaration><var>dashed attribute</var></a> attribute must invoke
22012201
{{CSSStyleDeclaration/setProperty()}} with the
22022202
first argument being <var>dashed attribute</var>, as second argument the given value, and no third argument. Any
22032203
exceptions thrown must be re-thrown.
@@ -2652,11 +2652,11 @@ The <dfn method for=CSS>escape(<var>ident</var>)</dfn> method must return the re
26522652
Resolved Values {#resolved-values}
26532653
==================================
26542654

2655-
<code lt="dom-Window-getComputedStyle()">getComputedStyle()</code> was
2655+
{{Window/getComputedStyle()}} was
26562656
historically defined to return the "computed value" of an element or
26572657
pseudo-element. However, the concept of "computed value" changed between
26582658
revisions of CSS while the implementation of
2659-
<code lt="dom-Window-getComputedStyle()">getComputedStyle()</code> had to
2659+
{{Window/getComputedStyle()}} had to
26602660
remain the same for compatibility with deployed scripts. To address this
26612661
issue this specification introduces the concept of a
26622662
<dfn>resolved value</dfn>.

0 commit comments

Comments
 (0)