@@ -206,7 +206,7 @@ Scrollable Overflow</h3>
206206 The <a>scrollable overflow area</a> is the union of:
207207 <ul>
208208 <li>
209- the box’s own content and padding areas
209+ the box’s own [= padding box=]
210210
211211 <div class=issue>
212212 There's disagreement on the scrolling model.
@@ -490,14 +490,68 @@ Scrollbars and Layout</h3>
490490 For the purpose of the [=background positioning area=] and [=background painting area=] , however,
491491 this reserved space is considered to be part of the [=padding box=] .
492492
493+ <div class="example">
494+ In the following document fragment,
495+ both an absolutely-positioned element
496+ and a background image
497+ are positioned to the top right of the box.
498+
499+ <xmp highlight=html>
500+ <style>
501+ article { background: top right no-repeat url(circle.png); }
502+ aside { position: absolute; top: 0; right: 0; }
503+ </style>
504+ <article>
505+ <aside> ×</aside>
506+ </section>
507+ </xmp>
508+
509+ If no scrollbars are present on <code> <article></code> ,
510+ they will both coincide in the top right padding edge corner.
511+ However, if scrollbars are present
512+ then <code> <aside></code> will be completely visible,
513+ on the right padding-box edge adjacent to the scrollbars;
514+ whereas the background image will be tucked underneath the scrollbars,
515+ in the top right corner of the scrollbar-extended [=background positioning area=] .
516+ </div>
517+
493518 When the box is sized to fit its contents,
494519 this reserved space is added to the size of its contents.
495520 It is otherwise subtracted from space alotted to the [=content area=] .
496521 To the extent that the presence of scrollbars can affect sizing,
497522 UAs must start with the assumption that no scrollbars are needed,
498523 and recalculate sizes if it turns out they are.
499524
500- Issue: import examples from [[CSS3-BOX]] .
525+ <div class="example">
526+ In the following document fragment,
527+ the outer <code> <article></code> has ''height: auto'' , but ''max-height: 5em'' .
528+ The inner <code> <section></code> has large margins and would normally just fit:
529+
530+ <xmp highlight=html>
531+ ...
532+ article { overflow: auto; max-height: 5em; width: max-content; }
533+ section { margin: 2em; line-height: 1 }
534+ ...
535+ <article>
536+ <section>
537+ This section has big margins.
538+ </section>
539+ </section>
540+ </xmp>
541+
542+ If we assumed that <code> <article></code> needed scrollbars,
543+ then the height of <code> <section></code> ,
544+ including the single line of text and twice 2em of margins,
545+ adds up to 5em plus a scrollbar.
546+ Since that is greater than 5em, the maximum allowed height,
547+ it seems we made the right assumption and d1 indeed needs scrollbars.
548+
549+ However, we should have started by assuming that no scrollbars are needed.
550+ In that case the content height of <code> <article></code>
551+ is exactly the maximum height of 5em,
552+ proving that the assumption was correct
553+ and <code> <article></code> indeed should not have scrollbars.
554+ </div>
501555
502556<h3 id="scrolling-direction">
503557Scrolling Origin, Direction, and Restriction</h3>
0 commit comments