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
<dd><p>The element's top <ahref="#padding-edge">padding edge</a>.
251
251
<dt>right edge
252
-
<dd><p>The right-most edge of the element's right <ahref="#padding-edge">padding edge</a> and the right <ahref="#margin-edge">margin edge</a> of the element's all descendant boxes,
253
-
excluding boxes that have an ancestor of element as their containing block.
252
+
<dd>
253
+
<dlclass="switch">
254
+
<dt>If the element can have overflow to the right
255
+
<dd><p>The right-most edge of the element's right <ahref="#padding-edge">padding edge</a> and the right <ahref="#margin-edge">margin edge</a> of the element's all descendant boxes,
256
+
excluding boxes that have an ancestor of element as their containing block.
257
+
<dt>If the element can have overflow to the left (under right-to-left conditions)
258
+
<dd><p>The element's right <ahref="#padding-edge">padding edge</a>.
259
+
</dl>
254
260
<dt>bottom edge
255
261
<dd><p>The bottom-most edge of the element's bottom <ahref="#padding-edge">padding edge</a> and the bottom <ahref="#margin-edge">margin edge</a> of the element's all descendant boxes,
256
262
excluding boxes that have an ancestor of element as their containing block.
257
263
<dt>left edge
258
-
<dd><p>The element's left <ahref="#padding-edge">padding edge</a>.
264
+
<dd>
265
+
<dlclass="switch">
266
+
<dt>If the element can have overflow to the right
267
+
<dd><p>The element's left <ahref="#padding-edge">padding edge</a>.
268
+
<dt>If the element can have overflow to the left (under right-to-left conditions)
269
+
<dd><p>The left-most edge of the element's left <ahref="#padding-edge">padding edge</a> and the left <ahref="#margin-edge">margin edge</a> of the element's all descendant boxes,
270
+
excluding boxes that have an ancestor of element as their containing block.
271
+
</dl>
259
272
</dl>
260
273
261
274
<p>The term <dfnid="document-content">document content</dfn> refers to the area on the
<p>When the <dfnid="dom-window-scroll" title="dom-Window-scroll"><code>scroll(<vartitle="">x</var>, <vartitle="">y</var>, <vartitle="">options</var>)</code></dfn> method is invoked these steps must be run:</p>
397
410
<ol>
398
411
<li><p>If there is no <ahref="#viewport">viewport</a>, abort these steps.
399
-
<dl>
412
+
<dlclass="switch">
400
413
<dt>If <ahref="#document-content">document content</a> can have overflow to the right
401
414
<dd><p>Let <vartitle="">x</var> be max(0, min(<vartitle="">x</var>,
Copy file name to clipboardExpand all lines: cssom-view/Overview.src.html
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -219,13 +219,26 @@ <h2>Terminology</h2>
219
219
<dt>top edge
220
220
<dd><p>The element's top <span>padding edge</span>.
221
221
<dt>right edge
222
-
<dd><p>The right-most edge of the element's right <span>padding edge</span> and the right <span>margin edge</span> of the element's all descendant boxes,
223
-
excluding boxes that have an ancestor of element as their containing block.
222
+
<dd>
223
+
<dlclass=switch>
224
+
<dt>If the element can have overflow to the right
225
+
<dd><p>The right-most edge of the element's right <span>padding edge</span> and the right <span>margin edge</span> of the element's all descendant boxes,
226
+
excluding boxes that have an ancestor of element as their containing block.
227
+
<dt>If the element can have overflow to the left (under right-to-left conditions)
228
+
<dd><p>The element's right <span>padding edge</span>.
229
+
</dl>
224
230
<dt>bottom edge
225
231
<dd><p>The bottom-most edge of the element's bottom <span>padding edge</span> and the bottom <span>margin edge</span> of the element's all descendant boxes,
226
232
excluding boxes that have an ancestor of element as their containing block.
227
233
<dt>left edge
228
-
<dd><p>The element's left <span>padding edge</span>.
234
+
<dd>
235
+
<dlclass=switch>
236
+
<dt>If the element can have overflow to the right
237
+
<dd><p>The element's left <span>padding edge</span>.
238
+
<dt>If the element can have overflow to the left (under right-to-left conditions)
239
+
<dd><p>The left-most edge of the element's left <span>padding edge</span> and the left <span>margin edge</span> of the element's all descendant boxes,
240
+
excluding boxes that have an ancestor of element as their containing block.
241
+
</dl>
229
242
</dl>
230
243
231
244
<p>The term <dfn>document content</dfn> refers to the area on the
@@ -366,7 +379,7 @@ <h2>Extensions to the <code title>Window</code> Interface</h2>
366
379
<p>When the <dfntitle=dom-Window-scroll><code>scroll(<vartitle>x</var>, <vartitle>y</var>, <vartitle>options</var>)</code></dfn> method is invoked these steps must be run:</p>
367
380
<ol>
368
381
<li><p>If there is no <span>viewport</span>, abort these steps.
369
-
<dl>
382
+
<dlclass=switch>
370
383
<dt>If <span>document content</span> can have overflow to the right
371
384
<dd><p>Let <vartitle>x</var> be max(0, min(<vartitle>x</var>,
0 commit comments