W3C home > Mailing lists > Public > www-style@w3.org > June 2011

[CSS4 Selectors] :matches naming bikeshed

From: Ojan Vafai <ojan@chromium.org>
Date: Thu, 16 Jun 2011 16:58:26 -0700
Message-ID: <BANLkTim=CafY4VXp-GMkdwh-PY3w6n5u9w@mail.gmail.com>
To: www-style@w3.org
I think we should rename :matches to :any.

1. :matches, doesn't make clear the "or" relationship that :any does. I
could easily interpret :matches to mean that it matches all of the selectors
instead of any one of them.
2. Two browser vendors already ship :any (vendor prefixed of course).
3. :any is less typing and fewer bytes to ship down the wire.

None of these things are a big deal of course, but all other things being
equal, it seems to me the spec should change. Just trying to resolve
https://bugs.webkit.org/show_bug.cgi?id=56990.

Ojan
Received on Thursday, 16 June 2011 23:59:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:41 GMT