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

[whatwg] Forms feedback

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 06 Apr 2010 18:55:07 +0200
Message-ID: <op.vaq2l5q764w2qv@annevk-t60>
On Tue, 06 Apr 2010 17:32:49 +0200, Tab Atkins Jr. <jackalmage at gmail.com>  
wrote:
> On Tue, Apr 6, 2010 at 2:00 AM, Ian Hickson <ian at hixie.ch> wrote:
>> Well you currently can do this by using the onbeforeprint and  
>> onafterprint
>> hooks, though that's not exactly pretty. Hopefully it will also be
>> possible with media-specific CSS, though that depends on how <details>
>> ends up working in CSS. If this proves to not be enough, we'll have to  
>> add
>> something to support it; however, I'd like to wait until this is more
>> widely deployed (so we get more experience) before changing this.
>
> I believe the CSS for <details> can be nothing more than:
>
> details:not(open) > :not(summary) {
>   display: none;
> }
>
> (Plus general default styling of <details> and <summary>, of course.)

That does not work well for text nodes. (Also, you meant [open], i.e.  
including braces.)


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 6 April 2010 09:55:07 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC