W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Proposal: @property(value) Selector

From: Alex Mitchell <skid.biker.7@gmail.com>
Date: Sun, 24 Jan 2010 12:55:04 -0800
Message-ID: <bbd5d3f01001241255m51a68906j60e1423d91dbf678@mail.gmail.com>
To: www-style@w3.org
In the future (CSS3 possibly), there should be a new type of selector added:
the @property(value) selector. This selector would select everything where
the value of "property" equals the value of "value". For example,

@font-weight(bold) {

would select everywhere the 'font-weight' was specified to 'bold' and change
the 'letter-spacing' to '-1px'.

Of course, the rule could still be overridden by specifying a value for
'letter-spacing' in another, more specific selector just like all other
Received on Monday, 25 January 2010 02:31:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC