[whatwg] Forms feedback

On Tue, Apr 6, 2010 at 9:55 AM, Anne van Kesteren <annevk at opera.com> wrote:
> 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.)

Indeed it doesn't, and indeed I did.

~TJ

Received on Tuesday, 6 April 2010 09:56:16 UTC