Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Derive Eq on all values #21

Merged
merged 1 commit into from
Jul 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub enum CSSMargin {
CSSMarginAuto
}

#[deriving(Eq)]
pub enum CSSPadding {
CSSPaddingLength(Length),
CSSPaddingPercentage(float)
Expand All @@ -51,11 +52,13 @@ pub enum CSSBorderWidth {
CSSBorderWidthLength(Length)
}

#[deriving(Eq)]
pub enum CSSBorderColor {
CSSBorderColorColor(Color),
CSSBorderColorTransparent
}

#[deriving(Eq)]
pub enum CSSBorderStyle {
CSSBorderStyleNone,
CSSBorderStyleHidden,
Expand Down Expand Up @@ -98,24 +101,28 @@ pub enum CSSPosition {
CSSPositionFixed
}

#[deriving(Eq)]
pub enum CSSTop {
CSSTopLength(Length),
CSSTopPercentage,
CSSTopAuto
}

#[deriving(Eq)]
pub enum CSSRight {
CSSRightLength(Length),
CSSRightPercentage(float),
CSSRightAuto
}

#[deriving(Eq)]
pub enum CSSBottom {
CSSBottomLength(Length),
CSSBottomPercentage(float),
CSSBottomAuto
}

#[deriving(Eq)]
pub enum CSSLeft {
CSSLeftLength(Length),
CSSLeftPercentage(float),
Expand All @@ -129,6 +136,7 @@ pub enum CSSFloat {
CSSFloatNone
}

#[deriving(Eq)]
pub enum CSSDirection {
CSSDirectionLtr,
CSSDirectionRtl
Expand Down Expand Up @@ -158,6 +166,7 @@ pub enum CSSLineHeight {
CSSLineHeightPercentage(float),
}

#[deriving(Eq)]
pub enum CSSVerticalAlign {
CSSVerticalAlignBaseline,
CSSVerticalAlignSub,
Expand All @@ -173,13 +182,15 @@ pub enum CSSVerticalAlign {

// CSS 2.1, Section 11 - Visual effects

#[deriving(Eq)]
pub enum CSSOverflow {
CSSOverflowVisible,
CSSOverflowHidden,
CSSOverflowScroll,
CSSOverflowAuto
}

#[deriving(Eq)]
pub enum CSSVisibility {
CSSVisibilityVisible,
CSSVisibilityHidden,
Expand All @@ -203,23 +214,27 @@ pub enum CSSBackgroundColor {
CSSBackgroundColorTransparent
}

#[deriving(Eq)]
pub enum CSSBackgroundImage {
CSSBackgroundUri(Url),
CSSBackgroundImageNone
}

#[deriving(Eq)]
pub enum CSSBackgroundRepeat {
CSSBackgroundRepeatRepeat,
CSSBackgroundRepeatRepeatX,
CSSBackgroundRepeatRepeatY,
CSSBackgroundRepeatNoRepeat
}

#[deriving(Eq)]
pub enum CSSBackgroundAttachment {
CSSBackgroundAttachmentScroll,
CSSBackgroundAttachmentFixed
}

#[deriving(Eq)]
pub enum CSSBackgroundPosition {
CSSBackgroundPositionPercentage(float),
CSSBackgroundPositionLength(Length),
Expand Down Expand Up @@ -289,6 +304,7 @@ pub enum CSSTextDecoration {
CSSTextDecorationBlink
}

#[deriving(Eq)]
pub enum CSSTextTransform {
CSSTextTransformCapitalize,
CSSTextTransformUppercase,
Expand Down