- From: Stephanie Eckles via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Oct 2024 15:29:41 +0000
- To: public-css-archive@w3.org
5t3ph has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-anchor-position] Enable scroll position change for focused elements within anchored content == When content within an anchor positioned element gains focus in a way that should change the scroll position, no scroll position change occurs even when the anchored element is completely out of the viewport. As seen in this CodePen, the anchored element has a link which should be scrolled to with the second tab stop when testing via keyboard tabbing. The scroll event happens appropriately for absolute, fixed, and sticky positioned non-anchored content as also demonstrated. https://codepen.io/5t3ph/pen/abeGdeb Expectation is that scroll position should adjust to reveal focused elements the same as regular document content. Not ensuring focused content is visible is a WCAG violation ([SC 2.4.11 - Focus Not Obscured](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)) that the platform should default to resolving (acknowledging author styles/scripts can subsequently break again). The solution should also account for bringing elements which gain focus back into view that may have been hidden via `position-visibility` to avoid obscuring keyboard focus that may remain in those elements. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11110 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 October 2024 15:29:42 UTC