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

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