Skip to content
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

Name calculation should take account of CSS block vs inline #83

Open
dd8 opened this issue Jun 1, 2020 · 2 comments
Open

Name calculation should take account of CSS block vs inline #83

dd8 opened this issue Jun 1, 2020 · 2 comments
Milestone

Comments

@dd8
Copy link

dd8 commented Jun 1, 2020

Both Firefox and Chrome append extra spaces for block elements embedded in name-from-content elements (which makes sense because the name better matches the visual presentation) but this isn't specified in either accname or html-aam.

Edit: Safari Apple Accessibility Inspector gets quite confused when name-from-content elements contain block elements, but these are voiced as shown below in VoiceOver

<a href="/">One<span>Two</span></a>

AccName: OneTwo (Chrome and FF), One Two (Safari)
Visual label: OneTwo

<a href="/">One<p>Two</p></a>

AccName: One Two (Chrome and FF), One Two (Safari)
Visual label: One
Two

<a href="/">One<span style="display:block">Two</span></a>

AccName: One Two (Chrome and FF), One Two (Safari)
Visual label: One
Two

@JAWS-test
Copy link

Related: #16 and #3

@jnurthen jnurthen added this to the 1.2 milestone Jun 11, 2020
@jnurthen
Copy link
Member

also see w3c/aria#699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants