Skip to content

Commit 68ef94b

Browse files
committed
Specify the behaviour when the scrollSource's layout box is not a scroll container. Fixes issue #4.
1 parent 2303324 commit 68ef94b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ The <dfn>effective time range</dfn> of a {{ScrollTimeline}} is calculated as fol
498498
The [=current time=] of a {{ScrollTimeline}} is calculated
499499
as follows:
500500

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

504504
2. Otherwise, let <var>current scroll offset</var> be the current scroll offset of {{scrollSource}}
505505
in the direction specified by {{orientation}}.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ <h4 class="heading settled" data-level="3.1.4" id="current-time-algorithm"><span
701701
as follows:</p>
702702
<ol>
703703
<li data-md="">
704-
<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
705-
time value.</p>
704+
<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
705+
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>
706706
<li data-md="">
707707
<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>
708708
<li data-md="">

0 commit comments

Comments
 (0)