#[repr(u16)]
pub enum LonghandId {
Show 191 variants AlignContent, AlignItems, AlignSelf, AspectRatio, BackfaceVisibility, BaselineSource, BorderCollapse, BorderImageRepeat, BoxSizing, CaptionSide, Clear, ColumnCount, ColumnSpan, ContainerType, Direction, Display, EmptyCells, FlexDirection, FlexWrap, Float, FontLanguageOverride, FontStretch, FontStyle, FontVariantCaps, FontWeight, ImageRendering, JustifyContent, ListStylePosition, ListStyleType, MixBlendMode, Opacity, Order, OutlineStyle, OverflowWrap, PointerEvents, Position, ServoOverflowClipBox, ServoTopLayer, TableLayout, TextAlign, TextAlignLast, TextDecorationLine, TextDecorationStyle, TextJustify, TextRendering, TextTransform, TransformStyle, UnicodeBidi, Visibility, WhiteSpace, WordBreak, WritingMode, ZIndex, FlexGrow, FlexShrink, OverflowBlock, OverflowInline, OverflowX, OverflowY, BorderBlockEndStyle, BorderBlockStartStyle, BorderBottomStyle, BorderInlineEndStyle, BorderInlineStartStyle, BorderLeftStyle, BorderRightStyle, BorderTopStyle, AnimationComposition, AnimationDelay, AnimationDirection, AnimationDuration, AnimationFillMode, AnimationIterationCount, AnimationName, AnimationPlayState, AnimationTimeline, AnimationTimingFunction, BackgroundAttachment, BackgroundClip, BackgroundImage, BackgroundOrigin, BackgroundPositionX, BackgroundPositionY, BackgroundRepeat, BackgroundSize, BorderImageOutset, BorderImageSlice, BorderImageWidth, BorderSpacing, BoxShadow, Clip, Color, ColumnGap, ColumnWidth, ContainerName, Content, CounterIncrement, CounterReset, Cursor, Filter, FlexBasis, FontFamily, FontSize, LetterSpacing, LineHeight, OutlineOffset, Perspective, PerspectiveOrigin, Quotes, Rotate, Scale, TextIndent, TextOverflow, TextShadow, Transform, TransformOrigin, TransitionBehavior, TransitionDelay, TransitionDuration, TransitionProperty, TransitionTimingFunction, Translate, VerticalAlign, WordSpacing, XLang, BorderImageSource, ListStyleImage, MaxBlockSize, MaxHeight, MaxInlineSize, MaxWidth, BorderBottomLeftRadius, BorderBottomRightRadius, BorderEndEndRadius, BorderEndStartRadius, BorderStartEndRadius, BorderStartStartRadius, BorderTopLeftRadius, BorderTopRightRadius, PaddingBlockEnd, PaddingBlockStart, PaddingBottom, PaddingInlineEnd, PaddingInlineStart, PaddingLeft, PaddingRight, PaddingTop, BlockSize, Height, InlineSize, MinBlockSize, MinHeight, MinInlineSize, MinWidth, Width, BorderBlockEndWidth, BorderBlockStartWidth, BorderBottomWidth, BorderInlineEndWidth, BorderInlineStartWidth, BorderLeftWidth, BorderRightWidth, BorderTopWidth, OutlineWidth, BackgroundColor, BorderBlockEndColor, BorderBlockStartColor, BorderBottomColor, BorderInlineEndColor, BorderInlineStartColor, BorderLeftColor, BorderRightColor, BorderTopColor, OutlineColor, TextDecorationColor, Bottom, InsetBlockEnd, InsetBlockStart, InsetInlineEnd, InsetInlineStart, Left, MarginBlockEnd, MarginBlockStart, MarginBottom, MarginInlineEnd, MarginInlineStart, MarginLeft, MarginRight, MarginTop, Right, Top,
}
Expand description

An identifier for a given longhand property.

Variants§

§

AlignContent

align-content

§

AlignItems

align-items

§

AlignSelf

align-self

§

AspectRatio

aspect-ratio

§

BackfaceVisibility

backface-visibility

§

BaselineSource

baseline-source

§

BorderCollapse

border-collapse

§

BorderImageRepeat

border-image-repeat

§

BoxSizing

box-sizing

§

CaptionSide

caption-side

§

Clear

clear

§

ColumnCount

column-count

§

ColumnSpan

column-span

§

ContainerType

container-type

§

Direction

direction

§

Display

display

§

EmptyCells

empty-cells

§

FlexDirection

flex-direction

§

FlexWrap

flex-wrap

§

Float

float

§

FontLanguageOverride

font-language-override

§

FontStretch

font-stretch

§

FontStyle

font-style

§

FontVariantCaps

font-variant-caps

§

FontWeight

font-weight

§

ImageRendering

image-rendering

§

JustifyContent

justify-content

§

ListStylePosition

list-style-position

§

ListStyleType

list-style-type

§

MixBlendMode

mix-blend-mode

§

Opacity

opacity

§

Order

order

§

OutlineStyle

outline-style

§

OverflowWrap

overflow-wrap

§

PointerEvents

pointer-events

§

Position

position

§

ServoOverflowClipBox

-servo-overflow-clip-box

§

ServoTopLayer

-servo-top-layer

§

TableLayout

table-layout

§

TextAlign

text-align

§

TextAlignLast

text-align-last

§

TextDecorationLine

text-decoration-line

§

TextDecorationStyle

text-decoration-style

§

TextJustify

text-justify

§

TextRendering

text-rendering

§

TextTransform

text-transform

§

TransformStyle

transform-style

§

UnicodeBidi

unicode-bidi

§

Visibility

visibility

§

WhiteSpace

white-space

§

WordBreak

word-break

§

WritingMode

writing-mode

§

ZIndex

z-index

§

FlexGrow

flex-grow

§

FlexShrink

flex-shrink

§

OverflowBlock

overflow-block

§

OverflowInline

overflow-inline

§

OverflowX

overflow-x

§

OverflowY

overflow-y

§

BorderBlockEndStyle

border-block-end-style

§

BorderBlockStartStyle

border-block-start-style

§

BorderBottomStyle

border-bottom-style

§

BorderInlineEndStyle

border-inline-end-style

§

BorderInlineStartStyle

border-inline-start-style

§

BorderLeftStyle

border-left-style

§

BorderRightStyle

border-right-style

§

BorderTopStyle

border-top-style

§

AnimationComposition

animation-composition

§

AnimationDelay

animation-delay

§

AnimationDirection

animation-direction

§

AnimationDuration

animation-duration

§

AnimationFillMode

animation-fill-mode

§

AnimationIterationCount

animation-iteration-count

§

AnimationName

animation-name

§

AnimationPlayState

animation-play-state

§

AnimationTimeline

animation-timeline

§

AnimationTimingFunction

animation-timing-function

§

BackgroundAttachment

background-attachment

§

BackgroundClip

background-clip

§

BackgroundImage

background-image

§

BackgroundOrigin

background-origin

§

BackgroundPositionX

background-position-x

§

BackgroundPositionY

background-position-y

§

BackgroundRepeat

background-repeat

§

BackgroundSize

background-size

§

BorderImageOutset

border-image-outset

§

BorderImageSlice

border-image-slice

§

BorderImageWidth

border-image-width

§

BorderSpacing

border-spacing

§

BoxShadow

box-shadow

§

Clip

clip

§

Color

color

§

ColumnGap

column-gap

§

ColumnWidth

column-width

§

ContainerName

container-name

§

Content

content

§

CounterIncrement

counter-increment

§

CounterReset

counter-reset

§

Cursor

cursor

§

Filter

filter

§

FlexBasis

flex-basis

§

FontFamily

font-family

§

FontSize

font-size

§

LetterSpacing

letter-spacing

§

LineHeight

line-height

§

OutlineOffset

outline-offset

§

Perspective

perspective

§

PerspectiveOrigin

perspective-origin

§

Quotes

quotes

§

Rotate

rotate

§

Scale

scale

§

TextIndent

text-indent

§

TextOverflow

text-overflow

§

TextShadow

text-shadow

§

Transform

transform

§

TransformOrigin

transform-origin

§

TransitionBehavior

transition-behavior

§

TransitionDelay

transition-delay

§

TransitionDuration

transition-duration

§

TransitionProperty

transition-property

§

TransitionTimingFunction

transition-timing-function

§

Translate

translate

§

VerticalAlign

vertical-align

§

WordSpacing

word-spacing

§

XLang

-x-lang

§

BorderImageSource

border-image-source

§

ListStyleImage

list-style-image

§

MaxBlockSize

max-block-size

§

MaxHeight

max-height

§

MaxInlineSize

max-inline-size

§

MaxWidth

max-width

§

BorderBottomLeftRadius

border-bottom-left-radius

§

BorderBottomRightRadius

border-bottom-right-radius

§

BorderEndEndRadius

border-end-end-radius

§

BorderEndStartRadius

border-end-start-radius

§

BorderStartEndRadius

border-start-end-radius

§

BorderStartStartRadius

border-start-start-radius

§

BorderTopLeftRadius

border-top-left-radius

§

BorderTopRightRadius

border-top-right-radius

§

PaddingBlockEnd

padding-block-end

§

PaddingBlockStart

padding-block-start

§

PaddingBottom

padding-bottom

§

PaddingInlineEnd

padding-inline-end

§

PaddingInlineStart

padding-inline-start

§

PaddingLeft

padding-left

§

PaddingRight

padding-right

§

PaddingTop

padding-top

§

BlockSize

block-size

§

Height

height

§

InlineSize

inline-size

§

MinBlockSize

min-block-size

§

MinHeight

min-height

§

MinInlineSize

min-inline-size

§

MinWidth

min-width

§

Width

width

§

BorderBlockEndWidth

border-block-end-width

§

BorderBlockStartWidth

border-block-start-width

§

BorderBottomWidth

border-bottom-width

§

BorderInlineEndWidth

border-inline-end-width

§

BorderInlineStartWidth

border-inline-start-width

§

BorderLeftWidth

border-left-width

§

BorderRightWidth

border-right-width

§

BorderTopWidth

border-top-width

§

OutlineWidth

outline-width

§

BackgroundColor

background-color

§

BorderBlockEndColor

border-block-end-color

§

BorderBlockStartColor

border-block-start-color

§

BorderBottomColor

border-bottom-color

§

BorderInlineEndColor

border-inline-end-color

§

BorderInlineStartColor

border-inline-start-color

§

BorderLeftColor

border-left-color

§

BorderRightColor

border-right-color

§

BorderTopColor

border-top-color

§

OutlineColor

outline-color

§

TextDecorationColor

text-decoration-color

§

Bottom

bottom

§

InsetBlockEnd

inset-block-end

§

InsetBlockStart

inset-block-start

§

InsetInlineEnd

inset-inline-end

§

InsetInlineStart

inset-inline-start

§

Left

left

§

MarginBlockEnd

margin-block-end

§

MarginBlockStart

margin-block-start

§

MarginBottom

margin-bottom

§

MarginInlineEnd

margin-inline-end

§

MarginInlineStart

margin-inline-start

§

MarginLeft

margin-left

§

MarginRight

margin-right

§

MarginTop

margin-top

§

Right

right

§

Top

top

Implementations§

source§

impl LonghandId

source

pub fn shorthands(self) -> NonCustomPropertyIterator<ShorthandId>

Returns an iterator over all the shorthands that include this longhand.

source

pub(super) fn parse_value<'i, 't>( self, context: &ParserContext<'_>, input: &mut Parser<'i, 't> ) -> Result<PropertyDeclaration, ParseError<'i>>

source

pub fn is_transitionable(self) -> bool

Returns whether this property is transitionable.

source

fn logical_mapping_data(self) -> Option<&'static LogicalMappingData>

Return the relevant data to map a particular logical property into physical.

source

pub fn to_physical(self, wm: WritingMode) -> Self

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

source

pub fn logical_group(self) -> Option<LogicalGroupId>

Return the logical group of this longhand property.

source

pub fn flags(self) -> PropertyFlags

Returns PropertyFlags for given longhand property.

source§

impl LonghandId

source

pub fn name(&self) -> &'static str

Get the name of this longhand property.

source

pub fn inherited(self) -> bool

Returns whether the longhand property is inherited by default.

source

pub fn ignored_when_document_colors_disabled(self) -> bool

Returns true if the property is one that is ignored when document colors are disabled.

source

pub fn is_or_is_longhand_of(self, non_custom: NonCustomPropertyId) -> bool

Returns whether this longhand is non_custom or is a longhand of it.

source

pub fn is_longhand_of(self, shorthand: ShorthandId) -> bool

Returns whether this longhand is a longhand of shorthand.

source

pub fn is_animatable(self) -> bool

Returns whether this property is animatable.

source

pub fn is_discrete_animatable(self) -> bool

Returns whether this property is animatable in a discrete way.

source

pub fn is_logical(self) -> bool

Return whether this property is logical.

Trait Implementations§

source§

impl Clone for LonghandId

source§

fn clone(&self) -> LonghandId

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LonghandId

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<LonghandId> for NonCustomPropertyId

source§

fn from(id: LonghandId) -> Self

Converts to this type from the input type.
source§

impl Hash for LonghandId

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl MallocSizeOf for LonghandId

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

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

impl PartialEq<LonghandId> for LonghandId

source§

fn eq(&self, other: &LonghandId) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToComputedValue for LonghandId

§

type ComputedValue = LonghandId

The computed value type we’re going to be converted to.
source§

fn from_computed_value(from: &Self::ComputedValue) -> Self

Convert a computed value to specified value form. Read more
source§

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
source§

impl ToCss for LonghandId

source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere W: Write,

Serialize self in CSS syntax, writing to dest.
source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
source§

impl ToResolvedValue for LonghandId

§

type ResolvedValue = LonghandId

The resolved value type we’re going to be converted to.
source§

fn from_resolved_value(from: Self::ResolvedValue) -> Self

Convert a resolved value to resolved value form.
source§

fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue

Convert a resolved value to a resolved value.
source§

impl ToShmem for LonghandId

source§

fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> Result<Self>

Clones this value into a form suitable for writing into a SharedMemoryBuilder. Read more
source§

impl Copy for LonghandId

source§

impl Eq for LonghandId

source§

impl StructuralEq for LonghandId

source§

impl StructuralPartialEq for LonghandId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Erased for T

source§

impl<T> ErasedDestructor for Twhere T: 'static,

source§

impl<T> MaybeSendSync for T