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

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

Closed
dizhang168 opened this issue Aug 1, 2024 · 4 comments

Comments

@dizhang168
Copy link
Contributor

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.

@dizhang168
Copy link
Contributor Author

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.

@annevk annevk added topic: focus agenda+ To be discussed at a triage meeting labels Nov 8, 2024
@annevk
Copy link
Member

annevk commented Nov 8, 2024

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

@dizhang168
Copy link
Contributor Author

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.

@past past removed the agenda+ To be discussed at a triage meeting label Nov 21, 2024
@chrishtr
Copy link
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
Development

No branches or pull requests

4 participants