[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

--- 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 UTC