- From: Alex Mitchell <skid.biker.7@gmail.com>
- Date: Sun, 24 Jan 2010 19:54:52 -0800
- To: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
Received on Monday, 25 January 2010 03:55:25 UTC
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 UTC