On Wed, 14 Jul 2010, Greg Brown wrote:

Incidentally, given that these properties are part of the CSS spec and the CSS spec doesn't change very often I don't see a big maintenance headache in supporting the font-size and font-weight properties.

Yes, but I was actually trying to point out the opposite problem. CSS may be a "standard", but a Pivot skin's style properties (by design) are not. So you would have to stay on top of any changes that the skin developers decide to make. In fairness, a style such as "font" isn't likely to change all that often - I'm just pointing out a potential weakness in the design.

I don't think this limitation of coupling to skins is specific to CSS. The CSS parser I've written assumes that when you specify some font-related properties, you're changing the "font" style of a component. Isn't that what "{ font: {bold: true} }" does? It assumes you're changing the "font" style?

Cheers,

Michael

Reply via email to