Commit a3f82b7c authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Aria details should force spans to be exposed

Bug: 843355
Change-Id: I837d0c38e7ab986a92e256d24703fc2ba088331d
Reviewed-on: https://chromium-review.googlesource.com/1060266
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559220}
parent 238ad54d
...@@ -4,3 +4,14 @@ rootWebArea ...@@ -4,3 +4,14 @@ rootWebArea
++paragraph ++paragraph
++++staticText name='Details' ++++staticText name='Details'
++++++inlineTextBox name='Details' ++++++inlineTextBox name='Details'
++paragraph
++++staticText name='This '
++++++inlineTextBox name='This '
++++genericContainer detailsId=group
++++++staticText name='text'
++++++++inlineTextBox name='text'
++++staticText name=' has details'
++++++inlineTextBox name=' has details'
++group
++++staticText name='Text details'
++++++inlineTextBox name='Text details'
...@@ -2,4 +2,11 @@ ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE n_relations=0 ...@@ -2,4 +2,11 @@ ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE n_relations=0
++IA2_ROLE_SECTION n_relations=0 ++IA2_ROLE_SECTION n_relations=0
++++ROLE_SYSTEM_TEXT FOCUSABLE n_relations=1 ++++ROLE_SYSTEM_TEXT FOCUSABLE n_relations=1
++IA2_ROLE_PARAGRAPH n_relations=1 ++IA2_ROLE_PARAGRAPH n_relations=1
++++ROLE_SYSTEM_STATICTEXT name='Details' n_relations=0 ++++ROLE_SYSTEM_STATICTEXT name='Details' n_relations=0
\ No newline at end of file ++IA2_ROLE_PARAGRAPH n_relations=0
++++ROLE_SYSTEM_STATICTEXT name='This ' n_relations=0
++++IA2_ROLE_SECTION n_relations=1
++++++ROLE_SYSTEM_STATICTEXT name='text' n_relations=0
++++ROLE_SYSTEM_STATICTEXT name=' has details' n_relations=0
++ROLE_SYSTEM_GROUPING n_relations=1
++++ROLE_SYSTEM_STATICTEXT name='Text details' n_relations=0
...@@ -9,5 +9,8 @@ ...@@ -9,5 +9,8 @@
<input aria-details="details"> <input aria-details="details">
</div> </div>
<p id="details">Details</p> <p id="details">Details</p>
<p>This <span aria-details="details2">text</span> has details</p>
<div role="group" id="details2">Text details</div>
</body> </body>
</html> </html>
...@@ -697,6 +697,7 @@ bool AXLayoutObject::ComputeAccessibilityIsIgnored( ...@@ -697,6 +697,7 @@ bool AXLayoutObject::ComputeAccessibilityIsIgnored(
// not ignored, rather than just images. // not ignored, rather than just images.
if (!GetAttribute(aria_helpAttr).IsEmpty() || if (!GetAttribute(aria_helpAttr).IsEmpty() ||
!GetAttribute(aria_describedbyAttr).IsEmpty() || !GetAttribute(aria_describedbyAttr).IsEmpty() ||
!GetAttribute(aria_detailsAttr).IsEmpty() ||
!GetAttribute(altAttr).IsEmpty() || !GetAttribute(titleAttr).IsEmpty()) !GetAttribute(altAttr).IsEmpty() || !GetAttribute(titleAttr).IsEmpty())
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment