When aria-pressed is set on a native HTML <button> element the state is not conveyed to VoiceOver iOS 10, however, if the extra role="button" attribute/value is added to the <button> tag, e.g. <button aria-pressed="true" role="button"> works but <button aria-pressed="true"> does not work.
Steps to Reproduce:
1. Turn on VoiceOver on iOS 10.
2. Visit http://pauljadam.com/demos/button.html in Safari iOS
3. Activate the aria-pressed button example under the aria-pressed heading.
4. Notice that aria-pressed button is now visually styled to look pressed and the aria-pressed attribute has been updated to equal "true".
5. Set VoiceOver focus to the newly pressed button.
VoiceOver speaks "aria-pressed Toggle button Pressed Double tap to toggle setting."
VoiceOver speaks "aria-pressed Toggle button Not pressed Double tap to toggle setting."
The second aria-pressed role iOS bug button works properly because the extra aria-pressed="true" attribute/value is added.
Created attachment 289487 [details]
Created attachment 289493 [details]
fixed failure test.
(In reply to comment #3)
> Created attachment 289493 [details]
> fixed failure test.
looks like still failing. r=me when tests pass
Created attachment 289496 [details]
I accidentally included an unwanted file. Fixed that
Comment on attachment 289496 [details]
Clearing flags on attachment: 289496
Committed r206259: <http://trac.webkit.org/changeset/206259>
All reviewed patches have been landed. Closing bug.