36 lines
924 B
Objective-C
36 lines
924 B
Objective-C
/**
|
|
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSValue
|
|
|
|
interface CSSValue {
|
|
|
|
// UnitTypes
|
|
const unsigned short CSS_INHERIT = 0;
|
|
const unsigned short CSS_PRIMITIVE_VALUE = 1;
|
|
const unsigned short CSS_VALUE_LIST = 2;
|
|
const unsigned short CSS_CUSTOM = 3;
|
|
|
|
attribute DOMString cssText;
|
|
// raises(DOMException) on setting
|
|
|
|
readonly attribute unsigned short cssValueType;
|
|
*/
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef enum CSSUnitType
|
|
{
|
|
CSS_INHERIT = 0,
|
|
CSS_PRIMITIVE_VALUE = 1,
|
|
CSS_VALUE_LIST = 2,
|
|
CSS_CUSTOM = 3
|
|
} CSSUnitType;
|
|
|
|
@interface CSSValue : NSObject
|
|
{
|
|
NSString* _cssText; // for subclasses to manually set
|
|
}
|
|
|
|
@property(nonatomic,strong) NSString* cssText;
|
|
@property(nonatomic) CSSUnitType cssValueType;
|
|
|
|
@end
|