Skip to content

Discussing how to focus navigate absolute position elements that are focusable in CSS reading-flow #10539

Closed

Description

@dizhang168

What is the issue with the HTML Standard?

As brought up by @emilio during the WHATNOT meeting, elements that have CSS position: absolute do not participate in the grid/flex layout. Its focus navigation order is hence unclear, similar to the display: contents case (#10533).

Example:
https://codepen.io/mfreed7/pen/poXeVbv

The proposal for reading-flow focus navigation should handle this case.

Activity

  1. dizhang168 commented on Oct 22, 2024

    @dizhang168
    ContributorAuthor

    For elements that are not included in the flex/grid layout such as position: absolute, we propose visiting them at the end of the reading flow, in DOM order.

  2. added
    topic: focus
    agenda+
    on Nov 8, 2024
  3. annevk commented on Nov 8, 2024

    @annevk
    Member

    Marking this agenda+ as there's a PR in progress (#10613) and this seems relevant to resolve beforehand.

  4. dizhang168 commented on Nov 15, 2024

    @dizhang168
    ContributorAuthor

    Current proposed resolution is to visit all out of flow children with no reading flow order information (such as elements with CSS position: absolute) after the valid rendering-defined sibling reading flow, in DOM tree order.

    Since the 'reading-flow property is meant for navigating flex/grid/etc items in visual order, cases like "position: absolute" are rare. We haven't received any oppositions to move forward with the above resolution.

  5. removed
    agenda+
    on Nov 21, 2024
  6. chrishtr commented on Nov 21, 2024

    @chrishtr
    Contributor

    Closing this issue since there is nothing left to track here specifically.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: focus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions