Skip to content

Commit

Permalink
[css-overflow-3] Move note and add subheading
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Dec 31, 2022
1 parent 9f031d6 commit 1627add
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions css-overflow-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,20 @@ Scrolling Overflow</h3>
uses the <a>principal writing mode</a> for determining
its [=scroll origin=] and [=initial scroll position=].

Note: In the case where a [=scroll container=] (or one of its ancestors)
is the target of a graphical transform,
the UA might need to take this transform into account
when mapping user inputs to scrolling operations.
For instance, on a touch screen where the user scrolls
by directly dragging the content,
the transform would be expected to be taken into account
to match the direction of scrolling to the gesture.
On the other hand, other user inputs
(such as the Page Down key, or a 1D scroll wheel)
might be more naturally interpreted ignoring the transform.
Choosing the appropriate behavior for each scrolling mechanism
is the responsibility of the UA.

<!--
███████ ██ ██ ████████ ████████ ████████ ██ ███████ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
Expand All @@ -407,6 +421,10 @@ Scrolling and Clipping Overflow</h2>
<h3 id="overflow-control">
Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3>

These properties specify whether a box’s [=overflow=] is clipped,
and if so,
whether it is a [=scroll container=].

<pre class=propdef>
Name: overflow-x, overflow-y, overflow-block, overflow-inline
Value: visible | hidden | clip | scroll | auto
Expand All @@ -418,10 +436,6 @@ Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3
Animation type: discrete
</pre>

These properties specify whether a box’s [=overflow=] is clipped,
and if so,
whether it is a [=scroll container=].

The 'overflow-x' property specifies
the handling of <a>overflow</a> in the horizontal axis
(i.e., overflow from the left and right sides of the box),
Expand Down Expand Up @@ -526,6 +540,9 @@ Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3
is neither ''overflow/visible'' nor ''overflow/clip'' nor a combination thereof,
it [=establishes an independent formatting context=] for its contents.

<h4 id="scroll-visibility">
Interaction of 'visibility' and 'overflow'</h4>

If the computed value of the 'visibility' property is ''visibility/hidden''
(or ''visibility/collapse'' when it has the same effect as ''visibility/hidden''),
and 'overflow' is either ''overflow/scroll'' or ''overflow/auto'',
Expand All @@ -543,22 +560,8 @@ Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3
with a descendent of the ''visibility: hidden'' [=scroll container=]
that is itself set to ''visibility: visible''.

Note: In the case where the [=scroll container=] (or one of its ancestors)
is the target of a graphical transform,
the UA might need to take this transform into account
when mapping user inputs to scrolling operations.
For instance, on a touch screen where the user scrolls
by directly dragging the content,
the transform would be expected to be taken into account
to match the direction of scrolling to the gesture.
On the other hand, other user inputs
(such as the Page Down key, or a 1D scroll wheel)
might be more naturally interpreted ignoring the transform.
Choosing the appropriate behavior for each scrolling mechanism
is the responsibility of the UA.

<h3 id="static-media">
Overflow in Print and Other Static Media</h3>
<h4 id="static-media">
Overflow in Print and Other Static Media</h4>

<p class="advisement">
Since scrolling is not possible in static media
Expand Down

0 comments on commit 1627add

Please sign in to comment.