Skip to content

Commit 43778f7

Browse files
committed
bikeshed errors
1 parent 51ef3fd commit 43778f7

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

cssom-view-1/Overview.bs

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,17 @@ urlPrefix: https://html.spec.whatwg.org/multipage/
3434
urlPrefix: window-object.html
3535
type: method
3636
text: open(url, target, features); for: Window; url: #dom-open
37-
urlPrefix: https://drafts.csswg.org/cssom/
38-
type: dfn
39-
text: parse a media query list
40-
text: serialize a media query list
4137
urlPrefix: https://www.w3.org/TR/CSS21/visuren.html
4238
type: dfn; text: anonymous block box; url: #anonymous-block-level
4339
url: https://drafts.csswg.org/mediaqueries-4/#mf-colors; type: dfn; text: color media query
44-
url: https://www.w3.org/TR/wai-aria-1.1/#dfn-hidden; type: dfn; text: hidden; spec: wai-aria-1
40+
url: https://www.w3.org/TR/wai-aria-1.1/#dfn-hidden; type: dfn; text: hidden; spec: wai-aria-11
4541
</pre>
4642

4743
<pre class='link-defaults'>
4844
spec:css-display-3; type:value; for:display; text:table
4945
spec:css-position-3; type:property; text:position
46+
spec:css-ui-4; type:property; text:pointer-events
47+
spec:css2; type:dfn; text:viewport
5048
spec:dom; type:interface; text:Document
5149
spec:html; type:dfn; text: inert
5250
</pre>
@@ -109,9 +107,6 @@ HTML.
109107
<a>HTML element</a> child of the root
110108
<a>HTML element</a> <code>html</code>.
111109

112-
<dfn>Content edge</dfn>, <dfn>padding edge</dfn>, <dfn>border edge</dfn>, <dfn>margin edge</dfn>, and <dfn>viewport</dfn> are defined by CSS.
113-
<!-- These *should* just link to CSS2.1, but it doesn't have actual anchors to link to, because it's THE WORST. -->
114-
115110
Elements and <a>viewports</a> have an associated <dfn export>scrolling box</dfn> if the element or viewport has a scrolling mechanism<!--XXX xref-->, or it overflows
116111
its content area<!--XXX xref--> and the used value of the 'overflow-x' or 'overflow-y' property is not ''overflow/hidden'' or ''overflow/clip''. [[!CSS3-BOX]]
117112

@@ -351,7 +346,7 @@ This specification depends on the WHATWG Infra standard. [[!INFRA]]
351346

352347
<h3 id=scrolling>Scrolling</h3>
353348

354-
When a user agent is to <dfn>perform a scroll</dfn> of a <a>scrolling box</a> <var>box</var>,
349+
When a user agent is to <dfn export>perform a scroll</dfn> of a <a>scrolling box</a> <var>box</var>,
355350
to a given position <var>position</var>,
356351
an associated element <var>element</var> and optionally a scroll behavior <var>behavior</var>
357352
(which is "<code>auto</code>" if omitted),
@@ -362,22 +357,22 @@ the following steps must be run:
362357
<li>If the user agent honors the 'scroll-behavior' property and one of the following are true:
363358
<ul>
364359
<li><var>behavior</var> is "<code>auto</code>" and <var>element</var> is not null and its computed value of the
365-
'scroll-behavior' property is ''smooth''
360+
'scroll-behavior' property is ''scroll-behavior/smooth''
366361
<li><var>behavior</var> is <code>smooth</code>
367362
</ul>
368363
...then perform a <a>smooth scroll</a> of <var>box</var> to <var>position</var>.
369364
Otherwise, perform an <a>instant scroll</a> of <var>box</var> to <var>position</var>.
370365
</ol>
371366

372-
When a user agent is to perform a <dfn id=concept-smooth-scroll>smooth scroll</dfn> of a <a>scrolling box</a> <var>box</var> to <var>position</var>,
367+
When a user agent is to perform a <dfn export id=concept-smooth-scroll>smooth scroll</dfn> of a <a>scrolling box</a> <var>box</var> to <var>position</var>,
373368
it must update the scroll position of <var>box</var> in a user-agent-defined fashion over a user-agent-defined amount of time. When the scroll is
374-
<dfn lt="smooth scroll completed">completed</dfn>, the scroll position of <var>box</var> must be <var>position</var>. The scroll can also
375-
be <dfn lt="smooth scroll aborted">aborted</dfn>, either by an algorithm or by the user. <!--fingerprint-->
369+
<dfn export lt="smooth scroll completed">completed</dfn>, the scroll position of <var>box</var> must be <var>position</var>. The scroll can also
370+
be <dfn export lt="smooth scroll aborted">aborted</dfn>, either by an algorithm or by the user. <!--fingerprint-->
376371

377372
When a user agent is to perform an <dfn id=concept-instant-scroll>instant scroll</dfn> of a <a>scrolling box</a> <var>box</var> to
378373
<var>position</var>, it must update the scroll position of <var>box</var> to <var>position</var>.
379374

380-
To <dfn>scroll to the beginning of the document</dfn> for a document <var>document</var>, follow these steps:
375+
To <dfn export>scroll to the beginning of the document</dfn> for a document <var>document</var>, follow these steps:
381376

382377
<ol>
383378
<li>Let <var>viewport</var> be the <a>viewport</a> that is associated with <var>document</var>. <!-- This assumes that there is a viewport, since
@@ -460,7 +455,7 @@ When the <dfn method for=Window caniuse=matchmedia>matchMedia(<var>query</var>)<
460455
with [=this=]'s
461456
<a>associated <code>Document</code></a>
462457
as the <a for=MediaQueryList>document</a>,
463-
with <var>parsed media query list</var> as its associated <a>media query list</a>.
458+
with <var>parsed media query list</var> as its associated [=MediaQueryList/media query list=].
464459
</ol>
465460

466461
The <dfn attribute for=Window>screen</dfn> attribute must return the {{Screen}} object
@@ -696,18 +691,18 @@ A <dfn export>supported <code>open()</code> feature name</dfn> is one of the fol
696691

697692
This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
698693

699-
A {{MediaQueryList}} object has an associated <dfn>media query list</dfn>
694+
A {{MediaQueryList}} object has an associated <dfn for=MediaQueryList>media query list</dfn>
700695
and an associated <dfn for=MediaQueryList>document</dfn> set on creation.
701696

702697
A {{MediaQueryList}} object has an associated <dfn for=MediaQueryList>media</dfn> which is the
703-
<a lt='serialize a media query list'>serialized</a> form of the associated <a>media query list</a>.
698+
<a lt='serialize a media query list'>serialized</a> form of the associated [=MediaQueryList/media query list=].
704699

705700
A {{MediaQueryList}} object has an associated <dfn for=MediaQueryList>matches state</dfn> which is
706-
true if the associated <a>media query list</a> matches the state of the <a for=MediaQueryList>document</a>, and false otherwise.
701+
true if the associated [=MediaQueryList/media query list=] matches the state of the <a for=MediaQueryList>document</a>, and false otherwise.
707702

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

710-
When asked to <dfn>evaluate media queries and report changes</dfn> for a {{Document}} <var>doc</var>, run these steps:
705+
When asked to <dfn export>evaluate media queries and report changes</dfn> for a {{Document}} <var>doc</var>, run these steps:
711706

712707
<ol>
713708

@@ -976,7 +971,7 @@ specification and therefore the exact details of
976971
are therefore too. Hit testing will hopefully be defined in a future
977972
revision of CSS or HTML.
978973

979-
<p>The <dfn attribute for=Document>scrollingElement</dfn> attribute, on getting, must run these steps:
974+
<p>The <dfn attribute for=Document caniuse=document-scrollingelement>scrollingElement</dfn> attribute, on getting, must run these steps:
980975

981976
1. If the {{Document}} is in <a>quirks mode</a>, follow these substeps:
982977
1. If <a>the HTML <code>body</code> element</a> exists, and it is not <a>potentially scrollable</a>, return <a>the HTML <code>body</code> element</a> and abort these steps.
@@ -1032,7 +1027,8 @@ aborting on the first step that returns a value:
10321027

10331028
Note: This {{DOMRect}} object is not <a spec=html>live</a>.
10341029

1035-
<h2 id=extension-to-the-element-interface>Extensions to the {{Element}} Interface</h2>
1030+
<h2 id=extension-to-the-element-interface caniuse="element-scroll-methods">
1031+
Extensions to the {{Element}} Interface</h2>
10361032

10371033
<pre class=idl>
10381034
enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
@@ -1122,7 +1118,7 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
11221118

11231119
1. If |this| does not have an associated [=layout box=],
11241120
return false.
1125-
1. If a [=shadow-inclusive ancestor=] of |this|
1121+
1. If a [=shadow-including ancestor=] of |this|
11261122
has ''content-visibility: hidden'',
11271123
return false.
11281124
1. If the {{IsVisibleOptions/checkAriaHidden}} dictionary member of |options|
@@ -1135,12 +1131,12 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
11351131
return false.
11361132
1. If the {{IsVisibleOptions/checkOpacity}} dictionary member of |options|
11371133
is true,
1138-
and |this|, or a [=shadow-inclusive ancestor=] of |this|,
1134+
and |this|, or a [=shadow-including ancestor=] of |this|,
11391135
has a computed 'opacity' value of ''0'',
11401136
return false.
11411137
1. If the {{IsVisibleOptions/checkVisibilityCSS}} dictionary member of |options|
11421138
is true,
1143-
and |this| is [=invisible=],
1139+
and |this| is <l spec=css-display>[=invisible=]</l>,
11441140
return false.
11451141
1. Return true.
11461142
</div>
@@ -1681,7 +1677,7 @@ method must run the following steps:
16811677

16821678
This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
16831679

1684-
When asked to <dfn>run the resize steps</dfn> for a {{Document}} <var>doc</var>, run these steps:
1680+
When asked to <dfn export for=Document>run the resize steps</dfn> for a {{Document}} <var>doc</var>, run these steps:
16851681

16861682
1. If <var>doc</var>'s <a>viewport</a> has had its width or height changed
16871683
(e.g. as a result of the user resizing the browser window,
@@ -1696,7 +1692,7 @@ When asked to <dfn>run the resize steps</dfn> for a {{Document}} <var>doc</var>,
16961692

16971693
This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
16981694

1699-
Each {{Document}} has an associated list of <dfn>pending scroll event targets</dfn>, initially empty.
1695+
Each {{Document}} has an associated list of <dfn for=Document>pending scroll event targets</dfn>, initially empty.
17001696

17011697
Whenever a <a>viewport</a> gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
17021698

@@ -1710,7 +1706,7 @@ Whenever an element gets scrolled (whether in response to user interaction or by
17101706
1. If the element is already in <var>doc</var>'s <a>pending scroll event targets</a>, abort these steps.
17111707
1. Append the element to <var>doc</var>'s <a>pending scroll event targets</a>.
17121708

1713-
When asked to <dfn>run the scroll steps</dfn> for a {{Document}} <var>doc</var>, run these steps:
1709+
When asked to <dfn export for=Document>run the scroll steps</dfn> for a {{Document}} <var>doc</var>, run these steps:
17141710

17151711
1. For each item <var>target</var> in <var>doc</var>'s <a>pending scroll event targets</a>,
17161712
in the order they were added to the list, run these substeps:

0 commit comments

Comments
 (0)