Re: [csswg-drafts] [A11Y proposal] assistance property (#7504)

TLDR:
why not just expand the display property: `display: invisible` and `display: sr-none`

I also like the idea of adapting aria for CSS.
But lets KISS, instead of `display: none; aria-hidden: false` _(it also reads terribly, double/tripple-ish negative)_

`display` could be expanded with `display: invisible` (not hidden, it's a visual thing).
Removing it from the flow/visual rendering like `display: none`, but keeping the accessibility tree.
And perhaps the same for `assistance: sr-hidden;`: `display: sr-none` (to keep in line with "display: none")
and you could still do `display: flex sr-none` for instance.

Agree about the focus-only not being needed, that role would come to the new `display: invisible`/`assistence: sr-hidden`, it's contents are tabbable (because it's visible to the accessibility tree), so you can do anything you want with the default :focus/:focus-within.



-- 
GitHub Notification of comment by bskibinski
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7504#issuecomment-1204187247 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 3 August 2022 16:23:12 UTC