-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Update /accname/name/comp_tooltip.html
#42093
Conversation
accname/name/comp_tooltip.html
Outdated
<img src="foo.jpg" title="label" data-expectedlabel="label" data-testname="img with tooltip label without alt" class="ex"> | ||
<img src="foo.jpg" title="label" data-expectedlabel="broken" alt="broken" data-testname="img with tooltip label with alt" class="ex"> | ||
<img src="foo.jpg" data-expectedlabel="broken" alt="broken" data-testname="img with tooltip label without title" class="ex"> |
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.
Would be good to test explicitly empty alt too (alt="" label="title"
)
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.
Done in 0f8aef2
accname/name/comp_tooltip.html
Outdated
<a href="#" title="label" data-expectedlabel="label" data-testname="link label from tooltip" class="ex"><img src="#" alt=""></a> | ||
<a href="#" title="label" data-expectedlabel="label" data-testname="link with img with tooltip label" class="ex"><img src="#" alt=""></a> | ||
<a href="#" title="label" data-expectedlabel="label" data-testname="link with text with tooltip label" class="ex">content</a> | ||
<div title="label" data-expectedlabel="label" data-testname="div with text with tooltip label" class="ex">content</div> |
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.
This div
test may be ambiguous since its role is undefined and should in theory be ""
, generic
, or none
, which don't support name from: author
or contents
. Adding role="group"
should remove the ambiguity IIRC.
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.
Please file this test as-is, in a new, separate issue (on this repo or AccName) to make sure there isn't a spec ambiguity.
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.
Please file this test as-is, in a new, separate issue (on this repo or AccName) to make sure there isn't a spec ambiguity.
Got it, submitted w3c/accname#202
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.
This
div
test may be ambiguous since its role is undefined and should in theory be""
,generic
, ornone
, which don't support name from:author
orcontents
. Addingrole="group"
should remove the ambiguity IIRC.
Thanks! Done in 73e4577
accname/name/comp_tooltip.html
Outdated
<textarea title="enter text" data-expectedlabel="enter text" placeholder="textarea" data-testname="textarea with tooltip label" class="ex"></textarea> | ||
<input type="text" title="label" data-expectedlabel="label" placeholder="text" data-testname="text input with tooltip label" class="ex"> | ||
<input type="email" title="label" data-expectedlabel="label" placeholder="email" data-testname="email input with tooltip label" class="ex"> | ||
<input type="password" title="label" data-expectedlabel="label" placeholder="password" data-testname="password input with tooltip label" class="ex"> |
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.
@scottaohara please review. I think placeholder vs title precedence is still undefined in AccName but defined in HTML-AAM, is that correct? If so, this is probably okay as-is.
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.
@howard-e these test names should include mention of the placeholder attr, I 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.
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 the changes... I'm going to go ahead and r+, but give @scottaohara a few days to respond. As long as he doesn't raise an objection on the placeholder tests, you could merge it next week. If there's additional feedback later, we can address it in a new PR. Thanks Howard!
Okay noted, thanks for the review! |
Ready to merge, @howard-e? Thanks! |
@cookiecrook yep, merged. Thanks! |
* Update /accname/name/comp_tooltip.html * Add role=group to div test * Add test to check <img> with empty alt * Update testnames of tests with placeholders
Closes web-platform-tests/interop-accessibility#38