1/*
2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 James G. Speth (speth@end.com)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
19 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#import "config.h"
29
30#import "CSSRule.h"
31#import "CSSStyleSheet.h"
32#import "CSSValue.h"
33#import "DOMCSSCharsetRule.h"
34#import "DOMCSSFontFaceRule.h"
35#import "DOMCSSImportRule.h"
36#import "DOMCSSMediaRule.h"
37#import "DOMCSSPageRule.h"
38#import "DOMCSSPrimitiveValue.h"
39#import "DOMCSSRuleInternal.h"
40#import "DOMCSSStyleDeclaration.h"
41#import "DOMCSSStyleRule.h"
42#import "DOMCSSStyleSheet.h"
43#if ENABLE(CSS3_CONDITIONAL_RULES)
44#import "DOMCSSSupportsRule.h"
45#endif
46#import "DOMCSSUnknownRule.h"
47#import "DOMCSSValueInternal.h"
48#import "DOMCSSValueList.h"
49#import "DOMInternal.h"
50#import "DOMStyleSheetInternal.h"
51#import "DOMWebKitCSSKeyframeRule.h"
52#import "DOMWebKitCSSKeyframesRule.h"
53#import "DOMWebKitCSSTransformValue.h"
54
55#if ENABLE(CSS_FILTERS)
56#import "DOMWebKitCSSFilterValue.h"
57#endif
58
59#if ENABLE(CSS_REGIONS)
60#import "DOMWebKitCSSRegionRule.h"
61#endif
62
63#if ENABLE(CSS_DEVICE_ADAPTATION)
64#import "DOMWebKitCSSViewportRule.h"
65#endif
66
67//------------------------------------------------------------------------------------------
68// DOMStyleSheet
69
70Class kitClass(WebCore::StyleSheet* impl)
71{
72    if (impl->isCSSStyleSheet())
73        return [DOMCSSStyleSheet class];
74    return [DOMStyleSheet class];
75}
76
77//------------------------------------------------------------------------------------------
78// DOMCSSRule
79
80Class kitClass(WebCore::CSSRule* impl)
81{
82    switch (impl->type()) {
83        case DOM_UNKNOWN_RULE:
84            return [DOMCSSUnknownRule class];
85        case DOM_STYLE_RULE:
86            return [DOMCSSStyleRule class];
87        case DOM_CHARSET_RULE:
88            return [DOMCSSCharsetRule class];
89        case DOM_IMPORT_RULE:
90            return [DOMCSSImportRule class];
91        case DOM_MEDIA_RULE:
92            return [DOMCSSMediaRule class];
93        case DOM_FONT_FACE_RULE:
94            return [DOMCSSFontFaceRule class];
95        case DOM_PAGE_RULE:
96            return [DOMCSSPageRule class];
97        case DOM_WEBKIT_KEYFRAMES_RULE:
98            return [DOMWebKitCSSKeyframesRule class];
99        case DOM_WEBKIT_KEYFRAME_RULE:
100            return [DOMWebKitCSSKeyframeRule class];
101#if ENABLE(CSS3_CONDITIONAL_RULES)
102        case DOM_SUPPORTS_RULE:
103            return [DOMCSSSupportsRule class];
104#endif
105#if ENABLE(CSS_DEVICE_ADAPTATION)
106        case DOM_WEBKIT_VIEWPORT_RULE:
107            return [DOMWebKitCSSViewportRule class];
108#endif
109#if ENABLE(CSS_REGIONS)
110        case DOM_WEBKIT_REGION_RULE:
111            return [DOMWebKitCSSRegionRule class];
112#endif
113    }
114    ASSERT_NOT_REACHED();
115    return nil;
116}
117
118//------------------------------------------------------------------------------------------
119// DOMCSSValue
120
121Class kitClass(WebCore::CSSValue* impl)
122{
123    switch (impl->cssValueType()) {
124        case WebCore::CSSValue::CSS_PRIMITIVE_VALUE:
125            return [DOMCSSPrimitiveValue class];
126        case WebCore::CSSValue::CSS_VALUE_LIST:
127            if (impl->isWebKitCSSTransformValue())
128                return [DOMWebKitCSSTransformValue class];
129#if ENABLE(CSS_FILTERS)
130            if (impl->isWebKitCSSFilterValue())
131                return [DOMWebKitCSSFilterValue class];
132#endif
133            return [DOMCSSValueList class];
134        case WebCore::CSSValue::CSS_INHERIT:
135        case WebCore::CSSValue::CSS_INITIAL:
136            return [DOMCSSValue class];
137        case WebCore::CSSValue::CSS_CUSTOM:
138            return [DOMCSSValue class];
139    }
140    ASSERT_NOT_REACHED();
141    return nil;
142}
143
144//------------------------------------------------------------------------------------------
145// DOMCSSStyleDeclaration CSS2 Properties
146
147@implementation DOMCSSStyleDeclaration (DOMCSS2Properties)
148
149- (NSString *)azimuth
150{
151    return [self getPropertyValue:@"azimuth"];
152}
153
154- (void)setAzimuth:(NSString *)azimuth
155{
156    [self setProperty:@"azimuth" value:azimuth priority:@""];
157}
158
159- (NSString *)background
160{
161    return [self getPropertyValue:@"background"];
162}
163
164- (void)setBackground:(NSString *)background
165{
166    [self setProperty:@"background" value:background priority:@""];
167}
168
169- (NSString *)backgroundAttachment
170{
171    return [self getPropertyValue:@"background-attachment"];
172}
173
174- (void)setBackgroundAttachment:(NSString *)backgroundAttachment
175{
176    [self setProperty:@"background-attachment" value:backgroundAttachment priority:@""];
177}
178
179- (NSString *)backgroundColor
180{
181    return [self getPropertyValue:@"background-color"];
182}
183
184- (void)setBackgroundColor:(NSString *)backgroundColor
185{
186    [self setProperty:@"background-color" value:backgroundColor priority:@""];
187}
188
189- (NSString *)backgroundImage
190{
191    return [self getPropertyValue:@"background-image"];
192}
193
194- (void)setBackgroundImage:(NSString *)backgroundImage
195{
196    [self setProperty:@"background-image" value:backgroundImage priority:@""];
197}
198
199- (NSString *)backgroundPosition
200{
201    return [self getPropertyValue:@"background-position"];
202}
203
204- (void)setBackgroundPosition:(NSString *)backgroundPosition
205{
206    [self setProperty:@"background-position" value:backgroundPosition priority:@""];
207}
208
209- (NSString *)backgroundRepeat
210{
211    return [self getPropertyValue:@"background-repeat"];
212}
213
214- (void)setBackgroundRepeat:(NSString *)backgroundRepeat
215{
216    [self setProperty:@"background-repeat" value:backgroundRepeat priority:@""];
217}
218
219- (NSString *)border
220{
221    return [self getPropertyValue:@"border"];
222}
223
224- (void)setBorder:(NSString *)border
225{
226    [self setProperty:@"border" value:border priority:@""];
227}
228
229- (NSString *)borderCollapse
230{
231    return [self getPropertyValue:@"border-collapse"];
232}
233
234- (void)setBorderCollapse:(NSString *)borderCollapse
235{
236    [self setProperty:@"border-collapse" value:borderCollapse priority:@""];
237}
238
239- (NSString *)borderColor
240{
241    return [self getPropertyValue:@"border-color"];
242}
243
244- (void)setBorderColor:(NSString *)borderColor
245{
246    [self setProperty:@"border-color" value:borderColor priority:@""];
247}
248
249- (NSString *)borderSpacing
250{
251    return [self getPropertyValue:@"border-spacing"];
252}
253
254- (void)setBorderSpacing:(NSString *)borderSpacing
255{
256    [self setProperty:@"border-spacing" value:borderSpacing priority:@""];
257}
258
259- (NSString *)borderStyle
260{
261    return [self getPropertyValue:@"border-style"];
262}
263
264- (void)setBorderStyle:(NSString *)borderStyle
265{
266    [self setProperty:@"border-style" value:borderStyle priority:@""];
267}
268
269- (NSString *)borderTop
270{
271    return [self getPropertyValue:@"border-top"];
272}
273
274- (void)setBorderTop:(NSString *)borderTop
275{
276    [self setProperty:@"border-top" value:borderTop priority:@""];
277}
278
279- (NSString *)borderRight
280{
281    return [self getPropertyValue:@"border-right"];
282}
283
284- (void)setBorderRight:(NSString *)borderRight
285{
286    [self setProperty:@"border-right" value:borderRight priority:@""];
287}
288
289- (NSString *)borderBottom
290{
291    return [self getPropertyValue:@"border-bottom"];
292}
293
294- (void)setBorderBottom:(NSString *)borderBottom
295{
296    [self setProperty:@"border-bottom" value:borderBottom priority:@""];
297}
298
299- (NSString *)borderLeft
300{
301    return [self getPropertyValue:@"border-left"];
302}
303
304- (void)setBorderLeft:(NSString *)borderLeft
305{
306    [self setProperty:@"border-left" value:borderLeft priority:@""];
307}
308
309- (NSString *)borderTopColor
310{
311    return [self getPropertyValue:@"border-top-color"];
312}
313
314- (void)setBorderTopColor:(NSString *)borderTopColor
315{
316    [self setProperty:@"border-top-color" value:borderTopColor priority:@""];
317}
318
319- (NSString *)borderRightColor
320{
321    return [self getPropertyValue:@"border-right-color"];
322}
323
324- (void)setBorderRightColor:(NSString *)borderRightColor
325{
326    [self setProperty:@"border-right-color" value:borderRightColor priority:@""];
327}
328
329- (NSString *)borderBottomColor
330{
331    return [self getPropertyValue:@"border-bottom-color"];
332}
333
334- (void)setBorderBottomColor:(NSString *)borderBottomColor
335{
336    [self setProperty:@"border-bottom-color" value:borderBottomColor priority:@""];
337}
338
339- (NSString *)borderLeftColor
340{
341    return [self getPropertyValue:@"border-left-color"];
342}
343
344- (void)setBorderLeftColor:(NSString *)borderLeftColor
345{
346    [self setProperty:@"border-left-color" value:borderLeftColor priority:@""];
347}
348
349- (NSString *)borderTopStyle
350{
351    return [self getPropertyValue:@"border-top-style"];
352}
353
354- (void)setBorderTopStyle:(NSString *)borderTopStyle
355{
356    [self setProperty:@"border-top-style" value:borderTopStyle priority:@""];
357}
358
359- (NSString *)borderRightStyle
360{
361    return [self getPropertyValue:@"border-right-style"];
362}
363
364- (void)setBorderRightStyle:(NSString *)borderRightStyle
365{
366    [self setProperty:@"border-right-style" value:borderRightStyle priority:@""];
367}
368
369- (NSString *)borderBottomStyle
370{
371    return [self getPropertyValue:@"border-bottom-style"];
372}
373
374- (void)setBorderBottomStyle:(NSString *)borderBottomStyle
375{
376    [self setProperty:@"border-bottom-style" value:borderBottomStyle priority:@""];
377}
378
379- (NSString *)borderLeftStyle
380{
381    return [self getPropertyValue:@"border-left-style"];
382}
383
384- (void)setBorderLeftStyle:(NSString *)borderLeftStyle
385{
386    [self setProperty:@"border-left-style" value:borderLeftStyle priority:@""];
387}
388
389- (NSString *)borderTopWidth
390{
391    return [self getPropertyValue:@"border-top-width"];
392}
393
394- (void)setBorderTopWidth:(NSString *)borderTopWidth
395{
396    [self setProperty:@"border-top-width" value:borderTopWidth priority:@""];
397}
398
399- (NSString *)borderRightWidth
400{
401    return [self getPropertyValue:@"border-right-width"];
402}
403
404- (void)setBorderRightWidth:(NSString *)borderRightWidth
405{
406    [self setProperty:@"border-right-width" value:borderRightWidth priority:@""];
407}
408
409- (NSString *)borderBottomWidth
410{
411    return [self getPropertyValue:@"border-bottom-width"];
412}
413
414- (void)setBorderBottomWidth:(NSString *)borderBottomWidth
415{
416    [self setProperty:@"border-bottom-width" value:borderBottomWidth priority:@""];
417}
418
419- (NSString *)borderLeftWidth
420{
421    return [self getPropertyValue:@"border-left-width"];
422}
423
424- (void)setBorderLeftWidth:(NSString *)borderLeftWidth
425{
426    [self setProperty:@"border-left-width" value:borderLeftWidth priority:@""];
427}
428
429- (NSString *)borderWidth
430{
431    return [self getPropertyValue:@"border-width"];
432}
433
434- (void)setBorderWidth:(NSString *)borderWidth
435{
436    [self setProperty:@"border-width" value:borderWidth priority:@""];
437}
438
439- (NSString *)bottom
440{
441    return [self getPropertyValue:@"bottom"];
442}
443
444- (void)setBottom:(NSString *)bottom
445{
446    [self setProperty:@"bottom" value:bottom priority:@""];
447}
448
449- (NSString *)captionSide
450{
451    return [self getPropertyValue:@"caption-side"];
452}
453
454- (void)setCaptionSide:(NSString *)captionSide
455{
456    [self setProperty:@"caption-side" value:captionSide priority:@""];
457}
458
459- (NSString *)clear
460{
461    return [self getPropertyValue:@"clear"];
462}
463
464- (void)setClear:(NSString *)clear
465{
466    [self setProperty:@"clear" value:clear priority:@""];
467}
468
469- (NSString *)clip
470{
471    return [self getPropertyValue:@"clip"];
472}
473
474- (void)setClip:(NSString *)clip
475{
476    [self setProperty:@"clip" value:clip priority:@""];
477}
478
479- (NSString *)color
480{
481    return [self getPropertyValue:@"color"];
482}
483
484- (void)setColor:(NSString *)color
485{
486    [self setProperty:@"color" value:color priority:@""];
487}
488
489- (NSString *)content
490{
491    return [self getPropertyValue:@"content"];
492}
493
494- (void)setContent:(NSString *)content
495{
496    [self setProperty:@"content" value:content priority:@""];
497}
498
499- (NSString *)counterIncrement
500{
501    return [self getPropertyValue:@"counter-increment"];
502}
503
504- (void)setCounterIncrement:(NSString *)counterIncrement
505{
506    [self setProperty:@"counter-increment" value:counterIncrement priority:@""];
507}
508
509- (NSString *)counterReset
510{
511    return [self getPropertyValue:@"counter-reset"];
512}
513
514- (void)setCounterReset:(NSString *)counterReset
515{
516    [self setProperty:@"counter-reset" value:counterReset priority:@""];
517}
518
519- (NSString *)cue
520{
521    return [self getPropertyValue:@"cue"];
522}
523
524- (void)setCue:(NSString *)cue
525{
526    [self setProperty:@"cue" value:cue priority:@""];
527}
528
529- (NSString *)cueAfter
530{
531    return [self getPropertyValue:@"cue-after"];
532}
533
534- (void)setCueAfter:(NSString *)cueAfter
535{
536    [self setProperty:@"cue-after" value:cueAfter priority:@""];
537}
538
539- (NSString *)cueBefore
540{
541    return [self getPropertyValue:@"cue-before"];
542}
543
544- (void)setCueBefore:(NSString *)cueBefore
545{
546    [self setProperty:@"cue-before" value:cueBefore priority:@""];
547}
548
549- (NSString *)cursor
550{
551    return [self getPropertyValue:@"cursor"];
552}
553
554- (void)setCursor:(NSString *)cursor
555{
556    [self setProperty:@"cursor" value:cursor priority:@""];
557}
558
559- (NSString *)direction
560{
561    return [self getPropertyValue:@"direction"];
562}
563
564- (void)setDirection:(NSString *)direction
565{
566    [self setProperty:@"direction" value:direction priority:@""];
567}
568
569- (NSString *)display
570{
571    return [self getPropertyValue:@"display"];
572}
573
574- (void)setDisplay:(NSString *)display
575{
576    [self setProperty:@"display" value:display priority:@""];
577}
578
579- (NSString *)elevation
580{
581    return [self getPropertyValue:@"elevation"];
582}
583
584- (void)setElevation:(NSString *)elevation
585{
586    [self setProperty:@"elevation" value:elevation priority:@""];
587}
588
589- (NSString *)emptyCells
590{
591    return [self getPropertyValue:@"empty-cells"];
592}
593
594- (void)setEmptyCells:(NSString *)emptyCells
595{
596    [self setProperty:@"empty-cells" value:emptyCells priority:@""];
597}
598
599- (NSString *)cssFloat
600{
601    return [self getPropertyValue:@"css-float"];
602}
603
604- (void)setCssFloat:(NSString *)cssFloat
605{
606    [self setProperty:@"css-float" value:cssFloat priority:@""];
607}
608
609- (NSString *)font
610{
611    return [self getPropertyValue:@"font"];
612}
613
614- (void)setFont:(NSString *)font
615{
616    [self setProperty:@"font" value:font priority:@""];
617}
618
619- (NSString *)fontFamily
620{
621    return [self getPropertyValue:@"font-family"];
622}
623
624- (void)setFontFamily:(NSString *)fontFamily
625{
626    [self setProperty:@"font-family" value:fontFamily priority:@""];
627}
628
629- (NSString *)fontSize
630{
631    return [self getPropertyValue:@"font-size"];
632}
633
634- (void)setFontSize:(NSString *)fontSize
635{
636    [self setProperty:@"font-size" value:fontSize priority:@""];
637}
638
639- (NSString *)fontSizeAdjust
640{
641    return [self getPropertyValue:@"font-size-adjust"];
642}
643
644- (void)setFontSizeAdjust:(NSString *)fontSizeAdjust
645{
646    [self setProperty:@"font-size-adjust" value:fontSizeAdjust priority:@""];
647}
648
649- (NSString *)_fontSizeDelta
650{
651    return [self getPropertyValue:@"-webkit-font-size-delta"];
652}
653
654- (void)_setFontSizeDelta:(NSString *)fontSizeDelta
655{
656    [self setProperty:@"-webkit-font-size-delta" value:fontSizeDelta priority:@""];
657}
658
659- (NSString *)fontStretch
660{
661    return [self getPropertyValue:@"font-stretch"];
662}
663
664- (void)setFontStretch:(NSString *)fontStretch
665{
666    [self setProperty:@"font-stretch" value:fontStretch priority:@""];
667}
668
669- (NSString *)fontStyle
670{
671    return [self getPropertyValue:@"font-style"];
672}
673
674- (void)setFontStyle:(NSString *)fontStyle
675{
676    [self setProperty:@"font-style" value:fontStyle priority:@""];
677}
678
679- (NSString *)fontVariant
680{
681    return [self getPropertyValue:@"font-variant"];
682}
683
684- (void)setFontVariant:(NSString *)fontVariant
685{
686    [self setProperty:@"font-variant" value:fontVariant priority:@""];
687}
688
689- (NSString *)fontWeight
690{
691    return [self getPropertyValue:@"font-weight"];
692}
693
694- (void)setFontWeight:(NSString *)fontWeight
695{
696    [self setProperty:@"font-weight" value:fontWeight priority:@""];
697}
698
699- (NSString *)height
700{
701    return [self getPropertyValue:@"height"];
702}
703
704- (void)setHeight:(NSString *)height
705{
706    [self setProperty:@"height" value:height priority:@""];
707}
708
709- (NSString *)left
710{
711    return [self getPropertyValue:@"left"];
712}
713
714- (void)setLeft:(NSString *)left
715{
716    [self setProperty:@"left" value:left priority:@""];
717}
718
719- (NSString *)letterSpacing
720{
721    return [self getPropertyValue:@"letter-spacing"];
722}
723
724- (void)setLetterSpacing:(NSString *)letterSpacing
725{
726    [self setProperty:@"letter-spacing" value:letterSpacing priority:@""];
727}
728
729- (NSString *)lineHeight
730{
731    return [self getPropertyValue:@"line-height"];
732}
733
734- (void)setLineHeight:(NSString *)lineHeight
735{
736    [self setProperty:@"line-height" value:lineHeight priority:@""];
737}
738
739- (NSString *)listStyle
740{
741    return [self getPropertyValue:@"list-style"];
742}
743
744- (void)setListStyle:(NSString *)listStyle
745{
746    [self setProperty:@"list-style" value:listStyle priority:@""];
747}
748
749- (NSString *)listStyleImage
750{
751    return [self getPropertyValue:@"list-style-image"];
752}
753
754- (void)setListStyleImage:(NSString *)listStyleImage
755{
756    [self setProperty:@"list-style-image" value:listStyleImage priority:@""];
757}
758
759- (NSString *)listStylePosition
760{
761    return [self getPropertyValue:@"list-style-position"];
762}
763
764- (void)setListStylePosition:(NSString *)listStylePosition
765{
766    [self setProperty:@"list-style-position" value:listStylePosition priority:@""];
767}
768
769- (NSString *)listStyleType
770{
771    return [self getPropertyValue:@"list-style-type"];
772}
773
774- (void)setListStyleType:(NSString *)listStyleType
775{
776    [self setProperty:@"list-style-type" value:listStyleType priority:@""];
777}
778
779- (NSString *)margin
780{
781    return [self getPropertyValue:@"margin"];
782}
783
784- (void)setMargin:(NSString *)margin
785{
786    [self setProperty:@"margin" value:margin priority:@""];
787}
788
789- (NSString *)marginTop
790{
791    return [self getPropertyValue:@"margin-top"];
792}
793
794- (void)setMarginTop:(NSString *)marginTop
795{
796    [self setProperty:@"margin-top" value:marginTop priority:@""];
797}
798
799- (NSString *)marginRight
800{
801    return [self getPropertyValue:@"margin-right"];
802}
803
804- (void)setMarginRight:(NSString *)marginRight
805{
806    [self setProperty:@"margin-right" value:marginRight priority:@""];
807}
808
809- (NSString *)marginBottom
810{
811    return [self getPropertyValue:@"margin-bottom"];
812}
813
814- (void)setMarginBottom:(NSString *)marginBottom
815{
816    [self setProperty:@"margin-bottom" value:marginBottom priority:@""];
817}
818
819- (NSString *)marginLeft
820{
821    return [self getPropertyValue:@"margin-left"];
822}
823
824- (void)setMarginLeft:(NSString *)marginLeft
825{
826    [self setProperty:@"margin-left" value:marginLeft priority:@""];
827}
828
829- (NSString *)markerOffset
830{
831    return [self getPropertyValue:@"marker-offset"];
832}
833
834- (void)setMarkerOffset:(NSString *)markerOffset
835{
836    [self setProperty:@"marker-offset" value:markerOffset priority:@""];
837}
838
839- (NSString *)marks
840{
841    return [self getPropertyValue:@"marks"];
842}
843
844- (void)setMarks:(NSString *)marks
845{
846    [self setProperty:@"marks" value:marks priority:@""];
847}
848
849- (NSString *)maxHeight
850{
851    return [self getPropertyValue:@"max-height"];
852}
853
854- (void)setMaxHeight:(NSString *)maxHeight
855{
856    [self setProperty:@"max-height" value:maxHeight priority:@""];
857}
858
859- (NSString *)maxWidth
860{
861    return [self getPropertyValue:@"max-width"];
862}
863
864- (void)setMaxWidth:(NSString *)maxWidth
865{
866    [self setProperty:@"max-width" value:maxWidth priority:@""];
867}
868
869- (NSString *)minHeight
870{
871    return [self getPropertyValue:@"min-height"];
872}
873
874- (void)setMinHeight:(NSString *)minHeight
875{
876    [self setProperty:@"min-height" value:minHeight priority:@""];
877}
878
879- (NSString *)minWidth
880{
881    return [self getPropertyValue:@"min-width"];
882}
883
884- (void)setMinWidth:(NSString *)minWidth
885{
886    [self setProperty:@"min-width" value:minWidth priority:@""];
887}
888
889- (NSString *)orphans
890{
891    return [self getPropertyValue:@"orphans"];
892}
893
894- (void)setOrphans:(NSString *)orphans
895{
896    [self setProperty:@"orphans" value:orphans priority:@""];
897}
898
899- (NSString *)outline
900{
901    return [self getPropertyValue:@"outline"];
902}
903
904- (void)setOutline:(NSString *)outline
905{
906    [self setProperty:@"outline" value:outline priority:@""];
907}
908
909- (NSString *)outlineColor
910{
911    return [self getPropertyValue:@"outline-color"];
912}
913
914- (void)setOutlineColor:(NSString *)outlineColor
915{
916    [self setProperty:@"outline-color" value:outlineColor priority:@""];
917}
918
919- (NSString *)outlineStyle
920{
921    return [self getPropertyValue:@"outline-style"];
922}
923
924- (void)setOutlineStyle:(NSString *)outlineStyle
925{
926    [self setProperty:@"outline-style" value:outlineStyle priority:@""];
927}
928
929- (NSString *)outlineWidth
930{
931    return [self getPropertyValue:@"outline-width"];
932}
933
934- (void)setOutlineWidth:(NSString *)outlineWidth
935{
936    [self setProperty:@"outline-width" value:outlineWidth priority:@""];
937}
938
939- (NSString *)overflow
940{
941    return [self getPropertyValue:@"overflow"];
942}
943
944- (void)setOverflow:(NSString *)overflow
945{
946    [self setProperty:@"overflow" value:overflow priority:@""];
947}
948
949- (NSString *)padding
950{
951    return [self getPropertyValue:@"padding"];
952}
953
954- (void)setPadding:(NSString *)padding
955{
956    [self setProperty:@"padding" value:padding priority:@""];
957}
958
959- (NSString *)paddingTop
960{
961    return [self getPropertyValue:@"padding-top"];
962}
963
964- (void)setPaddingTop:(NSString *)paddingTop
965{
966    [self setProperty:@"padding-top" value:paddingTop priority:@""];
967}
968
969- (NSString *)paddingRight
970{
971    return [self getPropertyValue:@"padding-right"];
972}
973
974- (void)setPaddingRight:(NSString *)paddingRight
975{
976    [self setProperty:@"padding-right" value:paddingRight priority:@""];
977}
978
979- (NSString *)paddingBottom
980{
981    return [self getPropertyValue:@"padding-bottom"];
982}
983
984- (void)setPaddingBottom:(NSString *)paddingBottom
985{
986    [self setProperty:@"padding-bottom" value:paddingBottom priority:@""];
987}
988
989- (NSString *)paddingLeft
990{
991    return [self getPropertyValue:@"padding-left"];
992}
993
994- (void)setPaddingLeft:(NSString *)paddingLeft
995{
996    [self setProperty:@"padding-left" value:paddingLeft priority:@""];
997}
998
999- (NSString *)page
1000{
1001    return [self getPropertyValue:@"page"];
1002}
1003
1004- (void)setPage:(NSString *)page
1005{
1006    [self setProperty:@"page" value:page priority:@""];
1007}
1008
1009- (NSString *)pageBreakAfter
1010{
1011    return [self getPropertyValue:@"page-break-after"];
1012}
1013
1014- (void)setPageBreakAfter:(NSString *)pageBreakAfter
1015{
1016    [self setProperty:@"page-break-after" value:pageBreakAfter priority:@""];
1017}
1018
1019- (NSString *)pageBreakBefore
1020{
1021    return [self getPropertyValue:@"page-break-before"];
1022}
1023
1024- (void)setPageBreakBefore:(NSString *)pageBreakBefore
1025{
1026    [self setProperty:@"page-break-before" value:pageBreakBefore priority:@""];
1027}
1028
1029- (NSString *)pageBreakInside
1030{
1031    return [self getPropertyValue:@"page-break-inside"];
1032}
1033
1034- (void)setPageBreakInside:(NSString *)pageBreakInside
1035{
1036    [self setProperty:@"page-break-inside" value:pageBreakInside priority:@""];
1037}
1038
1039- (NSString *)pause
1040{
1041    return [self getPropertyValue:@"pause"];
1042}
1043
1044- (void)setPause:(NSString *)pause
1045{
1046    [self setProperty:@"pause" value:pause priority:@""];
1047}
1048
1049- (NSString *)pauseAfter
1050{
1051    return [self getPropertyValue:@"pause-after"];
1052}
1053
1054- (void)setPauseAfter:(NSString *)pauseAfter
1055{
1056    [self setProperty:@"pause-after" value:pauseAfter priority:@""];
1057}
1058
1059- (NSString *)pauseBefore
1060{
1061    return [self getPropertyValue:@"pause-before"];
1062}
1063
1064- (void)setPauseBefore:(NSString *)pauseBefore
1065{
1066    [self setProperty:@"pause-before" value:pauseBefore priority:@""];
1067}
1068
1069- (NSString *)pitch
1070{
1071    return [self getPropertyValue:@"pitch"];
1072}
1073
1074- (void)setPitch:(NSString *)pitch
1075{
1076    [self setProperty:@"pitch" value:pitch priority:@""];
1077}
1078
1079- (NSString *)pitchRange
1080{
1081    return [self getPropertyValue:@"pitch-range"];
1082}
1083
1084- (void)setPitchRange:(NSString *)pitchRange
1085{
1086    [self setProperty:@"pitch-range" value:pitchRange priority:@""];
1087}
1088
1089- (NSString *)playDuring
1090{
1091    return [self getPropertyValue:@"play-during"];
1092}
1093
1094- (void)setPlayDuring:(NSString *)playDuring
1095{
1096    [self setProperty:@"play-during" value:playDuring priority:@""];
1097}
1098
1099- (NSString *)position
1100{
1101    return [self getPropertyValue:@"position"];
1102}
1103
1104- (void)setPosition:(NSString *)position
1105{
1106    [self setProperty:@"position" value:position priority:@""];
1107}
1108
1109- (NSString *)quotes
1110{
1111    return [self getPropertyValue:@"quotes"];
1112}
1113
1114- (void)setQuotes:(NSString *)quotes
1115{
1116    [self setProperty:@"quotes" value:quotes priority:@""];
1117}
1118
1119- (NSString *)richness
1120{
1121    return [self getPropertyValue:@"richness"];
1122}
1123
1124- (void)setRichness:(NSString *)richness
1125{
1126    [self setProperty:@"richness" value:richness priority:@""];
1127}
1128
1129- (NSString *)right
1130{
1131    return [self getPropertyValue:@"right"];
1132}
1133
1134- (void)setRight:(NSString *)right
1135{
1136    [self setProperty:@"right" value:right priority:@""];
1137}
1138
1139- (NSString *)size
1140{
1141    return [self getPropertyValue:@"size"];
1142}
1143
1144- (void)setSize:(NSString *)size
1145{
1146    [self setProperty:@"size" value:size priority:@""];
1147}
1148
1149- (NSString *)speak
1150{
1151    return [self getPropertyValue:@"speak"];
1152}
1153
1154- (void)setSpeak:(NSString *)speak
1155{
1156    [self setProperty:@"speak" value:speak priority:@""];
1157}
1158
1159- (NSString *)speakHeader
1160{
1161    return [self getPropertyValue:@"speak-header"];
1162}
1163
1164- (void)setSpeakHeader:(NSString *)speakHeader
1165{
1166    [self setProperty:@"speak-header" value:speakHeader priority:@""];
1167}
1168
1169- (NSString *)speakNumeral
1170{
1171    return [self getPropertyValue:@"speak-numeral"];
1172}
1173
1174- (void)setSpeakNumeral:(NSString *)speakNumeral
1175{
1176    [self setProperty:@"speak-numeral" value:speakNumeral priority:@""];
1177}
1178
1179- (NSString *)speakPunctuation
1180{
1181    return [self getPropertyValue:@"speak-punctuation"];
1182}
1183
1184- (void)setSpeakPunctuation:(NSString *)speakPunctuation
1185{
1186    [self setProperty:@"speak-punctuation" value:speakPunctuation priority:@""];
1187}
1188
1189- (NSString *)speechRate
1190{
1191    return [self getPropertyValue:@"speech-rate"];
1192}
1193
1194- (void)setSpeechRate:(NSString *)speechRate
1195{
1196    [self setProperty:@"speech-rate" value:speechRate priority:@""];
1197}
1198
1199- (NSString *)stress
1200{
1201    return [self getPropertyValue:@"stress"];
1202}
1203
1204- (void)setStress:(NSString *)stress
1205{
1206    [self setProperty:@"stress" value:stress priority:@""];
1207}
1208
1209- (NSString *)tableLayout
1210{
1211    return [self getPropertyValue:@"table-layout"];
1212}
1213
1214- (void)setTableLayout:(NSString *)tableLayout
1215{
1216    [self setProperty:@"table-layout" value:tableLayout priority:@""];
1217}
1218
1219- (NSString *)textAlign
1220{
1221    return [self getPropertyValue:@"text-align"];
1222}
1223
1224- (void)setTextAlign:(NSString *)textAlign
1225{
1226    [self setProperty:@"text-align" value:textAlign priority:@""];
1227}
1228
1229- (NSString *)textDecoration
1230{
1231    return [self getPropertyValue:@"text-decoration"];
1232}
1233
1234- (void)setTextDecoration:(NSString *)textDecoration
1235{
1236    [self setProperty:@"text-decoration" value:textDecoration priority:@""];
1237}
1238
1239- (NSString *)textIndent
1240{
1241    return [self getPropertyValue:@"text-indent"];
1242}
1243
1244- (void)setTextIndent:(NSString *)textIndent
1245{
1246    [self setProperty:@"text-indent" value:textIndent priority:@""];
1247}
1248
1249- (NSString *)textShadow
1250{
1251    return [self getPropertyValue:@"text-shadow"];
1252}
1253
1254- (void)setTextShadow:(NSString *)textShadow
1255{
1256    [self setProperty:@"text-shadow" value:textShadow priority:@""];
1257}
1258
1259- (NSString *)textTransform
1260{
1261    return [self getPropertyValue:@"text-transform"];
1262}
1263
1264- (void)setTextTransform:(NSString *)textTransform
1265{
1266    [self setProperty:@"text-transform" value:textTransform priority:@""];
1267}
1268
1269- (NSString *)top
1270{
1271    return [self getPropertyValue:@"top"];
1272}
1273
1274- (void)setTop:(NSString *)top
1275{
1276    [self setProperty:@"top" value:top priority:@""];
1277}
1278
1279- (NSString *)unicodeBidi
1280{
1281    return [self getPropertyValue:@"unicode-bidi"];
1282}
1283
1284- (void)setUnicodeBidi:(NSString *)unicodeBidi
1285{
1286    [self setProperty:@"unicode-bidi" value:unicodeBidi priority:@""];
1287}
1288
1289- (NSString *)verticalAlign
1290{
1291    return [self getPropertyValue:@"vertical-align"];
1292}
1293
1294- (void)setVerticalAlign:(NSString *)verticalAlign
1295{
1296    [self setProperty:@"vertical-align" value:verticalAlign priority:@""];
1297}
1298
1299- (NSString *)visibility
1300{
1301    return [self getPropertyValue:@"visibility"];
1302}
1303
1304- (void)setVisibility:(NSString *)visibility
1305{
1306    [self setProperty:@"visibility" value:visibility priority:@""];
1307}
1308
1309- (NSString *)voiceFamily
1310{
1311    return [self getPropertyValue:@"voice-family"];
1312}
1313
1314- (void)setVoiceFamily:(NSString *)voiceFamily
1315{
1316    [self setProperty:@"voice-family" value:voiceFamily priority:@""];
1317}
1318
1319- (NSString *)volume
1320{
1321    return [self getPropertyValue:@"volume"];
1322}
1323
1324- (void)setVolume:(NSString *)volume
1325{
1326    [self setProperty:@"volume" value:volume priority:@""];
1327}
1328
1329- (NSString *)whiteSpace
1330{
1331    return [self getPropertyValue:@"white-space"];
1332}
1333
1334- (void)setWhiteSpace:(NSString *)whiteSpace
1335{
1336    [self setProperty:@"white-space" value:whiteSpace priority:@""];
1337}
1338
1339- (NSString *)widows
1340{
1341    return [self getPropertyValue:@"widows"];
1342}
1343
1344- (void)setWidows:(NSString *)widows
1345{
1346    [self setProperty:@"widows" value:widows priority:@""];
1347}
1348
1349- (NSString *)width
1350{
1351    return [self getPropertyValue:@"width"];
1352}
1353
1354- (void)setWidth:(NSString *)width
1355{
1356    [self setProperty:@"width" value:width priority:@""];
1357}
1358
1359- (NSString *)wordSpacing
1360{
1361    return [self getPropertyValue:@"word-spacing"];
1362}
1363
1364- (void)setWordSpacing:(NSString *)wordSpacing
1365{
1366    [self setProperty:@"word-spacing" value:wordSpacing priority:@""];
1367}
1368
1369- (NSString *)zIndex
1370{
1371    return [self getPropertyValue:@"z-index"];
1372}
1373
1374- (void)setZIndex:(NSString *)zIndex
1375{
1376    [self setProperty:@"z-index" value:zIndex priority:@""];
1377}
1378
1379@end
1380