Skip to content

Commit da44896

Browse files
committed
define the scroll event as it is dispatched by non-UI actions
1 parent 78a68c1 commit da44896

2 files changed

Lines changed: 48 additions & 4 deletions

File tree

cssom-view/Overview.html

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,11 @@ <h3 id=terminology><span class=secno>2.2. </span>Terminology</h3>
252252
media queries</dfn> are defined by the CSSOM. [<cite><a
253253
href="#ref-cssom">CSSOM</a></cite>]
254254

255-
<p> <dfn id=html-element>HTML element</dfn>, <dfn
256-
id=htmlelement><code>HTMLElement</code></dfn>, <dfn id=queue-a-task>queue
257-
a task</dfn>, <dfn id=quirks-mode>quirks mode</dfn>, <dfn
258-
id=task>task</dfn>, and <dfn id=window><code>Window</code></dfn> are
255+
<p> <dfn id=fire-a-simple-event title="Fire a simple event">Firing a simple
256+
event named <var title="">e</var></dfn>, <dfn id=html-element>HTML
257+
element</dfn>, <dfn id=htmlelement><code>HTMLElement</code></dfn>, <dfn
258+
id=queue-a-task>queue a task</dfn>, <dfn id=quirks-mode>quirks mode</dfn>,
259+
<dfn id=task>task</dfn>, and <dfn id=window><code>Window</code></dfn> are
259260
defined by HTML5. [<cite><a href="#ref-html5">HTML5</a></cite>]
260261

261262
<p><dfn id=the-html-body-element>The HTML <code>body</code> element</dfn>
@@ -419,6 +420,15 @@ <h2 id=extensions-to-the-window-interface><span class=secno>3.
419420
href="#viewport">viewport</a> and align the y-coordinate <var
420421
title="">y</var> of the <a href="#document-content">document content</a>
421422
with the top of the <a href="#viewport">viewport</a>.
423+
424+
<li>
425+
<p>If the aligning caused content to move <a href="#queue-a-task">queue a
426+
task</a> to <a href="#fire-a-simple-event">fire a simple event</a> named
427+
<code title=event-scroll>scroll</code> that bubbles at the <a
428+
href="#document"><code>Document</code></a> object, unless a <a
429+
href="#task">task</a> to fire that event at the <a
430+
href="#document"><code>Document</code></a> object was already <a
431+
href="#queue-a-task" title="queue a task">queued</a>.
422432
</ol>
423433

424434
<p>When the <dfn id=dom-window-scrollto
@@ -960,6 +970,13 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
960970
<p>Align <a href="#content">content</a> y-coordinate <var
961971
title="">y</var> with the top of the <a href="#content-edge">content
962972
edge</a> of the element.
973+
974+
<li>
975+
<p>If the aligning caused content to move <a href="#queue-a-task">queue a
976+
task</a> to <a href="#fire-a-simple-event">fire a simple event</a> named
977+
<code title=event-scroll>scroll</code> at the element, unless a <a
978+
href="#task">task</a> to fire that event at the element was already <a
979+
href="#queue-a-task" title="queue a task">queued</a>.
963980
</ol>
964981

965982
<p>The <dfn id=dom-element-scrollleft><code>scrollLeft</code></dfn>
@@ -1046,6 +1063,13 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
10461063
<p>Align <a href="#content">content</a> x-coordinate <var
10471064
title="">x</var> with the left of the <a href="#content-edge">content
10481065
edge</a> of <var>A</var>.
1066+
1067+
<li>
1068+
<p>If the aligning caused content to move <a href="#queue-a-task">queue a
1069+
task</a> to <a href="#fire-a-simple-event">fire a simple event</a> named
1070+
<code title=event-scroll>scroll</code> at the element, unless a <a
1071+
href="#task">task</a> to fire that event at the element was already <a
1072+
href="#queue-a-task" title="queue a task">queued</a>.
10491073
</ol>
10501074

10511075
<p>The <dfn id=dom-element-scrollwidth><code>scrollWidth</code></dfn>

cssom-view/Overview.src.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ <h3 id="terminology">Terminology</h3>
125125
are defined by the CSSOM. [<cite><span>CSSOM</span></cite>]</p>
126126

127127
<p>
128+
<dfn id="fire-a-simple-event" title="Fire a simple event">Firing a simple event named <var title="">e</var></dfn>,
128129
<dfn>HTML element</dfn>,
129130
<dfn><code>HTMLElement</code></dfn>,
130131
<dfn>queue a task</dfn>,
@@ -285,6 +286,13 @@ <h2 id="extensions-to-the-window-interface">Extensions to the <code title="">Win
285286
<span>document content</span> with the left of the <span>viewport</span>
286287
and align the y-coordinate <var title="">y</var> of the <span>document
287288
content</span> with the top of the <span>viewport</span>.</p></li>
289+
290+
<li><p>If the aligning caused content to move <span>queue a task</span>
291+
to <span>fire a simple event</span> named
292+
<code title="event-scroll">scroll</code> that bubbles at the
293+
<code>Document</code> object, unless a
294+
<span>task</span> to fire that event at the <code>Document</code> object
295+
was already <span title="queue a task">queued</span>.</p></li>
288296
</ol>
289297

290298
<p>When the
@@ -761,6 +769,12 @@ <h3 id="scroll-attributes">The <code title="">scrollTop</code>,
761769

762770
<li><p>Align <span>content</span> y-coordinate <var title="">y</var> with
763771
the top of the <span>content edge</span> of the element.</p></li>
772+
773+
<li><p>If the aligning caused content to move <span>queue a task</span>
774+
to <span>fire a simple event</span> named
775+
<code title="event-scroll">scroll</code> at the element, unless a
776+
<span>task</span> to fire that event at the element was already
777+
<span title="queue a task">queued</span>.</p></li>
764778
</ol>
765779

766780
<p>The <dfn id="dom-element-scrollleft"><code>scrollLeft</code></dfn>
@@ -828,6 +842,12 @@ <h3 id="scroll-attributes">The <code title="">scrollTop</code>,
828842

829843
<li><p>Align <span>content</span> x-coordinate <var title="">x</var> with
830844
the left of the <span>content edge</span> of <var>A</var>.</p></li>
845+
846+
<li><p>If the aligning caused content to move <span>queue a task</span>
847+
to <span>fire a simple event</span> named
848+
<code title="event-scroll">scroll</code> at the element, unless a
849+
<span>task</span> to fire that event at the element was already
850+
<span title="queue a task">queued</span>.</p></li>
831851
</ol>
832852

833853
<p>The <dfn id="dom-element-scrollwidth"><code>scrollWidth</code></dfn>

0 commit comments

Comments
 (0)