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

Re: Selectors 4 and Variables

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Fri, 30 Sep 2011 18:59:04 +0200
Message-ID: <F836C08301F04E29956B0374B298F24B@FREMYD2>
To: "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>, <www-style@w3.org>
This problem can also be solved by using a "var()" function for variables 
inside property values.

Just a though.

-----Message d'origine----- 
From: Daniel Glazman
Sent: Friday, September 30, 2011 8:35 AM
To: www-style@w3.org
Subject: Selectors 4 and Variables

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"

Received on Friday, 30 September 2011 16:59:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC