@@ -38,6 +38,7 @@ pub enum CSSMargin {
38
38
CSSMarginAuto
39
39
}
40
40
41
+ #[ deriving( Eq ) ]
41
42
pub enum CSSPadding {
42
43
CSSPaddingLength ( Length ) ,
43
44
CSSPaddingPercentage ( float )
@@ -51,11 +52,13 @@ pub enum CSSBorderWidth {
51
52
CSSBorderWidthLength ( Length )
52
53
}
53
54
55
+ #[ deriving( Eq ) ]
54
56
pub enum CSSBorderColor {
55
57
CSSBorderColorColor ( Color ) ,
56
58
CSSBorderColorTransparent
57
59
}
58
60
61
+ #[ deriving( Eq ) ]
59
62
pub enum CSSBorderStyle {
60
63
CSSBorderStyleNone ,
61
64
CSSBorderStyleHidden ,
@@ -98,24 +101,28 @@ pub enum CSSPosition {
98
101
CSSPositionFixed
99
102
}
100
103
104
+ #[ deriving( Eq ) ]
101
105
pub enum CSSTop {
102
106
CSSTopLength ( Length ) ,
103
107
CSSTopPercentage ,
104
108
CSSTopAuto
105
109
}
106
110
111
+ #[ deriving( Eq ) ]
107
112
pub enum CSSRight {
108
113
CSSRightLength ( Length ) ,
109
114
CSSRightPercentage ( float ) ,
110
115
CSSRightAuto
111
116
}
112
117
118
+ #[ deriving( Eq ) ]
113
119
pub enum CSSBottom {
114
120
CSSBottomLength ( Length ) ,
115
121
CSSBottomPercentage ( float ) ,
116
122
CSSBottomAuto
117
123
}
118
124
125
+ #[ deriving( Eq ) ]
119
126
pub enum CSSLeft {
120
127
CSSLeftLength ( Length ) ,
121
128
CSSLeftPercentage ( float ) ,
@@ -129,6 +136,7 @@ pub enum CSSFloat {
129
136
CSSFloatNone
130
137
}
131
138
139
+ #[ deriving( Eq ) ]
132
140
pub enum CSSDirection {
133
141
CSSDirectionLtr ,
134
142
CSSDirectionRtl
@@ -158,6 +166,7 @@ pub enum CSSLineHeight {
158
166
CSSLineHeightPercentage ( float ) ,
159
167
}
160
168
169
+ #[ deriving( Eq ) ]
161
170
pub enum CSSVerticalAlign {
162
171
CSSVerticalAlignBaseline ,
163
172
CSSVerticalAlignSub ,
@@ -173,13 +182,15 @@ pub enum CSSVerticalAlign {
173
182
174
183
// CSS 2.1, Section 11 - Visual effects
175
184
185
+ #[ deriving( Eq ) ]
176
186
pub enum CSSOverflow {
177
187
CSSOverflowVisible ,
178
188
CSSOverflowHidden ,
179
189
CSSOverflowScroll ,
180
190
CSSOverflowAuto
181
191
}
182
192
193
+ #[ deriving( Eq ) ]
183
194
pub enum CSSVisibility {
184
195
CSSVisibilityVisible ,
185
196
CSSVisibilityHidden ,
@@ -203,23 +214,27 @@ pub enum CSSBackgroundColor {
203
214
CSSBackgroundColorTransparent
204
215
}
205
216
217
+ #[ deriving( Eq ) ]
206
218
pub enum CSSBackgroundImage {
207
219
CSSBackgroundUri ( Url ) ,
208
220
CSSBackgroundImageNone
209
221
}
210
222
223
+ #[ deriving( Eq ) ]
211
224
pub enum CSSBackgroundRepeat {
212
225
CSSBackgroundRepeatRepeat ,
213
226
CSSBackgroundRepeatRepeatX ,
214
227
CSSBackgroundRepeatRepeatY ,
215
228
CSSBackgroundRepeatNoRepeat
216
229
}
217
230
231
+ #[ deriving( Eq ) ]
218
232
pub enum CSSBackgroundAttachment {
219
233
CSSBackgroundAttachmentScroll ,
220
234
CSSBackgroundAttachmentFixed
221
235
}
222
236
237
+ #[ deriving( Eq ) ]
223
238
pub enum CSSBackgroundPosition {
224
239
CSSBackgroundPositionPercentage ( float ) ,
225
240
CSSBackgroundPositionLength ( Length ) ,
@@ -289,6 +304,7 @@ pub enum CSSTextDecoration {
289
304
CSSTextDecorationBlink
290
305
}
291
306
307
+ #[ deriving( Eq ) ]
292
308
pub enum CSSTextTransform {
293
309
CSSTextTransformCapitalize ,
294
310
CSSTextTransformUppercase ,
0 commit comments