 					if (o)
 					{
 						value = o[valueName];
+                        if (value == "inherit")
+                            return getInheritingValue(thisObject, valueName, state, attrs);
 						if (value !== undefined)
 							return value;
 					}

	            if (o)
	            {
	                value = o[valueName];
	                if (value !== undefined)
	                    return value;
	            }

				if (o)
				{
					value = o[valueName];
                    if (value == "inherit")
                        return getInheritingValue(thisObject, valueName, state, attrs);
					if (value !== undefined)
						return value;
				}
