Skip to content

Commit

Permalink
[css-overflow-3] Disable direct interactive scrolling for visibility:…
Browse files Browse the repository at this point in the history
…hidden

See #4113
  • Loading branch information
frivoal committed Jun 7, 2021
1 parent c996f0e commit 7c22962
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions css-overflow-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,21 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
is neither ''overflow/visible'' nor ''overflow/clip'' nor a combination thereof,
it [=establishes an independent formatting context=] for its contents.

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'',
then:
* The user agent must not make any scrolling mechanism visible.
To the extent that the scrolling mechanism that would normally be visible
in the absence of ''visibility: hidden'' affects layout,
it continues to do so, but is not painted.
* As would be the case with ''overflow: hidden'',
scrolling directly triggered by user interactions is disabled,
but programmatic scrolling continues to take effect.
* The lack of interactive direct scrolling is enforced
even if the user interacts (e.g. with a mouse scrolling wheel)
with a descendent of the ''visibility: hidden'' [=scroll container=]
that is itself set to ''visibility: visible''.

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

0 comments on commit 7c22962

Please sign in to comment.