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