-
Notifications
You must be signed in to change notification settings - Fork 13
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
Accessible name from content is not computed correctly in case of display: block
descendants
#1054
Comments
Current state:
Resolution: change alfa-aria/fromDescendants to add space before and after each block element + trim result (to de-duplicate spaces). |
It seems we're still not good when the |
I've tried to write some test cases we might use for this, based on my (limited) understanding of the issue:
|
@Jym77 Is the above useful? Can I add something else to help prepare this task? |
Perfect. Thanks. |
Is this issue related to #1203? |
The accessible name specs say to join the content from descendants, but is not clear whether that should be done with or without space between them (w3c/accname#15). Back in #889 we decided to join them without space. This seems to be incorrect when there are spaces between the elements, or when the elements have
display: block
which adds visual spacing (new line) upon rendering.Chrome (Version 97.0.4692.99) gives
"inlineno space", "inlinewith space", "block no space", "block with space", "block inline", "inline block"
Firefox (V 96.0.3) gives
"inlineno space", "inline with space", "block no space", "block with space", "block inline", "inline block"
Alfa gets no space between the elements in all cases.
The text was updated successfully, but these errors were encountered: