- From: Jens Meiert <jens.meiert@erde3.com>
- Date: Tue, 27 Jan 2004 10:47:48 +0100 (MET)
- To: "W3C CSS" <www-style@w3.org>
Encountering several scenarios where this might be useful, I thought about the need for another type of selector, which also complies with an direct adjacent combinator. According to the CSS3 selectors specification [1], this selector could be defined as E - F An element E whose adjacent sibling F immediately follows it For example and only consequently, the following document snippets could be formatted completely different without any need for a class, style, or id attribute: <h1 /> <p /> and <h1 /> <div /> Next, if I want to change the headline formatting when a div element is following, I could easily specify h1 { /* Any declaration */ } h1 - div { /* An additional or overriding declaration */ } Is it worth consideration, or did I miss something? -- I'm aware that the structural pseudo classes offer a powerful set of selectors to maybe solve the problem above, but this suggestion seems easier anyway. Best regards, Jens. [1] http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#selectors -- Jens Meiert Interface Architect http://meiert.com/
Received on Tuesday, 27 January 2004 08:58:03 UTC