W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

concern about CSSStyleDeclaration

From: Daniel Glazman <glazman@netscape.com>
Date: Thu, 15 Mar 2001 13:43:56 +0100
Message-ID: <3AB0B90C.2040909@netscape.com>
To: www-dom@w3.org
CSSStyleDeclaration provides means to determine the style properties 
currently set in a block or to set style properties explicitly within 
the block. All methods in CSSStyleDeclaration assume that there is only
one answer per property name. But this is false, unless part of the
cascade is done :

   P { color : red ! important ;
       color : blue ;
       color : yellow ! important }

Without applying some of the rules of the cascade, the CSS OM cannot
answer that the value of color assigned in this block is |yellow| with
and cannot answer it is an important declaration.

Anyway, I think that the CSS OM should provide access to ALL explicitely
set values for a given property, in order of declaration, without
applying the cascade.

Received on Thursday, 15 March 2001 07:46:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC