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

Re: Proposal: @property(value) Selector

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 24 Jan 2010 22:22:52 -0500
Message-ID: <4B5D0E8C.1080101@mit.edu>
To: Alex Mitchell <skid.biker.7@gmail.com>
CC: www-style@w3.org
On 1/24/10 3:55 PM, Alex Mitchell wrote:
> 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) {
> letter-spacing:-1px;
> }

What does:

   @font-weight(bold) {
     font-weight: normal;
   }
   @font-weight(normal) {
     font-weight: bold;
   }

do?

Point being that you sort of have to finish selector matching before you 
can figure out what the value of a property is.

-Boris
Received on Monday, 25 January 2010 03:27:01 GMT

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