#[repr(u16)]
pub enum LonghandId {
Show 193 variants AlignContent = 0, AlignItems = 1, AlignSelf = 2, AspectRatio = 3, BackfaceVisibility = 4, BaselineSource = 5, BorderCollapse = 6, BorderImageRepeat = 7, BoxSizing = 8, CaptionSide = 9, Clear = 10, ColumnCount = 11, ColumnSpan = 12, ContainerType = 13, Direction = 14, Display = 15, EmptyCells = 16, FlexDirection = 17, FlexWrap = 18, Float = 19, FontLanguageOverride = 20, FontStretch = 21, FontStyle = 22, FontVariantCaps = 23, FontWeight = 24, ImageRendering = 25, JustifyContent = 26, ListStylePosition = 27, ListStyleType = 28, MixBlendMode = 29, Opacity = 30, Order = 31, OutlineStyle = 32, OverflowWrap = 33, PointerEvents = 34, Position = 35, ServoOverflowClipBox = 36, ServoTopLayer = 37, TableLayout = 38, TextAlign = 39, TextAlignLast = 40, TextDecorationLine = 41, TextDecorationStyle = 42, TextJustify = 43, TextRendering = 44, TextTransform = 45, TextWrapMode = 46, TransformStyle = 47, UnicodeBidi = 48, Visibility = 49, WhiteSpaceCollapse = 50, WordBreak = 51, WritingMode = 52, ZIndex = 53, Zoom = 54, FlexGrow = 55, FlexShrink = 56, OverflowBlock = 57, OverflowInline = 58, OverflowX = 59, OverflowY = 60, BorderBlockEndStyle = 61, BorderBlockStartStyle = 62, BorderBottomStyle = 63, BorderInlineEndStyle = 64, BorderInlineStartStyle = 65, BorderLeftStyle = 66, BorderRightStyle = 67, BorderTopStyle = 68, AnimationComposition = 69, AnimationDelay = 70, AnimationDirection = 71, AnimationDuration = 72, AnimationFillMode = 73, AnimationIterationCount = 74, AnimationName = 75, AnimationPlayState = 76, AnimationTimeline = 77, AnimationTimingFunction = 78, BackgroundAttachment = 79, BackgroundClip = 80, BackgroundImage = 81, BackgroundOrigin = 82, BackgroundPositionX = 83, BackgroundPositionY = 84, BackgroundRepeat = 85, BackgroundSize = 86, BorderImageOutset = 87, BorderImageSlice = 88, BorderImageWidth = 89, BorderSpacing = 90, BoxShadow = 91, Clip = 92, Color = 93, ColumnGap = 94, ColumnWidth = 95, ContainerName = 96, Content = 97, CounterIncrement = 98, CounterReset = 99, Cursor = 100, Filter = 101, FlexBasis = 102, FontFamily = 103, FontSize = 104, LetterSpacing = 105, LineHeight = 106, OutlineOffset = 107, Perspective = 108, PerspectiveOrigin = 109, Quotes = 110, Rotate = 111, Scale = 112, TextIndent = 113, TextOverflow = 114, TextShadow = 115, Transform = 116, TransformOrigin = 117, TransitionBehavior = 118, TransitionDelay = 119, TransitionDuration = 120, TransitionProperty = 121, TransitionTimingFunction = 122, Translate = 123, VerticalAlign = 124, WordSpacing = 125, XLang = 126, BorderImageSource = 127, ListStyleImage = 128, MaxBlockSize = 129, MaxHeight = 130, MaxInlineSize = 131, MaxWidth = 132, BorderBottomLeftRadius = 133, BorderBottomRightRadius = 134, BorderEndEndRadius = 135, BorderEndStartRadius = 136, BorderStartEndRadius = 137, BorderStartStartRadius = 138, BorderTopLeftRadius = 139, BorderTopRightRadius = 140, PaddingBlockEnd = 141, PaddingBlockStart = 142, PaddingBottom = 143, PaddingInlineEnd = 144, PaddingInlineStart = 145, PaddingLeft = 146, PaddingRight = 147, PaddingTop = 148, BlockSize = 149, Height = 150, InlineSize = 151, MinBlockSize = 152, MinHeight = 153, MinInlineSize = 154, MinWidth = 155, Width = 156, BorderBlockEndWidth = 157, BorderBlockStartWidth = 158, BorderBottomWidth = 159, BorderInlineEndWidth = 160, BorderInlineStartWidth = 161, BorderLeftWidth = 162, BorderRightWidth = 163, BorderTopWidth = 164, OutlineWidth = 165, BackgroundColor = 166, BorderBlockEndColor = 167, BorderBlockStartColor = 168, BorderBottomColor = 169, BorderInlineEndColor = 170, BorderInlineStartColor = 171, BorderLeftColor = 172, BorderRightColor = 173, BorderTopColor = 174, OutlineColor = 175, TextDecorationColor = 176, Bottom = 177, InsetBlockEnd = 178, InsetBlockStart = 179, InsetInlineEnd = 180, InsetInlineStart = 181, Left = 182, MarginBlockEnd = 183, MarginBlockStart = 184, MarginBottom = 185, MarginInlineEnd = 186, MarginInlineStart = 187, MarginLeft = 188, MarginRight = 189, MarginTop = 190, Right = 191, Top = 192,
}
Expand description

An identifier for a given longhand property.

Variants§

§

AlignContent = 0

align-content

§

AlignItems = 1

align-items

§

AlignSelf = 2

align-self

§

AspectRatio = 3

aspect-ratio

§

BackfaceVisibility = 4

backface-visibility

§

BaselineSource = 5

baseline-source

§

BorderCollapse = 6

border-collapse

§

BorderImageRepeat = 7

border-image-repeat

§

BoxSizing = 8

box-sizing

§

CaptionSide = 9

caption-side

§

Clear = 10

clear

§

ColumnCount = 11

column-count

§

ColumnSpan = 12

column-span

§

ContainerType = 13

container-type

§

Direction = 14

direction

§

Display = 15

display

§

EmptyCells = 16

empty-cells

§

FlexDirection = 17

flex-direction

§

FlexWrap = 18

flex-wrap

§

Float = 19

float

§

FontLanguageOverride = 20

font-language-override

§

FontStretch = 21

font-stretch

§

FontStyle = 22

font-style

§

FontVariantCaps = 23

font-variant-caps

§

FontWeight = 24

font-weight

§

ImageRendering = 25

image-rendering

§

JustifyContent = 26

justify-content

§

ListStylePosition = 27

list-style-position

§

ListStyleType = 28

list-style-type

§

MixBlendMode = 29

mix-blend-mode

§

Opacity = 30

opacity

§

Order = 31

order

§

OutlineStyle = 32

outline-style

§

OverflowWrap = 33

overflow-wrap

§

PointerEvents = 34

pointer-events

§

Position = 35

position

§

ServoOverflowClipBox = 36

-servo-overflow-clip-box

§

ServoTopLayer = 37

-servo-top-layer

§

TableLayout = 38

table-layout

§

TextAlign = 39

text-align

§

TextAlignLast = 40

text-align-last

§

TextDecorationLine = 41

text-decoration-line

§

TextDecorationStyle = 42

text-decoration-style

§

TextJustify = 43

text-justify

§

TextRendering = 44

text-rendering

§

TextTransform = 45

text-transform

§

TextWrapMode = 46

text-wrap-mode

§

TransformStyle = 47

transform-style

§

UnicodeBidi = 48

unicode-bidi

§

Visibility = 49

visibility

§

WhiteSpaceCollapse = 50

white-space-collapse

§

WordBreak = 51

word-break

§

WritingMode = 52

writing-mode

§

ZIndex = 53

z-index

§

Zoom = 54

zoom

§

FlexGrow = 55

flex-grow

§

FlexShrink = 56

flex-shrink

§

OverflowBlock = 57

overflow-block

§

OverflowInline = 58

overflow-inline

§

OverflowX = 59

overflow-x

§

OverflowY = 60

overflow-y

§

BorderBlockEndStyle = 61

border-block-end-style

§

BorderBlockStartStyle = 62

border-block-start-style

§

BorderBottomStyle = 63

border-bottom-style

§

BorderInlineEndStyle = 64

border-inline-end-style

§

BorderInlineStartStyle = 65

border-inline-start-style

§

BorderLeftStyle = 66

border-left-style

§

BorderRightStyle = 67

border-right-style

§

BorderTopStyle = 68

border-top-style

§

AnimationComposition = 69

animation-composition

§

AnimationDelay = 70

animation-delay

§

AnimationDirection = 71

animation-direction

§

AnimationDuration = 72

animation-duration

§

AnimationFillMode = 73

animation-fill-mode

§

AnimationIterationCount = 74

animation-iteration-count

§

AnimationName = 75

animation-name

§

AnimationPlayState = 76

animation-play-state

§

AnimationTimeline = 77

animation-timeline

§

AnimationTimingFunction = 78

animation-timing-function

§

BackgroundAttachment = 79

background-attachment

§

BackgroundClip = 80

background-clip

§

BackgroundImage = 81

background-image

§

BackgroundOrigin = 82

background-origin

§

BackgroundPositionX = 83

background-position-x

§

BackgroundPositionY = 84

background-position-y

§

BackgroundRepeat = 85

background-repeat

§

BackgroundSize = 86

background-size

§

BorderImageOutset = 87

border-image-outset

§

BorderImageSlice = 88

border-image-slice

§

BorderImageWidth = 89

border-image-width

§

BorderSpacing = 90

border-spacing

§

BoxShadow = 91

box-shadow

§

Clip = 92

clip

§

Color = 93

color

§

ColumnGap = 94

column-gap

§

ColumnWidth = 95

column-width

§

ContainerName = 96

container-name

§

Content = 97

content

§

CounterIncrement = 98

counter-increment

§

CounterReset = 99

counter-reset

§

Cursor = 100

cursor

§

Filter = 101

filter

§

FlexBasis = 102

flex-basis

§

FontFamily = 103

font-family

§

FontSize = 104

font-size

§

LetterSpacing = 105

letter-spacing

§

LineHeight = 106

line-height

§

OutlineOffset = 107

outline-offset

§

Perspective = 108

perspective

§

PerspectiveOrigin = 109

perspective-origin

§

Quotes = 110

quotes

§

Rotate = 111

rotate

§

Scale = 112

scale

§

TextIndent = 113

text-indent

§

TextOverflow = 114

text-overflow

§

TextShadow = 115

text-shadow

§

Transform = 116

transform

§

TransformOrigin = 117

transform-origin

§

TransitionBehavior = 118

transition-behavior

§

TransitionDelay = 119

transition-delay

§

TransitionDuration = 120

transition-duration

§

TransitionProperty = 121

transition-property

§

TransitionTimingFunction = 122

transition-timing-function

§

Translate = 123

translate

§

VerticalAlign = 124

vertical-align

§

WordSpacing = 125

word-spacing

§

XLang = 126

-x-lang

§

BorderImageSource = 127

border-image-source

§

ListStyleImage = 128

list-style-image

§

MaxBlockSize = 129

max-block-size

§

MaxHeight = 130

max-height

§

MaxInlineSize = 131

max-inline-size

§

MaxWidth = 132

max-width

§

BorderBottomLeftRadius = 133

border-bottom-left-radius

§

BorderBottomRightRadius = 134

border-bottom-right-radius

§

BorderEndEndRadius = 135

border-end-end-radius

§

BorderEndStartRadius = 136

border-end-start-radius

§

BorderStartEndRadius = 137

border-start-end-radius

§

BorderStartStartRadius = 138

border-start-start-radius

§

BorderTopLeftRadius = 139

border-top-left-radius

§

BorderTopRightRadius = 140

border-top-right-radius

§

PaddingBlockEnd = 141

padding-block-end

§

PaddingBlockStart = 142

padding-block-start

§

PaddingBottom = 143

padding-bottom

§

PaddingInlineEnd = 144

padding-inline-end

§

PaddingInlineStart = 145

padding-inline-start

§

PaddingLeft = 146

padding-left

§

PaddingRight = 147

padding-right

§

PaddingTop = 148

padding-top

§

BlockSize = 149

block-size

§

Height = 150

height

§

InlineSize = 151

inline-size

§

MinBlockSize = 152

min-block-size

§

MinHeight = 153

min-height

§

MinInlineSize = 154

min-inline-size

§

MinWidth = 155

min-width

§

Width = 156

width

§

BorderBlockEndWidth = 157

border-block-end-width

§

BorderBlockStartWidth = 158

border-block-start-width

§

BorderBottomWidth = 159

border-bottom-width

§

BorderInlineEndWidth = 160

border-inline-end-width

§

BorderInlineStartWidth = 161

border-inline-start-width

§

BorderLeftWidth = 162

border-left-width

§

BorderRightWidth = 163

border-right-width

§

BorderTopWidth = 164

border-top-width

§

OutlineWidth = 165

outline-width

§

BackgroundColor = 166

background-color

§

BorderBlockEndColor = 167

border-block-end-color

§

BorderBlockStartColor = 168

border-block-start-color

§

BorderBottomColor = 169

border-bottom-color

§

BorderInlineEndColor = 170

border-inline-end-color

§

BorderInlineStartColor = 171

border-inline-start-color

§

BorderLeftColor = 172

border-left-color

§

BorderRightColor = 173

border-right-color

§

BorderTopColor = 174

border-top-color

§

OutlineColor = 175

outline-color

§

TextDecorationColor = 176

text-decoration-color

§

Bottom = 177

bottom

§

InsetBlockEnd = 178

inset-block-end

§

InsetBlockStart = 179

inset-block-start

§

InsetInlineEnd = 180

inset-inline-end

§

InsetInlineStart = 181

inset-inline-start

§

Left = 182

left

§

MarginBlockEnd = 183

margin-block-end

§

MarginBlockStart = 184

margin-block-start

§

MarginBottom = 185

margin-bottom

§

MarginInlineEnd = 186

margin-inline-end

§

MarginInlineStart = 187

margin-inline-start

§

MarginLeft = 188

margin-left

§

MarginRight = 189

margin-right

§

MarginTop = 190

margin-top

§

Right = 191

right

§

Top = 192

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 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>) -> Result
where 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 StructuralPartialEq for LonghandId

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 Q
where 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 Q
where 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 T
where 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>> for T

source§

fn maybe_boxed(self) -> Box<T>

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 for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T