W3C home > Mailing lists > Public > www-style@w3.org > June 2006

Re: display: none

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 04 Jun 2006 16:24:26 -0700
To: David Woolley <david@djwhome.demon.co.uk>, www-style@w3.org
Message-id: <00aa01c6882e$05b63c20$3401a8c0@TERRA>

----- Original Message ----- 
From: "David Woolley" <david@djwhome.demon.co.uk>
To: <www-style@w3.org>
Sent: Sunday, June 04, 2006 12:54 PM
Subject: Re: display: none


>
>> You wanted to see h4 elements, no? If so, I suggest:
>>
>>   body * { display: none }
>
> This will match all h4 elements, and has a higher specificity
> than:
>
>>   h4 { display: block }
>
> So, this should only show first level text nodes.
>

I think that ability to select anonymous text elements in CSS is desirable 
in other places too.

So by using something like this:

body > * { display: none; }
body > ~ { display: none; } /* ~ - anonymous text element */
body > h1 { display: block; }

it would be possible to achieve the task.

Andrew Fedoniouk.
http://terrainformatica.com
Received on Sunday, 4 June 2006 23:26:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT