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: Sun, 12 Aug 2012 15:40:49 -0700
Message-ID: <CAAWBYDCVdw-ii2wce0CaF2-DXzauA14HZuiSR3kfNuGZwBY6_g@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
This is very interesting!

fantasai and I had just discussed the issue of selector variables a
few days ago, and returned to her @define rule as a useful model
(identical to my original conception of @var declaring global
variables).

This, though, presents a very intriguing spin on that idea, where the
definition of the variable is spread out over potentially multiple
declarations.  This seems like it hits closer to the idea of SASS's
@extend, which I've been wanting to give some serious thought to (at
Chris Eppstein's repeated urging ^_^).

I'm curious about the intersection of this with global variables.  If
this claims the syntax of $foo on the global level solely for
selectors, it prevents us from using similarly simple syntax for
variables in MQ or elsewhere.  This might be sufficiently useful for
that to be acceptable.

I'll want to give this some thought, and discuss it with Nicole,
Chris, and others from the community who have experience with @extend
and similar preprocessor constructs.  Thanks for the proposal, David!

~TJ
Received on Sunday, 12 August 2012 22:41:37 GMT

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