W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2014

Re: [whatwg] hidden attribute useless with display: flex?

From: Robin Berjon <robin@w3.org>
Date: Wed, 30 Apr 2014 14:24:12 +0200
Message-ID: <5360EB6C.1020700@w3.org>
To: Anne van Kesteren <annevk@annevk.nl>, David Bruant <bruant.d@gmail.com>
Cc: whatwg <whatwg@whatwg.org>
On 30/04/2014 13:01 , Anne van Kesteren wrote:
>> Le 29/04/2014 23:32, David Bruant a écrit :
>>> // CSS:
>>> div{
>>>    display: flex;
>>> }
>>>
>>> // HTML:
>>> <div hidden></div>
>>>
>>> Per spec, the div should be shown right? I imagine there is no way back on
>>> that?
>
> We could change the specification to use display-box instead. That might work.

Isn't that just moving the problem though? If the CSS uses display-box: 
contents (or whatever else might get added next) for some reason then 
hidden won't work either. Less likely, but still.

Maybe having the default style use both display and display-box might fly?

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Wednesday, 30 April 2014 12:28:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:28 UTC