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

[css3-selectors] Descendant class selectors

From: Barry Pannebaker <barry@pannebaker.com>
Date: Sat, 23 Sep 2006 18:45:12 -0400
To: <www-style@w3.org>
Message-ID: <001f01c6df61$effaca50$0201a8c0@ThinkCentre>

Is it the intention of CSS3 to define descendant class selectors, such as
*.insert *.example {...}?

For example:

body      { background-color: white;
            color:            black;
          }

*.example { color:            blue;
          }

*.insert  { background-color: blue;
            color:            white;
          }

*.insert *.example
          { background-color: blue;
            color:            aqua;
          }

<p>This text would be black, against a white background.</p>

<p class="example">This text would be blue, against a white background.</p>

<div class="insert">This text would be white, against a blue background.
   <p class="example">This text would be aqua, against a blue
background.</p>
</div>

Barry
Received on Saturday, 23 September 2006 22:45:31 GMT

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