Skip to content

Commit

Permalink
Specify the behaviour when the scrollSource's layout box is not a scr…
Browse files Browse the repository at this point in the history
…oll container. Fixes issue #4.
  • Loading branch information
theres-waldo committed Mar 22, 2017
1 parent 2303324 commit 68ef94b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ The <dfn>effective time range</dfn> of a {{ScrollTimeline}} is calculated as fol
The [=current time=] of a {{ScrollTimeline}} is calculated
as follows:

1. If {{scrollSource}} does not currently have a [=CSS layout box=], return an unresolved
time value.
1. If {{scrollSource}} does not currently have a [=CSS layout box=], or if its layout box is not
a [=scroll container=], return an unresolved time value.

2. Otherwise, let <var>current scroll offset</var> be the current scroll offset of {{scrollSource}}
in the direction specified by {{orientation}}.
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ <h4 class="heading settled" data-level="3.1.4" id="current-time-algorithm"><span
as follows:</p>
<ol>
<li data-md="">
<p>If <code class="idl"><a data-link-type="idl" href="#dom-scrolltimeline-scrollsource" id="ref-for-dom-scrolltimeline-scrollsource-10">scrollSource</a></code> does not currently have a <a data-link-type="dfn" href="https://www.w3.org/TR/cssom-view-1/#css-layout-box">CSS layout box</a>, return an unresolved
time value.</p>
<p>If <code class="idl"><a data-link-type="idl" href="#dom-scrolltimeline-scrollsource" id="ref-for-dom-scrolltimeline-scrollsource-10">scrollSource</a></code> does not currently have a <a data-link-type="dfn" href="https://www.w3.org/TR/cssom-view-1/#css-layout-box">CSS layout box</a>, or if its layout box is not
a <a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a>, return an unresolved time value.</p>
<li data-md="">
<p>Otherwise, let <var>current scroll offset</var> be the current scroll offset of <code class="idl"><a data-link-type="idl" href="#dom-scrolltimeline-scrollsource" id="ref-for-dom-scrolltimeline-scrollsource-11">scrollSource</a></code> in the direction specified by <code class="idl"><a data-link-type="idl" href="#dom-scrolltimeline-orientation" id="ref-for-dom-scrolltimeline-orientation-10">orientation</a></code>.</p>
<li data-md="">
Expand Down

0 comments on commit 68ef94b

Please sign in to comment.