-
Notifications
You must be signed in to change notification settings - Fork 11
/
properties.go
2239 lines (1790 loc) · 54.3 KB
/
properties.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*This file is computer-generated*/
package css
import "strconv"
type numberValue interface {
ruleable
numberValue()
}
type numberType string
func (self numberType) Rule() Rule { return Rule(self) }
func (numberType) numberValue() {}
type uintValue interface {
ruleable
uintValue()
}
type uintType string
func (self uintType) Rule() Rule { return Rule(self) }
func (uintType) uintValue() {}
type unitOrAutoValue interface {
ruleable
unitOrAutoValue()
}
type unitOrAutoType string
func (self unitOrAutoType) Rule() Rule { return Rule(self) }
func (unitOrAutoType) unitOrAutoValue() {}
type thicknessValue interface {
ruleable
thicknessValue()
}
type thicknessType string
func (self thicknessType) Rule() Rule { return Rule(self) }
func (thicknessType) thicknessValue() {}
type colorValue interface {
ruleable
colorValue()
}
type colorType string
func (self colorType) Rule() Rule { return Rule(self) }
func (colorType) colorValue() {}
type unitValue interface {
ruleable
unitValue()
}
type unitType string
func (self unitType) Rule() Rule { return Rule(self) }
func (unitType) unitValue() {}
type shadowValue interface {
ruleable
shadowValue()
}
type shadowType string
func (self shadowType) Rule() Rule { return Rule(self) }
func (shadowType) shadowValue() {}
type normalOrAutoValue interface {
ruleable
normalOrAutoValue()
}
type normalOrAutoType string
func (self normalOrAutoType) Rule() Rule { return Rule(self) }
func (normalOrAutoType) normalOrAutoValue() {}
type sizeValue interface {
ruleable
sizeValue()
}
type sizeType string
func (self sizeType) Rule() Rule { return Rule(self) }
func (sizeType) sizeValue() {}
type unitOrNoneValue interface {
ruleable
unitOrNoneValue()
}
type unitOrNoneType string
func (self unitOrNoneType) Rule() Rule { return Rule(self) }
func (unitOrNoneType) unitOrNoneValue() {}
type integerOrAutoValue interface {
ruleable
integerOrAutoValue()
}
type integerOrAutoType string
func (self integerOrAutoType) Rule() Rule { return Rule(self) }
func (integerOrAutoType) integerOrAutoValue() {}
type imageValue interface {
ruleable
imageValue()
}
type imageType string
func (self imageType) Rule() Rule { return Rule(self) }
func (imageType) imageValue() {}
type overflowValue interface {
ruleable
overflowValue()
}
type overflowType string
func (self overflowType) Rule() Rule { return Rule(self) }
func (overflowType) overflowValue() {}
type gridTemplateValue interface {
ruleable
gridTemplateValue()
}
type gridTemplateType string
func (self gridTemplateType) Rule() Rule { return Rule(self) }
func (gridTemplateType) gridTemplateValue() {}
type uintOrUnitValue interface {
ruleable
uintOrUnitValue()
}
type uintOrUnitType string
func (self uintOrUnitType) Rule() Rule { return Rule(self) }
func (uintOrUnitType) uintOrUnitValue() {}
type gridAutoValue interface {
ruleable
gridAutoValue()
}
type gridAutoType string
func (self gridAutoType) Rule() Rule { return Rule(self) }
func (gridAutoType) gridAutoValue() {}
type breakValue interface {
ruleable
breakValue()
}
type breakType string
func (self breakType) Rule() Rule { return Rule(self) }
func (breakType) breakValue() {}
type normalOrUnitOrAutoValue interface {
ruleable
normalOrUnitOrAutoValue()
}
type normalOrUnitOrAutoType string
func (self normalOrUnitOrAutoType) Rule() Rule { return Rule(self) }
func (normalOrUnitOrAutoType) normalOrUnitOrAutoValue() {}
type nameValue interface {
ruleable
nameValue()
}
type nameType string
func (self nameType) Rule() Rule { return Rule(self) }
func (nameType) nameValue() {}
type boxValue interface {
ruleable
boxValue()
}
type boxType string
func (self boxType) Rule() Rule { return Rule(self) }
func (boxType) boxValue() {}
type unitAndUnitValue interface {
ruleable
unitAndUnitValue()
}
type unitAndUnitType string
func (self unitAndUnitType) Rule() Rule { return Rule(self) }
func (unitAndUnitType) unitAndUnitValue() {}
type gridStopValue interface {
ruleable
gridStopValue()
}
type gridStopType string
func (self gridStopType) Rule() Rule { return Rule(self) }
func (gridStopType) gridStopValue() {}
type borderStyleValue interface {
ruleable
borderStyleValue()
}
type borderStyleType string
func (self borderStyleType) Rule() Rule { return Rule(self) }
func (borderStyleType) borderStyleValue() {}
type durationValue interface {
ruleable
durationValue()
}
type durationType string
func (self durationType) Rule() Rule { return Rule(self) }
func (durationType) durationValue() {}
type pageBreakValue interface {
ruleable
pageBreakValue()
}
type pageBreakType string
func (self pageBreakType) Rule() Rule { return Rule(self) }
func (pageBreakType) pageBreakValue() {}
type fontVariantValue interface {
ruleable
fontVariantValue()
}
type fontVariantType string
func (self fontVariantType) Rule() Rule { return Rule(self) }
func (fontVariantType) fontVariantValue() {}
func SetFontVariant(value fontVariantValue) Rule {
return "font-variant:" + value.Rule() + ";"
}
type fontVariantNumericValue interface {
ruleable
fontVariantNumericValue()
}
type fontVariantNumericType string
func (self fontVariantNumericType) Rule() Rule { return Rule(self) }
func (fontVariantNumericType) fontVariantNumericValue() {}
func SetFontVariantNumeric(value fontVariantNumericValue) Rule {
return "font-variant-numeric:" + value.Rule() + ";"
}
func SetOutlineOffset(value unitValue) Rule {
return "outline-offset:" + value.Rule() + ";"
}
type animationDirectionValue interface {
ruleable
animationDirectionValue()
}
type animationDirectionType string
func (self animationDirectionType) Rule() Rule { return Rule(self) }
func (animationDirectionType) animationDirectionValue() {}
func SetAnimationDirection(value animationDirectionValue) Rule {
return "animation-direction:" + value.Rule() + ";"
}
type counterIncrementValue interface {
ruleable
counterIncrementValue()
}
type counterIncrementType string
func (self counterIncrementType) Rule() Rule { return Rule(self) }
func (counterIncrementType) counterIncrementValue() {}
func SetCounterIncrement(value counterIncrementValue) Rule {
return "counter-increment:" + value.Rule() + ";"
}
func SetPaddingRight(value unitValue) Rule {
return "padding-right:" + value.Rule() + ";"
}
func SetRight(value unitOrAutoValue) Rule {
return "right:" + value.Rule() + ";"
}
type filterValue interface {
ruleable
filterValue()
}
type filterType string
func (self filterType) Rule() Rule { return Rule(self) }
func (filterType) filterValue() {}
func SetFilter(value filterValue) Rule {
return "filter:" + value.Rule() + ";"
}
func SetGridTemplateRows(values []gridTemplateValue) Rule {
if len(values) == 0 {
return "grid-template-rows: " + unitType("none").Rule() + ";"
}
var result Rule
for _, value := range values {
result += value.Rule() + " "
}
return "grid-template-rows: " + unitType(result).Rule() + ";"
}
type backgroundValue interface {
ruleable
backgroundValue()
}
type backgroundType string
func (self backgroundType) Rule() Rule { return Rule(self) }
func (backgroundType) backgroundValue() {}
func SetBackground(value backgroundValue) Rule {
return "background:" + value.Rule() + ";"
}
func SetQuotes(quotes []string) Rule {
if len(quotes) == 0 {
return "quotes: " + unitType("none").Rule() + ";"
}
var result string
for _, quote := range quotes {
result += strconv.Quote(quote)
}
return "quotes: " + unitType(result).Rule() + ";"
}
type userSelectValue interface {
ruleable
userSelectValue()
}
type userSelectType string
func (self userSelectType) Rule() Rule { return Rule(self) }
func (userSelectType) userSelectValue() {}
func SetUserSelect(value userSelectValue) Rule {
return "user-select:" + value.Rule() + ";"
}
func SetWhiteSpace(value uintValue) Rule {
return "white-space:" + value.Rule() + ";"
}
func SetBorderRightWidth(value thicknessValue) Rule {
return "border-right-width:" + value.Rule() + ";"
}
func SetBorderTopColor(value colorValue) Rule {
return "border-top-color:" + value.Rule() + ";"
}
func SetFlexGrow(value numberValue) Rule {
return "flex-grow:" + value.Rule() + ";"
}
type fontVariantEastAsianValue interface {
ruleable
fontVariantEastAsianValue()
}
type fontVariantEastAsianType string
func (self fontVariantEastAsianType) Rule() Rule { return Rule(self) }
func (fontVariantEastAsianType) fontVariantEastAsianValue() {}
func SetFontVariantEastAsian(value fontVariantEastAsianValue) Rule {
return "font-variant-east-asian:" + value.Rule() + ";"
}
func SetBorderBottomLeftRadius(value unitValue) Rule {
return "border-bottom-left-radius:" + value.Rule() + ";"
}
type fontVariantPositionValue interface {
ruleable
fontVariantPositionValue()
}
type fontVariantPositionType string
func (self fontVariantPositionType) Rule() Rule { return Rule(self) }
func (fontVariantPositionType) fontVariantPositionValue() {}
func SetFontVariantPosition(value fontVariantPositionValue) Rule {
return "font-variant-position:" + value.Rule() + ";"
}
type animationNameValue interface {
ruleable
animationNameValue()
}
type animationNameType string
func (self animationNameType) Rule() Rule { return Rule(self) }
func (animationNameType) animationNameValue() {}
func SetAnimationName(value animationNameValue) Rule {
return "animation-name:" + value.Rule() + ";"
}
type fontDisplayValue interface {
ruleable
fontDisplayValue()
}
type fontDisplayType string
func (self fontDisplayType) Rule() Rule { return Rule(self) }
func (fontDisplayType) fontDisplayValue() {}
func SetFontDisplay(value fontDisplayValue) Rule {
return "font-display:" + value.Rule() + ";"
}
type fontSynthesisValue string
func (f fontSynthesisValue) Rule() Rule {
return Rule(f)
}
func FontSynthesis(weight, style bool) fontSynthesisValue {
if !weight && !style {
return fontSynthesisValue("none")
}
var result fontSynthesisValue
if weight {
result += fontSynthesisValue("weight ")
}
if style {
result += fontSynthesisValue("style")
}
return result
}
func SetFontSynthesis(value fontSynthesisValue) Rule {
return "font-synthesis: " + value.Rule() + ";"
}
func SetGridColumnGap(value unitValue) Rule {
return "grid-column-gap:" + value.Rule() + ";"
}
func SetGridRowStart(value gridStopValue) Rule {
return "grid-row-start:" + value.Rule() + ";"
}
type textDecorationStyleValue interface {
ruleable
textDecorationStyleValue()
}
type textDecorationStyleType string
func (self textDecorationStyleType) Rule() Rule { return Rule(self) }
func (textDecorationStyleType) textDecorationStyleValue() {}
func SetTextDecorationStyle(value textDecorationStyleValue) Rule {
return "text-decoration-style:" + value.Rule() + ";"
}
func SetAnimationDelay(value durationValue) Rule {
return "animation-delay:" + value.Rule() + ";"
}
type borderTopValue interface {
ruleable
borderTopValue()
}
type borderTopType string
func (self borderTopType) Rule() Rule { return Rule(self) }
func (borderTopType) borderTopValue() {}
func SetBorderTop(value borderTopValue) Rule {
return "border-top:" + value.Rule() + ";"
}
type breakInsideValue interface {
ruleable
breakInsideValue()
}
type breakInsideType string
func (self breakInsideType) Rule() Rule { return Rule(self) }
func (breakInsideType) breakInsideValue() {}
func SetBreakInside(value breakInsideValue) Rule {
return "break-inside:" + value.Rule() + ";"
}
func SetOutlineStyle(value borderStyleValue) Rule {
return "outline-style:" + value.Rule() + ";"
}
type transformStyleValue interface {
ruleable
transformStyleValue()
}
type transformStyleType string
func (self transformStyleType) Rule() Rule { return Rule(self) }
func (transformStyleType) transformStyleValue() {}
func SetTransformStyle(value transformStyleValue) Rule {
return "transform-style:" + value.Rule() + ";"
}
type visibilityValue interface {
ruleable
visibilityValue()
}
type visibilityType string
func (self visibilityType) Rule() Rule { return Rule(self) }
func (visibilityType) visibilityValue() {}
func SetVisibility(value visibilityValue) Rule {
return "visibility:" + value.Rule() + ";"
}
type borderTopRightRadiusValue interface {
ruleable
borderTopRightRadiusValue()
}
type borderTopRightRadiusType string
func (self borderTopRightRadiusType) Rule() Rule { return Rule(self) }
func (borderTopRightRadiusType) borderTopRightRadiusValue() {}
func SetBorderTopRightRadius(value borderTopRightRadiusValue) Rule {
return "border-top-right-radius:" + value.Rule() + ";"
}
func SetMinWidth(value unitOrNoneValue) Rule {
return "min-width:" + value.Rule() + ";"
}
func SetBorderBottomStyle(value borderStyleValue) Rule {
return "border-bottom-style:" + value.Rule() + ";"
}
type borderCollapseValue interface {
ruleable
borderCollapseValue()
}
type borderCollapseType string
func (self borderCollapseType) Rule() Rule { return Rule(self) }
func (borderCollapseType) borderCollapseValue() {}
func SetBorderCollapse(value borderCollapseValue) Rule {
return "border-collapse:" + value.Rule() + ";"
}
type columnRuleValue interface {
ruleable
columnRuleValue()
}
type columnRuleType string
func (self columnRuleType) Rule() Rule { return Rule(self) }
func (columnRuleType) columnRuleValue() {}
func SetColumnRule(value columnRuleValue) Rule {
return "column-rule:" + value.Rule() + ";"
}
func SetPageBreakAfter(value pageBreakValue) Rule {
return "page-break-after:" + value.Rule() + ";"
}
func SetTransformOrigin(p positionValue, z ...unitValue) Rule {
if len(z) > 0 {
return "transform-origin: " + p.Rule() + " " + z[0].Rule()
} else {
return "transform-origin: " + p.Rule()
}
}
func SetBreakBefore(value breakValue) Rule {
return "break-before:" + value.Rule() + ";"
}
type fontVariantAlternatesValue interface {
ruleable
fontVariantAlternatesValue()
}
type fontVariantAlternatesType string
func (self fontVariantAlternatesType) Rule() Rule { return Rule(self) }
func (fontVariantAlternatesType) fontVariantAlternatesValue() {}
func SetFontVariantAlternates(value fontVariantAlternatesValue) Rule {
return "font-variant-alternates:" + value.Rule() + ";"
}
type justifyContentValue interface {
ruleable
justifyContentValue()
}
type justifyContentType string
func (self justifyContentType) Rule() Rule { return Rule(self) }
func (justifyContentType) justifyContentValue() {}
func SetJustifyContent(value justifyContentValue) Rule {
return "justify-content:" + value.Rule() + ";"
}
func SetBorderTopStyle(value borderStyleValue) Rule {
return "border-top-style:" + value.Rule() + ";"
}
type fontValue interface {
ruleable
fontValue()
}
type fontType string
func (self fontType) Rule() Rule { return Rule(self) }
func (fontType) fontValue() {}
func SetFont(value fontValue) Rule {
return "font:" + value.Rule() + ";"
}
type fontLanguageOverrideValue interface {
ruleable
fontLanguageOverrideValue()
}
type fontLanguageOverrideType string
func (self fontLanguageOverrideType) Rule() Rule { return Rule(self) }
func (fontLanguageOverrideType) fontLanguageOverrideValue() {}
func SetFontLanguageOverride(value fontLanguageOverrideValue) Rule {
return "font-language-override:" + value.Rule() + ";"
}
type resizeValue interface {
ruleable
resizeValue()
}
type resizeType string
func (self resizeType) Rule() Rule { return Rule(self) }
func (resizeType) resizeValue() {}
func SetResize(value resizeValue) Rule {
return "resize:" + value.Rule() + ";"
}
func SetTextDecorationColor(value colorValue) Rule {
return "text-decoration-color:" + value.Rule() + ";"
}
type animationFillModeValue interface {
ruleable
animationFillModeValue()
}
type animationFillModeType string
func (self animationFillModeType) Rule() Rule { return Rule(self) }
func (animationFillModeType) animationFillModeValue() {}
func SetAnimationFillMode(value animationFillModeValue) Rule {
return "animation-fill-mode:" + value.Rule() + ";"
}
func SetBorderLeftStyle(value borderStyleValue) Rule {
return "border-left-style:" + value.Rule() + ";"
}
func SetPageBreakBefore(value pageBreakValue) Rule {
return "page-break-before:" + value.Rule() + ";"
}
func SetBorderColor(value colorValue) Rule {
return "border-color:" + value.Rule() + ";"
}
func SetPaddingLeft(value unitValue) Rule {
return "padding-left:" + value.Rule() + ";"
}
type textOverflowValue interface {
ruleable
textOverflowValue()
}
type textOverflowType string
func (self textOverflowType) Rule() Rule { return Rule(self) }
func (textOverflowType) textOverflowValue() {}
func SetTextOverflow(value textOverflowValue) Rule {
return "text-overflow:" + value.Rule() + ";"
}
type outlineValue interface {
ruleable
outlineValue()
}
type outlineType string
func (self outlineType) Rule() Rule { return Rule(self) }
func (outlineType) outlineValue() {}
func SetOutline(value outlineValue) Rule {
return "outline:" + value.Rule() + ";"
}
func SetOutlineColor(value colorValue) Rule {
return "outline-color:" + value.Rule() + ";"
}
type textDecorationLineValue interface {
ruleable
textDecorationLineValue()
}
type textDecorationLineType string
func (self textDecorationLineType) Rule() Rule { return Rule(self) }
func (textDecorationLineType) textDecorationLineValue() {}
func SetTextDecorationLine(value textDecorationLineValue) Rule {
return "text-decoration-line:" + value.Rule() + ";"
}
func SetColumnRuleStyle(value borderStyleValue) Rule {
return "column-rule-style:" + value.Rule() + ";"
}
type fontStretchValue interface {
ruleable
fontStretchValue()
}
type fontStretchType string
func (self fontStretchType) Rule() Rule { return Rule(self) }
func (fontStretchType) fontStretchValue() {}
func SetFontStretch(value fontStretchValue) Rule {
return "font-stretch:" + value.Rule() + ";"
}
type fontWeightValue interface {
ruleable
fontWeightValue()
}
type fontWeightType string
func (self fontWeightType) Rule() Rule { return Rule(self) }
func (fontWeightType) fontWeightValue() {}
func SetFontWeight(value fontWeightValue) Rule {
return "font-weight:" + value.Rule() + ";"
}
type animationIterationCountValue interface {
ruleable
animationIterationCountValue()
}
type animationIterationCountType string
func (self animationIterationCountType) Rule() Rule { return Rule(self) }
func (animationIterationCountType) animationIterationCountValue() {}
func SetAnimationIterationCount(value animationIterationCountValue) Rule {
return "animation-iteration-count:" + value.Rule() + ";"
}
func SetMinHeight(value unitOrNoneValue) Rule {
return "min-height:" + value.Rule() + ";"
}
func SetTextShadow(value shadowValue) Rule {
return "text-shadow:" + value.Rule() + ";"
}
type flexFlowValue interface {
ruleable
flexFlowValue()
}
type flexFlowType string
func (self flexFlowType) Rule() Rule { return Rule(self) }
func (flexFlowType) flexFlowValue() {}
func SetFlexFlow(value flexFlowValue) Rule {
return "flex-flow:" + value.Rule() + ";"
}
type listStyleValue interface {
ruleable
listStyleValue()
}
type listStyleType string
func (self listStyleType) Rule() Rule { return Rule(self) }
func (listStyleType) listStyleValue() {}
func SetListStyle(value listStyleValue) Rule {
return "list-style:" + value.Rule() + ";"
}
func SetOverflowX(value overflowValue) Rule {
return "overflow-x:" + value.Rule() + ";"
}
type paddingValue interface {
ruleable
paddingValue()
}
type paddingType string
func (self paddingType) Rule() Rule { return Rule(self) }
func (paddingType) paddingValue() {}
func SetPadding(value paddingValue) Rule {
return "padding:" + value.Rule() + ";"
}
type borderValue interface {
ruleable
borderValue()
}
type borderType string
func (self borderType) Rule() Rule { return Rule(self) }
func (borderType) borderValue() {}
func SetBorder(value borderValue) Rule {
return "border:" + value.Rule() + ";"
}
func SetBorderImageSource(value imageValue) Rule {
return "border-image-source:" + value.Rule() + ";"
}
func SetBorderRightStyle(value borderStyleValue) Rule {
return "border-right-style:" + value.Rule() + ";"
}
func SetBackgroundPosition(value unitAndUnitValue) Rule {
return "background-position:" + value.Rule() + ";"
}
type imageRenderingValue interface {
ruleable
imageRenderingValue()
}
type imageRenderingType string
func (self imageRenderingType) Rule() Rule { return Rule(self) }
func (imageRenderingType) imageRenderingValue() {}
func SetImageRendering(value imageRenderingValue) Rule {
return "image-rendering:" + value.Rule() + ";"
}
type textTransformValue interface {
ruleable
textTransformValue()
}
type textTransformType string
func (self textTransformType) Rule() Rule { return Rule(self) }
func (textTransformType) textTransformValue() {}
func SetTextTransform(value textTransformValue) Rule {
return "text-transform:" + value.Rule() + ";"
}
type backgroundBlendModeValue interface {
ruleable
backgroundBlendModeValue()
}
type backgroundBlendModeType string
func (self backgroundBlendModeType) Rule() Rule { return Rule(self) }
func (backgroundBlendModeType) backgroundBlendModeValue() {}
func SetBackgroundBlendMode(value backgroundBlendModeValue) Rule {
return "background-blend-mode:" + value.Rule() + ";"
}
func SetLeft(value unitOrAutoValue) Rule {
return "left:" + value.Rule() + ";"
}
type columnRuleWidthValue interface {
ruleable
columnRuleWidthValue()
}
type columnRuleWidthType string
func (self columnRuleWidthType) Rule() Rule { return Rule(self) }
func (columnRuleWidthType) columnRuleWidthValue() {}
func SetColumnRuleWidth(value columnRuleWidthValue) Rule {
return "column-rule-width:" + value.Rule() + ";"
}
type gridValue interface {
ruleable
gridValue()
}
type gridType string
func (self gridType) Rule() Rule { return Rule(self) }
func (gridType) gridValue() {}
func SetGrid(value gridValue) Rule {
return "grid:" + value.Rule() + ";"
}
func SetOpacity(value numberValue) Rule {
return "opacity:" + value.Rule() + ";"
}
type animationValue interface {
ruleable
animationValue()
}
type animationType string
func (self animationType) Rule() Rule { return Rule(self) }
func (animationType) animationValue() {}
func SetAnimation(value animationValue) Rule {
return "animation:" + value.Rule() + ";"
}
func SetOrphans(value uintValue) Rule {
return "orphans:" + value.Rule() + ";"
}
type hyphensValue interface {
ruleable
hyphensValue()
}
type hyphensType string
func (self hyphensType) Rule() Rule { return Rule(self) }
func (hyphensType) hyphensValue() {}
func SetHyphens(value hyphensValue) Rule {
return "hyphens:" + value.Rule() + ";"
}
type scrollBehaviorValue interface {
ruleable
scrollBehaviorValue()
}
type scrollBehaviorType string
func (self scrollBehaviorType) Rule() Rule { return Rule(self) }
func (scrollBehaviorType) scrollBehaviorValue() {}
func SetScrollBehavior(value scrollBehaviorValue) Rule {
return "scroll-behavior:" + value.Rule() + ";"
}
func SetTop(value unitOrAutoValue) Rule {
return "top:" + value.Rule() + ";"
}
func SetBorderTopWidth(value thicknessValue) Rule {
return "border-top-width:" + value.Rule() + ";"
}
type gridColumnValue interface {
ruleable
gridColumnValue()
}
type gridColumnType string
func (self gridColumnType) Rule() Rule { return Rule(self) }
func (gridColumnType) gridColumnValue() {}
func SetGridColumn(value gridColumnValue) Rule {
return "grid-column:" + value.Rule() + ";"
}
type isolationValue interface {
ruleable
isolationValue()
}
type isolationType string
func (self isolationType) Rule() Rule { return Rule(self) }
func (isolationType) isolationValue() {}
func SetIsolation(value isolationValue) Rule {
return "isolation:" + value.Rule() + ";"
}
type listStyleTypeValue interface {
ruleable
listStyleTypeValue()
}
type listStyleTypeType string
func (self listStyleTypeType) Rule() Rule { return Rule(self) }
func (listStyleTypeType) listStyleTypeValue() {}
func SetListStyleType(value listStyleTypeValue) Rule {
return "list-style-type:" + value.Rule() + ";"
}
func SetWillChange(properties ...interface{}) Rule {
var names string
/*for i, property := range properties {
var s = NewStyle()
var catcher = propertyCatcher("")
s.Stylable = &catcher
reflect.ValueOf(property).Call([]reflect.Value{reflect.ValueOf(&s)})
names += *((*string)(s.Stylable.(*propertyCatcher)))