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

Received on Thursday, 16 June 2011 23:59:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC