W3C home > Mailing lists > Public > public-html-a11y@w3.org > October 2012

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 06 Oct 2012 02:21:52 +0000
Message-Id: <E1TKK1Y-0003EL-Vm@jessica.w3.org>
To: public-html-a11y@w3.org

--- Comment #12 from Tab Atkins Jr. <jackalmage@gmail.com> 2012-10-06 02:21:52 UTC ---
(In reply to comment #11)
> What Tab suggested only relates to whether an author would be able to do
>    foo[hidden]{display:block} /*Current*/
> or if the author would have to do
>    foo[hidden]{display:block!important} /*The result of Tab's proposal*/

Really, what I'm suggesting is that the following code:

.foo { display: block; }

should *not* accidentally un-hide a <div class=foo hidden> element.  Right now,
it does, which means you have to code your selectors pretty defensively.

So yes, in order to un-hide a hidden element through pure CSS, you'd just have
to be pretty explicit and use an !important rule to do it.

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 Saturday, 6 October 2012 02:21:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:31 UTC