[Bug 19277] Relationship and precedence of hidden="" and display:none should be clarified/defined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19277

Peter Winnberg <peter.winnberg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.winnberg@gmail.com

--- Comment #4 from Peter Winnberg <peter.winnberg@gmail.com> 2012-10-05 08:50:13 UTC ---
(In reply to comment #3)
> Except, since that part of the spec was written, other aspects of the spec have
> changed, and specifically that @hidden content won't be hidden to all, but
> rather just most: the content will continue to be exposed to the Accessibility
> APIs via ARIA, and thus NOT hidden to Screen Readers and other tools or user
> agents that support ARIA.
> http://www.w3.org/html/wg/wiki/ChangeProposals/AllowAriaReferHidden
> 
> (I note that the section of the spec covering @hidden still states "if
> something is marked hidden, it is hidden from all presentations, including, for
> instance, screen readers." which I believe is not actually true anymore. -
> http://dev.w3.org/html5/spec/single-page.html#the-hidden-attribute)

If the hidden attribute is only for user agents that don't access the document
using the Accessibility APIs does aria-hidden cover the Accessibility APIs?
Like you discuss here [1]?

If so, then the Strong Native Semantics section [2] might need an update as
well because right now the hidden attribute implies aria-hidden set to "true".
Which doesn’t seem right if aria-hidden is for the Accessibility APIs and the
hidden attribute is for everyone else.

But even if the relationships between display:none, hidden, and aria-hidden was
cleared up I still think it would be a much better solution to use CSS media
types for this. If I wanted to hide something from a screen reader I would use
this (or similar):

@media speech {
  #example {
    display:none;
  }
}

But that would require that all user agents / ATs to use the media type that
you would expect it to use.

[1] http://john.foliot.ca/aria-hidden/
[2] http://dev.w3.org/html5/spec/single-page.html#sec-strong-native-semantics

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 5 October 2012 08:50:14 UTC