[css-d] Select by descendant?

2014-05-16 Thread BPJ
is it possible to select an element based on the presence or absence of a descendant with some attribute? /bpj __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ --

Re: [css-d] Select by descendant?

2014-05-16 Thread MiB
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

Re: [css-d] Select by descendant?

2014-05-16 Thread Colin (Sandy) Pittendrigh
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

Re: [css-d] Select by descendant?

2014-05-16 Thread Brian Kardell
CSS selectors level 4 introduces a :has() pseudo class, but it isn't out there and even when it is it will (initially at least) only be supported in the complete profile - meaning it will work via querySelectorAll and friends, but not CSS itself. If you only, need this in script, jQuery has had

Re: [css-d] Select by descendant?

2014-05-16 Thread MiB
may 16 2014 14:25 Brian Kardell bkard...@gmail.com: If you only, need this in script, jQuery has had :has from the beginning (it was a proposal from CSS3 a decade and a half ago), and if you need it in CSS you might have a look at hitchjs which has it I suppose that if you are already using

Re: [css-d] Select by descendant?

2014-05-16 Thread MiB
may 16 2014 13:59 Colin (Sandy) Pittendrigh sandy.pittendr...@gmail.com: X-Path in XML Is this viable for browser solutions with HTML5? I’m not familiar with X-path outside of Java, which I only use at the server. __

Re: [css-d] Select by descendant?

2014-05-16 Thread Tom Livingston
On Fri, May 16, 2014 at 9:47 AM, MiB digital.disc...@gmail.com wrote: may 16 2014 14:25 Brian Kardell bkard...@gmail.com: If you only, need this in script, jQuery has had :has from the beginning (it was a proposal from CSS3 a decade and a half ago), and if you need it in CSS you might have a

Re: [css-d] Select by descendant?

2014-05-16 Thread Brian Kardell
On May 16, 2014 9:47 AM, MiB digital.disc...@gmail.com wrote: may 16 2014 14:25 Brian Kardell bkard...@gmail.com: If you only, need this in script, jQuery has had :has from the beginning (it was a proposal from CSS3 a decade and a half ago), and if you need it in CSS you might have a