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
<p>When a user agent is to <dfnid="perform-a-scroll">perform a scroll</dfn> of a <ahref="#scrolling-box">scrolling box</a><var>box</var>, to a given position <var>position</var>, with a set of
452
+
<p>When a user agent is to <dfnid="perform-a-scroll">perform a scroll</dfn> of a <ahref="#scrolling-box">scrolling box</a><var>box</var>, to a given position <var>position</var>, with a set of
453
453
steps <var>task</var>, an associated element <var>element</var> and optionally a scroll behavior <var>behavior</var> (which is
454
454
<codetitle="">auto</code> if omitted), the following steps must be run:
<li><p>Let <var>target</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
568
568
object</a>.
569
-
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-script">incumbent script</a>.
569
+
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-settings-object">incumbent settings
570
+
object</a>.
570
571
<li><p>If <var>source</var> is not <ahref="#allowed-to-resize-and-move">allowed to resize and move</a><var>target</var>, terminate these steps.
571
572
<li><p>Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
572
573
<li><p>Move <var>target</var>'s window such that the window's top left corner is at coordinates (<var>x</var>, <var>y</var>) relative to the top left corner of
<li><p>Let <var>target</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
581
582
object</a>.
582
-
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-script">incumbent script</a>.
583
+
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-settings-object">incumbent settings
584
+
object</a>.
583
585
<li><p>If <var>source</var> is not <ahref="#allowed-to-resize-and-move">allowed to resize and move</a><var>target</var>, terminate these steps.
584
586
<li><p>Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
585
587
<li><p>Move <var>target</var>'s window <var>x</var> CSS pixels of <var>target</var> righward and <var>y</var> CSS pixels of <var>target</var> downward.
<li><p>Let <var>target</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
594
596
object</a>.
595
-
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-script">incumbent script</a>.
597
+
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-settings-object">incumbent settings
598
+
object</a>.
596
599
<li><p>If <var>source</var> is not <ahref="#allowed-to-resize-and-move">allowed to resize and move</a><var>target</var>, terminate these steps.
597
600
<li><p>Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available
598
-
space.
601
+
space.
599
602
<li><p>Resize <var>target</var>'s window by moving its right and bottom edges such that the distance between the left and right edges of the viewport are
600
603
<var>x</var> CSS pixels of <var>target</var> and the distance between the top and bottom edges of the viewport are <var>y</var> CSS pixels of
<li><p>Let <var>target</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context
610
613
object</a>.
611
-
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context">browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-script">incumbent script</a>.
614
+
<li><p>Let <var>source</var> be the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#responsible-browsing-context">responsible browsing context</a> of the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#incumbent-settings-object">incumbent settings
615
+
object</a>.
612
616
<li><p>If <var>source</var> is not <ahref="#allowed-to-resize-and-move">allowed to resize and move</a><var>target</var>, terminate these steps.
613
617
<li><p>Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available
614
-
space.
618
+
space.
615
619
<li><p>Resize <var>target</var>'s window by moving its right edge <var>x</var> CSS pixels of <var>target</var> righward and its bottom edge <var>y</var> CSS
616
620
pixels of <var>target</var> downward.
617
621
<li><p>Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
<li><p>If <codetitle="dom-open-features-width"><ahref="#dom-open-features-width">width</a></code> is present in <var>parsed features</var>, follow these substeps:
778
782
<ol>
779
783
<li><p>Let <var>x</var> be the value of <codetitle="dom-open-features-width"><ahref="#dom-open-features-width">width</a></code>.
780
-
<li><p>Optionally, clamp <var>x</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
784
+
<li><p>Optionally, clamp <var>x</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
781
785
<li><p>Optionally, size <var>target</var>'s window by moving its right edge such that the distance between the left and right edges of the viewport are
782
786
<var>x</var> CSS pixels of <var>target</var>.
783
787
<li><p>Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
784
788
</ol>
785
789
<li><p>If <codetitle="dom-open-features-height"><ahref="#dom-open-features-height">height</a></code> is present in <var>parsed features</var>, follow these substeps:
786
790
<ol>
787
791
<li><p>Let <var>y</var> be the value of <codetitle="dom-open-features-height"><ahref="#dom-open-features-height">height</a></code>.
788
-
<li><p>Optionally, clamp <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
792
+
<li><p>Optionally, clamp <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
789
793
<li><p>Optionally, size <var>target</var>'s window by moving its bottom edge such that the distance between the top and bottom edges of the viewport are
790
794
<var>y</var> CSS pixels of <var>target</var>.
791
795
<li><p>Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
@@ -970,7 +974,7 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
970
974
971
975
<p>A <dfnid="caret-position">caret position</dfn> gives the position of a text insertion point indicator. It always has an associated
972
976
<dfnid="caret-node">caret node</dfn>, <dfnid="caret-offset">caret offset</dfn>, and <dfnid="caret-range">caret range</dfn>. It is represented by a <code><ahref="#caretposition">CaretPosition</a></code> object.</p>
<li><p>Return the computed value of the 'border-top-width' property plus the height of any scrollbar rendered between the top <ahref="#padding-edge">padding
1206
1210
edge</a> and the top <ahref="#border-edge">border edge</a>, ignoring any <ahref="#transforms">transforms</a> that apply to the element and its ancestors.
1207
1211
</ol>
1208
-
1212
+
1209
1213
<p>The <dfnid="dom-element-clientleft" title="dom-Element-clientLeft"><code>clientLeft</code></dfn> attribute must run these steps:
1210
1214
<ol>
1211
1215
<li><p>If the element has no associated <ahref="#css-layout-box">CSS layout box</a> or if the <ahref="#css-layout-box">CSS layout box</a> is inline, return zero.
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> associated with the element or
1257
1261
<ahref="#viewport">viewport</a> associated with <var>box</var>, terminate these
1258
1262
steps.</li>
1259
-
1263
+
1260
1264
<li><p>Let <var>element bounding border box</var> be the box that the return value of invoking
1261
1265
<codetitle="dom-Element-getBoundingClientRect"><ahref="#dom-element-getboundingclientrect">getBoundingClientRect()</a></code> on <var>element</var> represents.
1262
-
1266
+
1263
1267
<li><p>Let <var>scrolling box edge A</var> be the <ahref="#beginning-edges" title="beginning edges">beginning edge</a> in the <ahref="#block-flow-direction">block flow direction</a> of
1264
1268
<var>scrolling box</var>, and let <var>element edge A</var> be <var>element bounding border box</var>'s edge on the same physical side as that of
1265
1269
<var>scrolling box edge A</var>.
1266
-
1270
+
1267
1271
<li><p>Let <var>scrolling box edge B</var> be the <ahref="#ending-edges" title="ending edges">ending edge</a> in the <ahref="#block-flow-direction">block flow direction</a> of <var>scrolling
1268
1272
box</var>, and let <var>element edge B</var> be <var>element bounding border box</var>'s edge on the same physical side as that of <var>scrolling box edge
box</var>, and let <var>element edge D</var> be <var>element bounding border box</var>'s edge on the same physical side as that of <var>box edge D</var>.
1277
1281
1278
1282
<li><p>Let <var>element width</var> be the distance between <var>element edge C</var> and <var>element edge D</var>.
1279
-
1283
+
1280
1284
<li><p>Let <var>scrolling box width</var> be the distance between <var>scrolling box edge C</var> and <var>scrolling box edge D</var>.
1281
1285
1282
1286
<li><p>Let <var>position</var> be the scroll position <var>scrolling box</var> would have by following these steps:
<li><p>If the <i>align to top flag</i> is set align <var>element edge A</var> with <var>scrolling box edge A</var>.</li>
1286
1290
1287
1291
<li><p>Otherwise, the <i>align to top flag</i> is not set; align <var>element edge B</var> with <var>scrolling box edge B</var>.</li>
1288
-
1292
+
1289
1293
<li>
1290
1294
<dlclass="switch">
1291
1295
<dt>If <var>element edge C</var> and <var>element edge D</var> are both outside <var>scrolling box edge C</var> and <var>scrolling box edge D</var>
1292
1296
<dd><p>Do nothing.
1293
-
1297
+
1294
1298
<dt>If <var>element edge C</var> is outside <var>scrolling box edge C</var> and <var>element width</var> is less than <var>scrolling box width</var>
1295
1299
<dt>If <var>element edge D</var> is outside <var>scrolling box edge D</var> and <var>element width</var> is greater than <var>scrolling box width</var>
1296
1300
<dd><p>Align <var>element edge C</var> with <var>scrolling box edge C</var>.
<ahref="#dompoint">DOMPoint</a><ahref="#dom-geometryutils-convertpointfromnode" title="dom-GeometryUtils-convertPointFromNode">convertPointFromNode</a>(<ahref="#dompointinit">DOMPointInit</a> point, <!--
typedef (<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#text">Text</a> or <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#element">Element</a> or <aclass="external" data-anolis-spec="cssom" href="http://dev.w3.org/csswg/cssom/#pseudoelement">PseudoElement</a> or <!--
0 commit comments