-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add accname tests for “Hidden not referenced” step #40074
Add accname tests for “Hidden not referenced” step #40074
Conversation
Just getting my feet wet here. Could I trouble you for some initial thoughts, @cookiecrook? These failures related to |
Well, at least that explains why there are no results for WebKit. |
I thought of another example: the collapsed (hidden) contents of summay/details, when a role is applied that gets namefrom contents. <summary role="comment" data-expectedlabel="visible contents" data-testname="namefrom:contents(comment role) on summary w/ hidden details" class="ex">
visible contents
<details>hidden contents</details>
</summary> |
7675245
to
6770885
Compare
My brain broke on this one. 😅 First of all, |
Hey @cookiecrook, thanks again for your patience, for your feedback, and for all the test case suggestions. With the exception of the In the case of One weird behavior I noticed is that one of the two failing cases — #8 — actually does appear to kind of work in reality, at least when testing in macOS with VoiceOver (for both Chrome and Safari). When I move the virtual cursor to the rendered heading, I do get the expected announcement of “visible to all users, un-hidden for all users”. In Chrome, the devtools accessiblity tree shows both intended So that makes me suspicious that perhaps there’s a bug/feature in VoiceOver where it announces the full contents of the heading on focus of the virtual cursor, rather than the computed accessible name? As more interesting evidence, the rotor identifies the heading by the computed accessible name: I’ll plan to do a little more testing of that in Windows to see how JAWS and NVDA behave. |
…en-not-referenced
Yes, sorry. I think this markup is right now, but I'm no longer sure of the expectation. <details role="comment" data-expectedlabel="visible contents" data-testname="namefrom:contents(comment role) on summary w/ hidden details" class="ex">
<summary> visible contents </summary>
hidden contents
</details> Hmm… I'm no longer sure the above is expected, because I think it'd be reasonable for implementations to not provide a backing accessibility node for |
Since it's still ambiguous, we should probably comment those tests, with a link to the blocking spec issue. |
Do you have a permanent link to that test case? I can write up a bug and start to determine if it's an engine problem or a VO problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good overall... Thanks for all your hard work on this one!
Minor nits below about testname and label names for clarity and permalink longevity.
…en-not-referenced
@cookiecrook well, my premise with this test case was that an element with Our 1.3 editors draft doesn’t seem to make any exceptions for descendants of an element with
But as far as interop goes, it does seem like there’s a test case here worth pursuing, since Firefox passes the test case (as written) while Chrome fails and Safari fails. A strict reading of that language in the ARIA 1.3 spec suggests that I should keep the test case but change the expected label to “visible to all users,”, then file a Mozilla bug? |
@cookiecrook besides this last comment, I believe I’ve addressed all your feedback with my latest batch of commits. Please let me know what you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving either way, but with a minor preference for removing the commented code.
<!-- TODO: Restore the following test once expectation for `aria-hidden="false"` | ||
<!-- behavior is documented. See: --> | ||
<!-- https://github.com/w3c/aria/issues/1256 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you worked hard on these, but I think it would be better to check in the patch without the commented code, and only add specific examples once the new issue came to resolution... Otherwise someone might see 1256 is resolved (in the future) and uncomment these even if they don't align with the resolution… Or also bad, these could just sit around commented indefinitely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just keep your test names, since they should be clear enough to show what needs to be tested? such as:
<!--
Todo: once https://github.com/w3c/aria/issues/1256 resolved.
- button labelled by an element that is aria-hidden=true which contains a nested child that is aria-hidden=false
- test name 2
- test name 3
- etc.
-->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working so hard on these!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledging that August James asked you to comment them, and October James asked you to remove them, so I won't stop you from squash merging as-is... Take your pick. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha ha, no trouble at all, @cookiecrook — happy for the opportunity to contribute at all. I went ahead and removed the test cases that are blocked by aria#1256 but left a comment identifying each one by name. 👍🏻
Based on our quick conversation in the WPT meeting, I also left the expectation as is for the ...visibility:hidden with nested content that is visibility:visible
test case, so Firefox is currently the only pass for that one.
…s#40074) * add tests * replace all tests * remove numbers from test names * disambiguate “hidden” terminology in test names * add todo comment for future details test * comment out aria-hidden=false test cases * finesse test name * lint fix * remove test cases blocked by aria web-platform-tests#1256
…s#40074) * add tests * replace all tests * remove numbers from test names * disambiguate “hidden” terminology in test names * add todo comment for future details test * comment out aria-hidden=false test cases * finesse test name * lint fix * remove test cases blocked by aria web-platform-tests#1256
Closes web-platform-tests/interop-accessibility#32