You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
-
115
110
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
116
111
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]]
117
112
@@ -351,7 +346,7 @@ This specification depends on the WHATWG Infra standard. [[!INFRA]]
351
346
352
347
<h3 id=scrolling>Scrolling</h3>
353
348
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>,
355
350
to a given position <var>position</var>,
356
351
an associated element <var>element</var> and optionally a scroll behavior <var>behavior</var>
357
352
(which is "<code>auto</code>" if omitted),
@@ -362,22 +357,22 @@ the following steps must be run:
362
357
<li>If the user agent honors the 'scroll-behavior' property and one of the following are true:
363
358
<ul>
364
359
<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''
366
361
<li><var>behavior</var> is <code>smooth</code>
367
362
</ul>
368
363
...then perform a <a>smooth scroll</a> of <var>box</var> to <var>position</var>.
369
364
Otherwise, perform an <a>instant scroll</a> of <var>box</var> to <var>position</var>.
370
365
</ol>
371
366
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>,
373
368
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-->
376
371
377
372
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
378
373
<var>position</var>, it must update the scroll position of <var>box</var> to <var>position</var>.
379
374
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:
381
376
382
377
<ol>
383
378
<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>)<
460
455
with [=this=]'s
461
456
<a>associated <code>Document</code></a>
462
457
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=].
464
459
</ol>
465
460
466
461
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
696
691
697
692
This section integrates with the <a for=/>event loop</a> defined in HTML. [[!HTML]]
698
693
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>
700
695
and an associated <dfn for=MediaQueryList>document</dfn> set on creation.
701
696
702
697
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=].
704
699
705
700
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.
707
702
708
703
<!--XXX update the matches state when flushing layout (offsetWidth et al), without firing a change event. -->
709
704
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:
711
706
712
707
<ol>
713
708
@@ -976,7 +971,7 @@ specification and therefore the exact details of
976
971
are therefore too. Hit testing will hopefully be defined in a future
977
972
revision of CSS or HTML.
978
973
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:
980
975
981
976
1. If the {{Document}} is in <a>quirks mode</a>, follow these substeps:
982
977
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:
1032
1027
1033
1028
Note: This {{DOMRect}} object is not <a spec=html>live</a>.
1034
1029
1035
-
<h2 id=extension-to-the-element-interface>Extensions to the {{Element}} Interface</h2>
0 commit comments