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 look at hitchjs which has it > > > I suppose that if you are already using jQuery you could make a script add a class or whatever to the parent element. While this is cheating (:-P) it will work unless Javascript is inactive. >
That will get you the basic onload of it, sure. If you wanted it in css though then you want to maintain that class appropriately (if the :has ceases to apply at any time or starts to) and that's more work... That's what hitch does, and let you write it in CSS... Also to use it like you would and find out if it's really as useful/intuitive as you imagine and, hopefully, provide feedback to www-st...@w3.org (css working group) - extensiblewebmanifesto.org ______________________________________________________________________ > 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/ ______________________________________________________________________ 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/