Skip to content

Commit 7c22962

Browse files
committed
[css-overflow-3] Disable direct interactive scrolling for visibility:hidden
See #4113
1 parent c996f0e commit 7c22962

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

css-overflow-3/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,21 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
443443
is neither ''overflow/visible'' nor ''overflow/clip'' nor a combination thereof,
444444
it [=establishes an independent formatting context=] for its contents.
445445

446+
If the computed value of the 'visibility' property is ''visibility/hidden''
447+
(or ''visibility/collapse'' when it has the same effect as ''visibility/hidden''),
448+
and 'overflow' is either ''overflow/scroll'' or ''overflow/auto'',
449+
then:
450+
* The user agent must not make any scrolling mechanism visible.
451+
To the extent that the scrolling mechanism that would normally be visible
452+
in the absence of ''visibility: hidden'' affects layout,
453+
it continues to do so, but is not painted.
454+
* As would be the case with ''overflow: hidden'',
455+
scrolling directly triggered by user interactions is disabled,
456+
but programmatic scrolling continues to take effect.
457+
* The lack of interactive direct scrolling is enforced
458+
even if the user interacts (e.g. with a mouse scrolling wheel)
459+
with a descendent of the ''visibility: hidden'' [=scroll container=]
460+
that is itself set to ''visibility: visible''.
446461

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

0 commit comments

Comments
 (0)