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

2014-05-01 Thread Ian Hickson
On Thu, 1 May 2014, David Bruant wrote: > Le 30/04/2014 23:32, Ian Hickson a écrit : > > > > What I'm trying to do is just that an element have display:flex > > > > and to hide it with the hidden attribute when I don't need the > > > > element to be shown. I guess my only option is changing > >

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

2014-05-01 Thread David Bruant
Le 30/04/2014 23:32, Ian Hickson a écrit : What I'm trying to do is just that an element have display:flex and to hide it with the hidden attribute when I don't need the element to be shown. I guess my only option is changing style.display? Just add "[hidden] { display: none }" to your style she

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

2014-04-30 Thread Glenn Maynard
On Wed, Apr 30, 2014 at 4:12 PM, Tab Atkins Jr. wrote: > On Wed, Apr 30, 2014 at 7:32 AM, Glenn Maynard wrote: > > It's too bad that display-box also has multiple uses--it doesn't only > > display or hide the content, it has a third "contents" mode. That means > > the same problem would happen a

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

2014-04-30 Thread Domenic Denicola
> On Apr 30, 2014, at 17:44, "Tab Atkins Jr." wrote: > >> On Wed, Apr 30, 2014 at 2:32 PM, Ian Hickson wrote: >>> On Wed, 30 Apr 2014, Anne van Kesteren wrote: >>> We could change the specification to use display-box instead. That might >>> work. >> >> Would that break sites that are intentio

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

2014-04-30 Thread Tab Atkins Jr.
On Wed, Apr 30, 2014 at 2:32 PM, Ian Hickson wrote: > On Wed, 30 Apr 2014, Anne van Kesteren wrote: >> We could change the specification to use display-box instead. That might >> work. > > Would that break sites that are intentionally replacing the styling for > hidden="" from 'display:none' to 'o

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

2014-04-30 Thread Ian Hickson
On Wed, 30 Apr 2014, David Bruant wrote: > Le 29/04/2014 23:32, David Bruant a écrit : > > > > // CSS: > > div { > > display: flex; > > } > > > > // HTML: > > > > > > Per spec, the div should be shown right? I imagine there is no way > > back on that? Right. You want: div[hidden] { disp

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

2014-04-30 Thread Tab Atkins Jr.
On Wed, Apr 30, 2014 at 7:32 AM, Glenn Maynard wrote: > It's too bad that display-box also has multiple uses--it doesn't only > display or hide the content, it has a third "contents" mode. That means > the same problem would happen as soon as you set "display-box: contents" on > something--it wou

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

2014-04-30 Thread Glenn Maynard
Previous discussion: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-November/037905.html On Wed, Apr 30, 2014 at 6:01 AM, Anne van Kesteren wrote: > >> > >> > >> Per spec, the div should be shown right? I imagine there is no way back > on > >> that? > > We could change the specificati

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

2014-04-30 Thread Robin Berjon
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: 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

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

2014-04-30 Thread David Bruant
Le 30/04/2014 13:01, Anne van Kesteren a écrit : Le 29/04/2014 23:32, David Bruant a écrit : Hi, // CSS: div{ display: flex; } // HTML: 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 migh

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

2014-04-30 Thread Anne van Kesteren
> Le 29/04/2014 23:32, David Bruant a écrit : >> >> Hi, >> >> // CSS: >> div{ >> display: flex; >> } >> >> // HTML: >> >> >> 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. -- h

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

2014-04-30 Thread David Bruant
Ok, sorry, I was pissed off... The web platform triggers this sort of reactions sometimes :-) Constructive proposal: * a special value for the hidden attribute that forces the element to be hidden regardless of what the CSS or style attribute says for the display value. Maybe `hidden="force"`

[whatwg] hidden attribute useless with display: flex?

2014-04-29 Thread David Bruant
Hi, // CSS: div{ display: flex; } // HTML: Per spec, the div should be shown right? I imagine there is no way back on that? Does it mean hidden only works when the default (UA stylesheet) display value is kept? Does it mean hidden is completely useless when trying to combine it with displ