-
Notifications
You must be signed in to change notification settings - Fork 5
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
role/label tests needed for display: contents
#60
Comments
Can this be sufficiently tested with the "get computed role" command? |
I think a combination of |
Some examples of that for others who may want to start writing the tests...
|
Unfortunately this very much depends on how these are computed (I apologise that I don't know enough about how they're specified to know whether I'm barking up the wrong tree here.) There was a regression in Blink (see comment 2) which was not detected due to precisely the issue of not explicitly checking whether a node was ignored, and only checking its computed role - the role was being computed and exposed to the relevant testing API even though the node was (incorrectly) ignored. |
@alice I'm not sure if you are saying this can't be tested at all with the existing webdriver methods, or just that, in order to make the tests 100% reliable, we need some additional interface (WICG/aom#203 or otherwise). If the latter, I think we can continue with this issue tracker, while acknowledging it may not get us all the way there. |
I guess I'm not sure of the value of testing with the existing methods if we're not completely certain they're testing (what I think is) the main thing that needs to be tested, i.e. that using |
Agenda+ to ask if PR 43740 is all for behaviors that are in a consensus spec. |
Yes, other than some that are noted for removal or change in the review. |
To reiterate, @alice is correct that current test API does not allow us to test everything we would like to test (like |
display: contents
tests neededdisplay: contents
I changed the title, so that it's more precise about what is currently testable. Once we have more API available to test (like |
When
display: contents
was first implemented by browsers, it was not designed to fully take into consideration how browser engines could implement this in an accessible way. Because it required significant refactor of the entire accessibility system in browser engines, it's taken time to fix... and meant the initial implementations were not at all accessible.Web developers have been told "don't use this!" Although, of course, not everyone gets the memo, and developers are using it. Especially since subgrid has taken so very long to ship.
Browsers have, over time, greatly improved their implementation of
display: contents
. It is now behaving properly most of the time / for core use cases. But there are still ways in which it's not yet fixed, and that can create an accessibility minefield.If there were WPT tests for
display: contents
, it could be included in Interop 2024. And we could encourage all three engines to finish improving their implementation, squash all the remaining accessibility bugs, and ensure elements withdisplay: contents
applied (and all their children) don't magically vanish from screenreaders.The text was updated successfully, but these errors were encountered: