Theresa O’Connor

Parent selector

Andy Budd wants a parent selector in CSS3. Sounds good to me! I prefer the syntax given in one of his comments:

#child < .parent {…}

Update: Dylan Schiemann proposed this syntax back in 2000.

Update, May 2008: This sort of thing has popped up again, this time in Shaun Inman’s CSS Qualified Selectors. John Resig even implemented it for jQuery.