Hi,

Just a FYI in case this trips anyone else up.

The code in applyStyle in SimpleCSSValuesImpl assumes that most CSS style 
numbers are pixels - this is not be the case.

The code in questions is:
if (typeof(value) == 'number') {
    if (colorStyles[p])
        value = CSSUtils.attributeFromColor(value);
    else
        value = value.toString() + 'px';
}

Which for font-weight means you can't use values 
100,200,300,400,500,600,700,800 or 900.

Thanks,
Justin


Reply via email to