Enum style::properties::LonghandId [] [src]

pub enum LonghandId {
    BackgroundColor,
    BackgroundImage,
    BackgroundPositionX,
    BackgroundPositionY,
    BackgroundRepeat,
    BackgroundAttachment,
    BackgroundClip,
    BackgroundOrigin,
    BackgroundSize,
    BorderTopColor,
    BorderTopStyle,
    BorderTopWidth,
    BorderLeftColor,
    BorderLeftStyle,
    BorderLeftWidth,
    BorderBottomColor,
    BorderBottomStyle,
    BorderBottomWidth,
    BorderRightColor,
    BorderRightStyle,
    BorderRightWidth,
    BorderBlockStartColor,
    BorderBlockStartStyle,
    BorderBlockStartWidth,
    BorderBlockEndColor,
    BorderBlockEndStyle,
    BorderBlockEndWidth,
    BorderInlineStartColor,
    BorderInlineStartStyle,
    BorderInlineStartWidth,
    BorderInlineEndColor,
    BorderInlineEndStyle,
    BorderInlineEndWidth,
    BorderTopLeftRadius,
    BorderTopRightRadius,
    BorderBottomRightRadius,
    BorderBottomLeftRadius,
    BorderImageSource,
    BorderImageOutset,
    BorderImageRepeat,
    BorderImageWidth,
    BorderImageSlice,
    Display,
    Position,
    Float,
    Clear,
    ServoDisplayForHypotheticalBox,
    VerticalAlign,
    ServoOverflowClipBox,
    OverflowX,
    OverflowY,
    TransitionDuration,
    TransitionTimingFunction,
    TransitionProperty,
    TransitionDelay,
    AnimationName,
    AnimationDuration,
    AnimationTimingFunction,
    AnimationIterationCount,
    AnimationDirection,
    AnimationPlayState,
    AnimationFillMode,
    AnimationDelay,
    Transform,
    Perspective,
    PerspectiveOrigin,
    BackfaceVisibility,
    TransformStyle,
    TransformOrigin,
    Color,
    ColumnWidth,
    ColumnCount,
    ColumnGap,
    Content,
    CounterIncrement,
    CounterReset,
    Opacity,
    BoxShadow,
    Clip,
    Filter,
    MixBlendMode,
    FontFamily,
    FontStyle,
    FontVariantCaps,
    FontWeight,
    FontSize,
    FontStretch,
    Visibility,
    WritingMode,
    Direction,
    ImageRendering,
    BorderCollapse,
    EmptyCells,
    CaptionSide,
    BorderSpacing,
    LineHeight,
    TextTransform,
    TextIndent,
    OverflowWrap,
    WordBreak,
    TextJustify,
    TextAlign,
    LetterSpacing,
    WordSpacing,
    ServoTextDecorationsInEffect,
    WhiteSpace,
    TextShadow,
    TextRendering,
    ListStylePosition,
    ListStyleType,
    ListStyleImage,
    Quotes,
    MarginTop,
    MarginLeft,
    MarginBottom,
    MarginRight,
    MarginBlockStart,
    MarginBlockEnd,
    MarginInlineStart,
    MarginInlineEnd,
    OutlineColor,
    OutlineStyle,
    OutlineWidth,
    OutlineOffset,
    PaddingTop,
    PaddingLeft,
    PaddingBottom,
    PaddingRight,
    PaddingBlockStart,
    PaddingBlockEnd,
    PaddingInlineStart,
    PaddingInlineEnd,
    Cursor,
    PointerEvents,
    Top,
    Left,
    Bottom,
    Right,
    OffsetBlockStart,
    OffsetBlockEnd,
    OffsetInlineStart,
    OffsetInlineEnd,
    ZIndex,
    FlexDirection,
    FlexWrap,
    JustifyContent,
    AlignContent,
    AlignItems,
    FlexGrow,
    FlexShrink,
    AlignSelf,
    Order,
    FlexBasis,
    Width,
    MinWidth,
    MaxWidth,
    Height,
    MinHeight,
    MaxHeight,
    BlockSize,
    MinBlockSize,
    MaxBlockSize,
    InlineSize,
    MinInlineSize,
    MaxInlineSize,
    BoxSizing,
    TableLayout,
    TextOverflow,
    UnicodeBidi,
    TextDecorationLine,
}

An identifier for a given longhand property.

Variants

background-color

background-image

background-position-x

background-position-y

background-repeat

background-attachment

background-clip

background-origin

background-size

border-top-color

border-top-style

border-top-width

border-left-color

border-left-style

border-left-width

border-bottom-color

border-bottom-style

border-bottom-width

border-right-color

border-right-style

border-right-width

border-block-start-color

border-block-start-style

border-block-start-width

border-block-end-color

border-block-end-style

border-block-end-width

border-inline-start-color

border-inline-start-style

border-inline-start-width

border-inline-end-color

border-inline-end-style

border-inline-end-width

border-top-left-radius

border-top-right-radius

border-bottom-right-radius

border-bottom-left-radius

border-image-source

border-image-outset

border-image-repeat

border-image-width

border-image-slice

display

position

float

clear

-servo-display-for-hypothetical-box

vertical-align

-servo-overflow-clip-box

overflow-x

overflow-y

transition-duration

transition-timing-function

transition-property

transition-delay

animation-name

animation-duration

animation-timing-function

animation-iteration-count

animation-direction

animation-play-state

animation-fill-mode

animation-delay

transform

perspective

perspective-origin

backface-visibility

transform-style

transform-origin

color

column-width

column-count

column-gap

content

counter-increment

counter-reset

opacity

box-shadow

clip

filter

mix-blend-mode

font-family

font-style

font-variant-caps

font-weight

font-size

font-stretch

visibility

writing-mode

direction

image-rendering

border-collapse

empty-cells

caption-side

border-spacing

line-height

text-transform

text-indent

overflow-wrap

word-break

text-justify

text-align

letter-spacing

word-spacing

-servo-text-decorations-in-effect

white-space

text-shadow

text-rendering

list-style-position

list-style-type

list-style-image

quotes

margin-top

margin-left

margin-bottom

margin-right

margin-block-start

margin-block-end

margin-inline-start

margin-inline-end

outline-color

outline-style

outline-width

outline-offset

padding-top

padding-left

padding-bottom

padding-right

padding-block-start

padding-block-end

padding-inline-start

padding-inline-end

cursor

pointer-events

top

left

bottom

right

offset-block-start

offset-block-end

offset-inline-start

offset-inline-end

z-index

flex-direction

flex-wrap

justify-content

align-content

align-items

flex-grow

flex-shrink

align-self

order

flex-basis

width

min-width

max-width

height

min-height

max-height

block-size

min-block-size

max-block-size

inline-size

min-inline-size

max-inline-size

box-sizing

table-layout

text-overflow

unicode-bidi

text-decoration-line

Methods

impl LonghandId
[src]

[src]

Get the name of this longhand property.

[src]

Returns whether this property is animatable.

[src]

Returns whether this property is animatable in a discrete way.

[src]

If this is a logical property, return the corresponding physical one in the given writing mode. Otherwise, return unchanged.

[src]

Returns PropertyFlags for given longhand property.

[src]

Whether computed values of this property lossily convert any complex colors into RGBA colors.

In Gecko, there are some properties still that compute currentcolor down to an RGBA color at computed value time, instead of as StyleComplexColors. For these properties, we must return false, so that we correctly avoid caching style data in the rule tree.

Trait Implementations

impl From<LonghandId> for NonCustomPropertyId
[src]

[src]

Performs the conversion.

impl Clone for LonghandId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for LonghandId
[src]

impl Eq for LonghandId
[src]

impl Hash for LonghandId
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl MallocSizeOf for LonghandId
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for LonghandId
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Debug for LonghandId
[src]

[src]

Formats the value using the given formatter. Read more