Skip to content

Commit f764ae3

Browse files
committed
[css-overflow-3] Clarify effects of clipping on scrollable overflow #8607
1 parent d59e6f8 commit f764ae3

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

css-overflow-3/Overview.bs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -633,19 +633,19 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
633633
<h3 id=scrollable-overflow-calculation>
634634
Calculating the Scrollable Overflow Area</h3>
635635

636-
The <a>scrollable overflow area</a> of a [=scroll container=] is the union of:
636+
The <a>scrollable overflow area</a> of a box is the union of:
637637
<ul>
638638
<li>
639-
The [=scroll container=]’s own [=padding box=].
639+
Its own [=padding box=].
640640

641641
<li>
642-
All [=line boxes=] directly contained by the [=scroll container=].
642+
All [=line boxes=] it directly contains.
643643

644644
<li>
645645
The border boxes
646646
of all boxes for which it is the containing block
647647
and whose border boxes are positioned not wholly
648-
in the [=unreachable scrollable overflow region=],
648+
within its [=unreachable scrollable overflow region=] (if any),
649649
accounting for transforms by projecting each box onto
650650
the plane of the element that establishes its <a>3D rendering context</a>.
651651
[[!CSS3-TRANSFORMS]]
@@ -671,17 +671,14 @@ Calculating the Scrollable Overflow Area</h3>
671671

672672
<li>
673673
The <a>scrollable overflow areas</a> of all of the above boxes
674-
(including zero-area boxes
675-
and accounting for transforms as described above),
676-
provided they themselves have ''overflow: visible''
677-
(i.e. do not themselves trap the overflow)
678-
and that <a>scrollable overflow</a> is not already clipped
679-
(e.g. by the 'clip' property or the 'contain' property).
680-
681-
Note: The 'mask-*' properties [[!CSS-MASKING-1]]
682-
do not affect the <a>scrollable overflow area</a>.
674+
(including zero-area boxes),
675+
clipped to their [=overflow clip edge=]
676+
if 'overflow' is not ''overflow/visible'' or 'contain' applies ''contain/paint'',
677+
and accounting for transforms as described above.
683678

684-
ISSUE(8607): Need to evaluate what should/should not clip [=scrollable overflow=].
679+
Note: The 'clip', 'clip-path', and 'mask-*' properties [[!CSS-MASKING-1]]
680+
do not affect the <a>scrollable overflow area</a>.
681+
Only effects that clip to the [=overflow clip edge=] are taken into account.
685682

686683
<li>
687684
Additional padding added

0 commit comments

Comments
 (0)