You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-overflow-5/carousel-explainer.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,9 @@ to access content on future pages.
57
57
58
58
This is typically accomplished through the use of Javascript,
59
59
as can be seen in the [Web Accessibility Initiative Carousel example](https://www.w3.org/WAI/tutorials/carousels/working-example/).
60
-
However, this should be simple to express and declare in CSS.
60
+
However, the interactivity state of carousel pages is necessarily dynamic.
61
+
Being able to express this in CSS allows authors to correctly reflect this expected design
62
+
without tracking and updating the script via state.
61
63
62
64
### Stylable columns
63
65
@@ -565,3 +567,19 @@ As such, we'd propose adding the `invoke` keyword to the `focusgroup` attribute
565
567
Note that this example uses tabindex="-1" to apply the [roving tab index with a guaranteed tab stop](https://open-ui.org/components/focusgroup.explainer/#guaranteed-tab-stop) behavior from focusgroup.
566
568
567
569
This approach implements the navigation behavior, but notably does not explain how scroll markers would track the scroll state and allow styling the active marker.
570
+
571
+
### overflow-interactivity: inert
572
+
573
+
One idea that was explored in [#10711](https://github.com/w3c/csswg-drafts/issues/10711)
574
+
is a property on a scrolling container which would automatically remove content which is outside of the scrollport.
575
+
This is appealing in that it would only remove content which is not seen currently,
576
+
ensuring that the content the user is seeing would be interactive and in the accessibility tree.
577
+
578
+
However, as we have explored use cases,
579
+
two key visual effects kept coming up where the later or earlier content is visible, but not intended to be interacted with.
580
+
These are:
581
+
* Peeking into the next item in the carousel (e.g. [1](https://flackr.github.io/web-demos/css-overflow/carousel/), [2](https://chrome.dev/carousel/vertical/list/)),
582
+
* Stacking or other 3d effects where the future or previous content may be visually obscured, scaled down, not intended to be interacted with but still within the scrollport (e.g. [1](https://chrome.dev/carousel/vertical/stack/)).
583
+
584
+
In these cases, overflow-interactivity would not produce the user's expected interaction model,
585
+
and they would have to manually adjust an attribute as they would need to today to mark that content as not currently readable / interactable.
0 commit comments