Skip to content

Commit e803311

Browse files
committed
replace prose with min/max
1 parent c64f86e commit e803311

2 files changed

Lines changed: 16 additions & 46 deletions

File tree

cssom-view/Overview.html

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -398,39 +398,24 @@ <h2 id=extensions-to-the-window-interface><span class=secno>3.
398398
overflow to the right
399399

400400
<dd>
401-
<ol>
402-
<li>
403-
<p>Let <var title="">x</var> be min(<var title="">x</var>, <a
404-
href="#content">content</a> width - <a href="#content-edge">content
405-
edge</a> width).
406-
407-
<li>
408-
<p>If <var title="">x</var> is negative let it be zero.
409-
</ol>
401+
<p>Let <var title="">x</var> be max(0, min(<var title="">x</var>, <a
402+
href="#content">content</a> width - <a href="#content-edge">content
403+
edge</a> width)).
410404

411405
<dt>If <a href="#document-content">document content</a> can have
412406
overflow to the left (under right-to-left conditions)
413407

414408
<dd>
415-
<ol>
416-
<li>
417-
<p>Let <var title="">x</var> be max(<var title="">x</var>, <a
418-
href="#content-edge">content edge</a> width - <a
419-
href="#content">content</a> width).
420-
421-
<li>
422-
<p>If <var title="">x</var> is non-negative let it be zero.
423-
</ol>
409+
<p>Let <var title="">x</var> be min(0, max(<var title="">x</var>, <a
410+
href="#content-edge">content edge</a> width - <a
411+
href="#content">content</a> width)).
424412
</dl>
425413

426414
<li>
427-
<p>Let <var title="">y</var> be min(<var title="">y</var>, <a
415+
<p>Let <var title="">y</var> be max(0, min(<var title="">y</var>, <a
428416
href="#document-content">document content</a> height - <a
429417
href="#viewport">viewport</a> height excluding the size of a rendered
430-
scroll bar (if any)).
431-
432-
<li>
433-
<p>If <var title="">y</var> is negative let it be zero.
418+
scroll bar (if any))).
434419

435420
<li>
436421
<p>Align the x-coordinate <var title="">x</var> of the <a

cssom-view/Overview.src.html

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -266,35 +266,20 @@ <h2 id="extensions-to-the-window-interface">Extensions to the <code title="">Win
266266
<li>
267267
<dl>
268268
<dt>If <span>document content</span> can have overflow to the right
269-
270-
<dd>
271-
<ol>
272-
<li><p>Let <var title="">x</var> be min(<var title="">x</var>,
273-
<span>content</span> width - <span>content edge</span>
274-
width).</p></li>
275-
276-
<li><p>If <var title="">x</var> is negative let it be zero.</p></li>
277-
</ol>
269+
<dd><p>Let <var title="">x</var> be max(0, min(<var title="">x</var>,
270+
<span>content</span> width - <span>content edge</span>
271+
width)).</p></dd>
278272

279273
<dt>If <span>document content</span> can have overflow to the left
280274
(under right-to-left conditions)
281-
282-
<dd>
283-
<ol>
284-
<li><p>Let <var title="">x</var> be max(<var title="">x</var>,
285-
<span>content edge</span> width - <span>content</span>
286-
width).</p></li>
287-
288-
<li><p>If <var title="">x</var> is non-negative let it be
289-
zero.</p></li>
290-
</ol>
275+
<dd><p>Let <var title="">x</var> be min(0, max(<var title="">x</var>,
276+
<span>content edge</span> width - <span>content</span>
277+
width)).</p></dd>
291278
</dl>
292279

293-
<li><p>Let <var title="">y</var> be min(<var title="">y</var>,
280+
<li><p>Let <var title="">y</var> be max(0, min(<var title="">y</var>,
294281
<span>document content</span> height - <span>viewport</span>
295-
height excluding the size of a rendered scroll bar (if any)).</p></li>
296-
297-
<li><p>If <var title="">y</var> is negative let it be zero.</p></li>
282+
height excluding the size of a rendered scroll bar (if any))).</p></li>
298283

299284
<li><p>Align the x-coordinate <var title="">x</var> of the
300285
<span>document content</span> with the left of the <span>viewport</span>

0 commit comments

Comments
 (0)