> One of the nice things about CSS is its support for other kinds of selectors 
> like type selectors, class selectors, id selectors, descendant selectors, etc.

True, and those features are essential when you are trying to construct a 
complex GUI using HTML, because HTML isn't really a GUI toolkit. However, Pivot 
is a GUI toolkit, so you don't need to build so much by hand.

>  Then there's inheritence and cascading, which I haven't touched yet.

Again, these features are useful when styling document markup, but are not 
quite as critical in Pivot.

> I don't see an impedance mismatch between CSS and WTKX (or BXML as it is in 
> pivot 2).  

You demonstrated one in your example:

  
http://mail-archives.apache.org/mod_mbox/pivot-dev/201007.mbox/%3c20100709101044.l62...@p3c0.erirefr.arg%3e

TextInput doesn't have "font-size" or "font-weight" style properties - it only 
defines "font". Your CSS handling classes need to somehow translate between the 
CSS standard styles and the styles that TerraTextInputSkin supports. This 
introduces another layer that needs to be maintained and isn't necessary with 
the current approach. 

If, as I have suggested, you were to simply try to support CSS syntax rather 
than the actual CSS properties, this would not be a problem.

Reply via email to