Annotating HTML DOM tree with CSS* properties

Hi,
	I want to make available CSS3(including CSS1,CSS2) properties to
DOM through annotating the elements with custom attributes. 

ex:
	INPUT { user-input : enabled }    // CSS3 Rule
   transform to
	<INPUT userInput="enabled" ... >  // HTML element

	Is there any algorithm to annotate the DOM tree with few number of
traversals. It should take into consideration the inheritance, cascading
mechanisms. 
	If I am putting this question to a wrong mailing list, please
ignore.

Thanx

Received on Monday, 7 February 2000 09:21:39 UTC