Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-overflow-5] Creating scroll-marker groups within which to select an active marker #10916

Open
flackr opened this issue Sep 18, 2024 · 0 comments

Comments

@flackr
Copy link
Contributor

flackr commented Sep 18, 2024

In order to be able to select one active scroll marker among many potential options, we need a way to establish a group of scroll markers.

In https://flackr.github.io/carousel/examples/scroll-marker/scrolltarget/ there are situations in which more than one group is desired (TOC section selector on left is one group, chapter selector icons on right is another group), as well as where some anchor links should not be part of the group (e.g. the inline links to other sections within the document should not be made active.

The current draft specification establishes a group by having an ancestor with a specified focusgroup value, however there are other options. Should we:

  1. Continue to use focusgroup as the mechanism for creating a scroll marker group. It seems to have the correct semantics, though there we may want an alternative as:

  2. Add a named mechanism. If so, we'd have to decide whether this is:

    • An HTML attribute? E.g. similar to radio group's name attribute, however name already has a defined meaning on links so we would need to choose something else, maybe group?
    • A CSS property?

    And whether this is a property on each participating link (similar to radio buttons) or on an ancestor (similar to focusgroup).

These options are not necessarily mutually exclusive. We could implicitly create marker groups from focusgroup, but also allow explicitly putting them in a named group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant