Skip to content

Commit 60723fa

Browse files
authored
[css-overflow-5] Add overflow-interactivity to alternatives considered. (#12118)
This is an editorial change of the explainer only.
1 parent 95b47ca commit 60723fa

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

css-overflow-5/carousel-explainer.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ to access content on future pages.
5757

5858
This is typically accomplished through the use of Javascript,
5959
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.
6163

6264
### Stylable columns
6365

@@ -565,3 +567,19 @@ As such, we'd propose adding the `invoke` keyword to the `focusgroup` attribute
565567
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.
566568

567569
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

Comments
 (0)