W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: CSS pseudo-selector :closest and :further

From: Brian Kardell <bkardell@gmail.com>
Date: Wed, 18 Mar 2015 13:36:07 -0400
Message-ID: <CADC=+jePeg0-QJspvLrswKJV8gH9Ns7cjvq8cqbneew2vX7ufQ@mail.gmail.com>
To: David Rodrigues <david.proweb@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Tue, Mar 17, 2015 at 12:08 PM, David Rodrigues
<david.proweb@gmail.com> wrote:
> I don't know if here is the right place, but will be great if create a new
> pseudo-selector definition that allow select closest or further element from
> a base element. For instance:
I'm pretty sure I don't understand the proposal, but :closest as
pioneered by jQuery a proposal is already a thing in the complete
profile https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
(at least in whatwg and it has implementations and polyfills), you
might want to look at that and avoid overloading the meaning.

Brian Kardell :: @briankardell :: hitchjs.com
Received on Wednesday, 18 March 2015 17:36:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC