W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Thinking about mixins as a new type of selector

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 16 Aug 2012 00:54:56 -0700
Message-ID: <CAAWBYDD9VueTZccsBO3B-e=atEywXSOffeO8AcuJ0W08+ENF6Q@mail.gmail.com>
To: Chris Eppstein <chris@eppsteins.net>
Cc: Brian Kardell <bkardell@gmail.com>, www-style@w3.org, "L. David Baron" <dbaron@dbaron.org>
On Wed, Aug 15, 2012 at 7:45 PM, Chris Eppstein <chris@eppsteins.net> wrote:
> One thing to note is that in Sass 3.2 (released last week) we have
> introduced a new feature for use with @extend called placeholder selectors.
>
> A placeholder selector is like a class, but it would not become part of the
> generated CSS (or in a native implementation, cannot be used to match
> against the document). We denote a placeholder selector with %.
>
> Near as I can tell, this is exactly what the $ syntax proposed by David is
> doing. (hard to tell -- I keep thinking it's a shell variable :P)

No, as I noted, David's proposed syntax is exactly equivalent to
@extend.  (This may not be obvious from the examples he provided, but
I checked his expectations in person, and they match what @extend
would do.)

~TJ
Received on Thursday, 16 August 2012 07:55:48 GMT

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