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

[whatwg] Forms feedback

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 6 Apr 2010 11:04:30 -0700
Message-ID: <r2u63df84f1004061104k82f3521cgb3a71396f8c894@mail.gmail.com>
On Tue, Apr 6, 2010 at 8:32 AM, 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;
> }

This doesn't hide text nodes that are direct children of <details>. For example:

  <summary>Summary goes here</summary>
  Details that should be hidden are here

/ Jonas
Received on Tuesday, 6 April 2010 11:04:30 UTC

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