 			sp.addEventListener("classNameChanged", updateStyles);
             
 			var tf: TextFormat = new TextFormat();
-			tf.font = ValuesManager.valuesImpl.getValue(sp, "fontFamily") as String;
-			tf.size = ValuesManager.valuesImpl.getValue(sp, "fontSize");
-			tf.bold = ValuesManager.valuesImpl.getValue(sp, "fontWeight") == "bold";
-			tf.color = CSSUtils.toColor(ValuesManager.valuesImpl.getValue(sp, "color"));
+			tf.font = ValuesManager.valuesImpl.getValue(sp, "fontFamily", styleState) as String;
+			tf.size = ValuesManager.valuesImpl.getValue(sp, "fontSize", styleState);
+			tf.bold = ValuesManager.valuesImpl.getValue(sp, "fontWeight", styleState) == "bold";
+			tf.color = CSSUtils.toColor(ValuesManager.valuesImpl.getValue(sp, "color", styleState));
             if (!parentHandlesPadding)
             {
-        		var padding:Object = ValuesManager.valuesImpl.getValue(sp, "padding");
-        		var paddingLeft:Object = ValuesManager.valuesImpl.getValue(sp,"padding-left");
-        		var paddingRight:Object = ValuesManager.valuesImpl.getValue(sp,"padding-right");
+        		var padding:Object = ValuesManager.valuesImpl.getValue(sp, "padding", styleState);
+        		var paddingLeft:Object = ValuesManager.valuesImpl.getValue(sp,"padding-left", styleState);
+        		var paddingRight:Object = ValuesManager.valuesImpl.getValue(sp,"padding-right", styleState);
         		tf.leftMargin = CSSUtils.getLeftValue(paddingLeft, padding, width);
         		tf.rightMargin = CSSUtils.getRightValue(paddingRight, padding, width);
             }
-            var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align");
+            var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align", styleState);
             if (align == "center")
 			{
 				autoSize = TextFieldAutoSize.NONE;

////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.core
{
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	import org.apache.flex.core.ValuesManager;
    import org.apache.flex.events.Event;
    import org.apache.flex.utils.CSSUtils;
		

            // force styles to be re-calculated
            this.text = text;
        }
        
	}
}