Re: [css-variables] ...let's change the syntax

On Thu, Mar 13, 2014 at 11:02 AM, Brian Kardell <bkardell@gmail.com> wrote:
> On Thu, Mar 13, 2014 at 1:50 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>> Forgot to respond to this line:
>>
>> On Wed, Mar 12, 2014 at 9:40 PM, Chris Eppstein <chris@eppsteins.net>
>> wrote:
>> > An issue we're bumping into in the sass community now is namespace
>> > collisions from 3rd-party libraries. It would be nice if CSS could avoid our
>> > mistake by forcing a namespace for custom properties.
>>
>> That's why I'd prefer "underscore anywhere in the name" over "leading
>> underscore" - you can put the namespace before the underscore, leading
>> to a nice visual separation.
>
> Since we have -[vendor]- for custom vendor things, we could just reserve --
> for 'no vendor, just custom'... At least it's explainable/consistent.

It has a nice ring to it, but I don't think it's substantially better
than _.  I can go either way.

We'd have to use it for the other custom things, too (which is totally
possible).

~TJ

Received on Thursday, 13 March 2014 18:13:15 UTC