Skip to content

Commit 0a14f02

Browse files
committed
[css-overflow-3] overflow propagation only applies to 'overflow' longhands, move section
1 parent f07719a commit 0a14f02

1 file changed

Lines changed: 31 additions & 33 deletions

File tree

css-overflow-3/Overview.bs

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,37 @@ Overflow in Print and Other Static Media</h4>
619619
for example, e-book readers paginate content,
620620
but are interactive.
621621

622+
<h4 id="overflow-propagation">
623+
Overflow Viewport Propagation</h4>
624+
625+
UAs must apply the 'overflow' values
626+
set on the root element to the <a>viewport</a>
627+
when the root element’s 'display' value is not ''display/none''.
628+
However,
629+
when the root element is an [[!HTML]] <{html}> element
630+
(including <a href="https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml">XML syntax for HTML</a>)
631+
whose 'overflow' value is ''overflow/visible'' (in both axes),
632+
and that element has as a child
633+
a <{body}> element whose 'display' value is also not ''display/none'',
634+
user agents must instead apply the 'overflow' values
635+
of the first such child element to the viewport.
636+
The element from which the value is propagated must then have
637+
a used 'overflow' value of ''overflow/visible''.
638+
639+
Note: Using [=containment=] on the HTML <{html}> or <{body}> elements disables
640+
this special handling of the HTML <{body}> element.
641+
See the [[CSS-CONTAIN-1#contain-property]] for details.
642+
643+
Note: ''overflow: hidden'' on the root element
644+
might not clip everything outside the [=Initial Containing Block=]
645+
if the ICB is smaller than the viewport,
646+
which can happen on mobile.
647+
648+
If ''overflow/visible'' is applied to the viewport,
649+
it must be interpreted as ''overflow/auto''.
650+
If ''overflow/clip'' is applied to the viewport,
651+
it must be interpreted as ''overflow/hidden''.
652+
622653
<h3 id="overflow-clip-margin">
623654
Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
624655

@@ -677,39 +708,6 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
677708
It now also affects [=scroll containers=],
678709
but only to shrink the clipping edge.
679710

680-
681-
<h3 id="overflow-propagation">
682-
Overflow Viewport Propagation</h3>
683-
684-
UAs must apply the 'overflow-*' values
685-
set on the root element to the <a>viewport</a>
686-
when the root element’s 'display' value is not ''display/none''.
687-
However,
688-
when the root element is an [[!HTML]] <{html}> element
689-
(including <a href="https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml">XML syntax for HTML</a>)
690-
whose 'overflow' value is ''overflow/visible'' (in both axes),
691-
and that element has as a child
692-
a <{body}> element whose 'display' value is also not ''display/none'',
693-
user agents must instead apply the 'overflow-*' values
694-
of the first such child element to the viewport.
695-
The element from which the value is propagated must then have
696-
a used 'overflow' value of ''overflow/visible''.
697-
698-
Note: Using [=containment=] on the HTML <{html}> or <{body}> elements disables
699-
this special handling of the HTML <{body}> element.
700-
See the [[CSS-CONTAIN-1#contain-property]] for details.
701-
702-
Note: ''overflow: hidden'' on the root element
703-
might not clip everything outside the [=Initial Containing Block=]
704-
if the ICB is smaller than the viewport,
705-
which can happen on mobile.
706-
707-
If ''overflow/visible'' is applied to the viewport,
708-
it must be interpreted as ''overflow/auto''.
709-
If ''overflow/clip'' is applied to the viewport,
710-
it must be interpreted as ''overflow/hidden''.
711-
712-
713711
<h3 id=smooth-scrolling caniuse=css-scroll-behavior>
714712
Smooth Scrolling: the 'scroll-behavior' Property</h3>
715713

0 commit comments

Comments
 (0)