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

Re: Proposal: @property(value) Selector

From: Alex Mitchell <skid.biker.7@gmail.com>
Date: Sun, 24 Jan 2010 19:54:52 -0800
Message-ID: <bbd5d3f01001241954k56855e44ua696ffecfaebb9be@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
If the property used in the @property(value) is defined inside of the
rule, it would give a parse error and drop the rule, just as if you were
to put an invalid value for margin or another property.

Alex

On Sun, Jan 24, 2010 at 7:22 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> 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:55:25 GMT

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