W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2002

Re: properties' priority

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Sat, 29 Jun 2002 21:38:08 -0400
Message-Id: <200206300138.VAA19820@no-knife.mit.edu>
To: nerula <nerula@inwind.it>
cc: www-dom@w3.org

> i'm askin what could it mean the third parameter of setProperty
> (CSSStyleDeclaration), the property's priority, i'm not been able to
> find it neither on CSS manual nor on DOM 2 manual...  tnx bye

http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleDeclaration-setProperty
actually lists the only current useful value of the priority:
"important".  Using setProperty("foo", "bar", "important") is equivalent
to having the declaration:

foo: bar !important;

in your declaration block in CSS.

Boris
-----------------
The typewriting machine, when played with expression, 
is no more annoying than the piano when played by a 
sister or near relation.
                             -- Oscar Wilde
Received on Sunday, 30 June 2002 01:30:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT