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

Re: [selectors4] Selectors 4 and Variables

From: Masataka Yakura <myakura.web@gmail.com>
Date: Fri, 30 Sep 2011 19:56:17 +0900
Message-ID: <CANJXhd2r-zdzY4Rwe_vS+C4a9Ckd25y+MpP4Qns3hy8zodngTw@mail.gmail.com>
To: tantek@cs.stanford.edu
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, "www-style@w3.org" <www-style@w3.org>
Hello.

On Fri, Sep 30, 2011 at 3:51 PM, Tantek Çelik <tantek@cs.stanford.edu> wrote:
> I concur with Daniel's reasoning.
>
> Given the choice I prefer to use $ for variables rather than selectors.

I prefer to use $ for variables, too.

> I don't know about ! as a prefix (I've always found it counterintuitively confusing even in the use of !important) but I don't have alternate suggestions either.

I was thinking about using ? because it can literally indicate the
subject "in question".

Thanks,

Masataka

> Thanks,
>
> Tantek
> also a former editor of Selectors
> (Speaking of which, I'd be fine with next versions of modules moving previous editors to an Acks section at end if present at all rather than listing at the top)
>
>
> -----Original Message-----
> From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
> Sender: www-style-request@w3.org
> Date: Fri, 30 Sep 2011 08:36:36
> To: www-style@w3.org<www-style@w3.org>
> Subject: [selectors4] Selectors 4 and Variables
>
> (resent with the correct subject line, sorry for that)
>
> Hi there,
>
> Both Selectors 4 and Variables now use the $ to represent something.
> I think this is wrong and will lead to CSS maintainance issues
> for web authors since a textual search for $p inside a style sheet will
> retrieve not only the definitions/calls to variable p but also the
> selectors having for subject a p. If this case will be probably be rare
> - but real - in the html world, it could be bigger in the xml one.
> I don't want to see that happen.
>
> I really have the gut feeling we should use different char descriptors
> here. Long, really long ago, I proposed to use !. I still think this is
> the best option, something very visual meaning an emphasis on the
> corresponding simple selector.
>
> On another note, there is a typo in the Selectors 4 document, section 2:
> "$E > F" does not represent "an E element parent of an E element" but
> "an E element parent of an F element"
>
> </Daniel>, original author and former editor of Selectors3
>
>



-- 
Masataka Yakura
<myakura.web@gmail.com>
Received on Friday, 30 September 2011 10:57:05 GMT

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