You can with X-Path in XML. No reason why it shouldn't be possible eventually--as part of CSS. And many reasons why it should
On Fri, May 16, 2014 at 5:06 AM, MiB <digital.disc...@gmail.com> wrote: > > may 16 2014 11:53 BPJ <b...@melroch.se>: > > > is it possible to select an element based on the presence or absence of a > > descendant with some attribute? > > > AFAIK it's not possible to select a parent element based on its > descendant, no. > > Can you describe a specific example? Do you control the HTML source? > ______________________________________________________________________ > css-discuss [css-d@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- /* Colin (Sandy) Pittendrigh >--oO0> */ ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/