W3C home > Mailing lists > Public > public-html-bugzilla@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:53 +0000
Message-Id: <E1TKK1Z-0003Ed-H1@jessica.w3.org>
To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19277

--- 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 the QA contact for the bug.
Received on Saturday, 6 October 2012 02:21:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 6 October 2012 02:21:54 GMT