Closed
Bug 838407
Opened 12 years ago
Closed 12 years ago
aria-hidden false value shouldn't be exposed via object attributes
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: surkov, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file)
7.00 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
aria-hidden:false doesn't have any meaning since it can't be used to show a hidden content, neither not rendered content nor aria-hidden=true content.
1) not visible content:
5.1.1. Excluding Elements from the Accessibility Tree (http://www.w3.org/WAI/PF/aria-implementation/#exclude_elements2):
"Elements, including their descendents, that have host language semantics specifying that the element is not displayed, such as CSS display:none or visibility:hidden or HTML 5 hidden attribute."
That means aria-hidden=false can't be used to show the element having display:none
2) aria-hidden=true content (thanks to Joseph for clarification, citing him):
The UAIG also gives rules for when to exclude elements from the a11y tree in section 5.1.1 (http://www.w3.org/WAI/PF/aria-implementation/#exclude_elements2). Specifically:
• Elements, including their descendents, that have a WAI-ARIA global attribute of |aria-hidden| <http://www.w3.org/WAI/PF/aria/states_and_properties#aria-hidden>|="true".| In other words, |aria-hidden="true"| on a parent overrides |aria-hidden="false"| on descendants.
There was a relatively lengthy discussion about this a while back. The conclusion, in the end, was that aria-hidden mirrors CSS display:none. If you have:
<div style="display:none"> ... stuff ... <div style="display:block">Is this displayed?</div> ... other stuff ... </div>
The "Is this displayed" is *not* displayed. The ancestral display:none style overrules the local display:block style. That is documented in the CSS spec as well:
http://www.w3.org/TR/CSS2/visuren.html#display-prop
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #711737 -
Flags: review?(trev.saunders)
Updated•12 years ago
|
Attachment #711737 -
Flags: review?(trev.saunders) → review+
Comment 2•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #2)
> https://hg.mozilla.org/mozilla-central/rev/ac292e9fc785
this was empty checking, the correct one is http://hg.mozilla.org/integration/mozilla-inbound/rev/80fa2c61df14
Comment 4•12 years ago
|
||
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•