Selector "on presence of"

Hi all...

Would it make sense to have a selector that makes the rules apply only
if a certain other element is present/not present?

A possible use:

<HTML>
  <HEAD>
    ...stuff
  </HEAD>
  <BODY CLASS="letter">
    <ADDRESS CLASS="from">
      Me
      My house
      My town
    </ADDRESS>
    <ADDRESS CLASS="to">
      Him
      His house
      His town
    </ADDRESS>
    Texttexttexttext
  </BODY>
</HTML>

This could be laid out as a letter, no problem (BTW: Is there a
:first-page pseudo-class?), but if the sender wanted to add something
like a company logo, the layout would need some corrections, which could
be made in a special rule which would only apply if a IMG.logo was
present.

Now, what do you think about this?

CU
   Simon

Received on Thursday, 4 June 1998 17:08:20 UTC