style::properties::generated

Enum LonghandId

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

§

Contain = 13

contain

§

ContainerType = 14

container-type

§

Direction = 15

direction

§

Display = 16

display

§

EmptyCells = 17

empty-cells

§

FlexDirection = 18

flex-direction

§

FlexWrap = 19

flex-wrap

§

Float = 20

float

§

FontLanguageOverride = 21

font-language-override

§

FontStretch = 22

font-stretch

§

FontStyle = 23

font-style

§

FontVariantCaps = 24

font-variant-caps

§

FontWeight = 25

font-weight

§

GridAutoFlow = 26

grid-auto-flow

§

ImageRendering = 27

image-rendering

§

Isolation = 28

isolation

§

JustifyContent = 29

justify-content

§

JustifyItems = 30

justify-items

§

JustifySelf = 31

justify-self

§

ListStylePosition = 32

list-style-position

§

ListStyleType = 33

list-style-type

§

MixBlendMode = 34

mix-blend-mode

§

ObjectFit = 35

object-fit

§

Opacity = 36

opacity

§

Order = 37

order

§

OutlineStyle = 38

outline-style

§

OverflowWrap = 39

overflow-wrap

§

PointerEvents = 40

pointer-events

§

Position = 41

position

§

ServoOverflowClipBox = 42

-servo-overflow-clip-box

§

ServoTopLayer = 43

-servo-top-layer

§

TableLayout = 44

table-layout

§

TextAlign = 45

text-align

§

TextAlignLast = 46

text-align-last

§

TextDecorationLine = 47

text-decoration-line

§

TextDecorationStyle = 48

text-decoration-style

§

TextJustify = 49

text-justify

§

TextRendering = 50

text-rendering

§

TextTransform = 51

text-transform

§

TextWrapMode = 52

text-wrap-mode

§

TransformStyle = 53

transform-style

§

UnicodeBidi = 54

unicode-bidi

§

Visibility = 55

visibility

§

WhiteSpaceCollapse = 56

white-space-collapse

§

WordBreak = 57

word-break

§

WritingMode = 58

writing-mode

§

ZIndex = 59

z-index

§

Zoom = 60

zoom

§

FlexGrow = 61

flex-grow

§

FlexShrink = 62

flex-shrink

§

OverflowBlock = 63

overflow-block

§

OverflowInline = 64

overflow-inline

§

OverflowX = 65

overflow-x

§

OverflowY = 66

overflow-y

§

BorderBlockEndStyle = 67

border-block-end-style

§

BorderBlockStartStyle = 68

border-block-start-style

§

BorderBottomStyle = 69

border-bottom-style

§

BorderInlineEndStyle = 70

border-inline-end-style

§

BorderInlineStartStyle = 71

border-inline-start-style

§

BorderLeftStyle = 72

border-left-style

§

BorderRightStyle = 73

border-right-style

§

BorderTopStyle = 74

border-top-style

§

AnimationComposition = 75

animation-composition

§

AnimationDelay = 76

animation-delay

§

AnimationDirection = 77

animation-direction

§

AnimationDuration = 78

animation-duration

§

AnimationFillMode = 79

animation-fill-mode

§

AnimationIterationCount = 80

animation-iteration-count

§

AnimationName = 81

animation-name

§

AnimationPlayState = 82

animation-play-state

§

AnimationTimeline = 83

animation-timeline

§

AnimationTimingFunction = 84

animation-timing-function

§

BackdropFilter = 85

backdrop-filter

§

BackgroundAttachment = 86

background-attachment

§

BackgroundClip = 87

background-clip

§

BackgroundImage = 88

background-image

§

BackgroundOrigin = 89

background-origin

§

BackgroundPositionX = 90

background-position-x

§

BackgroundPositionY = 91

background-position-y

§

BackgroundRepeat = 92

background-repeat

§

BackgroundSize = 93

background-size

§

BorderImageOutset = 94

border-image-outset

§

BorderImageSlice = 95

border-image-slice

§

BorderImageWidth = 96

border-image-width

§

BorderSpacing = 97

border-spacing

§

BoxShadow = 98

box-shadow

§

Clip = 99

clip

§

ClipPath = 100

clip-path

§

Color = 101

color

§

ColorScheme = 102

color-scheme

§

ColumnWidth = 103

column-width

§

ContainerName = 104

container-name

§

Content = 105

content

§

CounterIncrement = 106

counter-increment

§

CounterReset = 107

counter-reset

§

Cursor = 108

cursor

§

Filter = 109

filter

§

FlexBasis = 110

flex-basis

§

FontFamily = 111

font-family

§

FontSize = 112

font-size

§

FontVariationSettings = 113

font-variation-settings

§

GridTemplateAreas = 114

grid-template-areas

§

LetterSpacing = 115

letter-spacing

§

LineHeight = 116

line-height

§

MaskImage = 117

mask-image

§

OffsetPath = 118

offset-path

§

Perspective = 119

perspective

§

Quotes = 120

quotes

§

Rotate = 121

rotate

§

Scale = 122

scale

§

TextIndent = 123

text-indent

§

TextOverflow = 124

text-overflow

§

TextShadow = 125

text-shadow

§

Transform = 126

transform

§

TransformOrigin = 127

transform-origin

§

TransitionBehavior = 128

transition-behavior

§

TransitionDelay = 129

transition-delay

§

TransitionDuration = 130

transition-duration

§

TransitionProperty = 131

transition-property

§

TransitionTimingFunction = 132

transition-timing-function

§

Translate = 133

translate

§

VerticalAlign = 134

vertical-align

§

ViewTransitionName = 135

view-transition-name

§

WillChange = 136

will-change

§

WordSpacing = 137

word-spacing

§

XLang = 138

-x-lang

§

BorderImageSource = 139

border-image-source

§

ListStyleImage = 140

list-style-image

§

ObjectPosition = 141

object-position

§

PerspectiveOrigin = 142

perspective-origin

§

GridTemplateColumns = 143

grid-template-columns

§

GridTemplateRows = 144

grid-template-rows

§

GridAutoColumns = 145

grid-auto-columns

§

GridAutoRows = 146

grid-auto-rows

§

OutlineOffset = 147

outline-offset

§

OverflowClipMargin = 148

overflow-clip-margin

§

ColumnGap = 149

column-gap

§

RowGap = 150

row-gap

§

GridColumnEnd = 151

grid-column-end

§

GridColumnStart = 152

grid-column-start

§

GridRowEnd = 153

grid-row-end

§

GridRowStart = 154

grid-row-start

§

MaxBlockSize = 155

max-block-size

§

MaxHeight = 156

max-height

§

MaxInlineSize = 157

max-inline-size

§

MaxWidth = 158

max-width

§

BorderBottomLeftRadius = 159

border-bottom-left-radius

§

BorderBottomRightRadius = 160

border-bottom-right-radius

§

BorderEndEndRadius = 161

border-end-end-radius

§

BorderEndStartRadius = 162

border-end-start-radius

§

BorderStartEndRadius = 163

border-start-end-radius

§

BorderStartStartRadius = 164

border-start-start-radius

§

BorderTopLeftRadius = 165

border-top-left-radius

§

BorderTopRightRadius = 166

border-top-right-radius

§

Bottom = 167

bottom

§

InsetBlockEnd = 168

inset-block-end

§

InsetBlockStart = 169

inset-block-start

§

InsetInlineEnd = 170

inset-inline-end

§

InsetInlineStart = 171

inset-inline-start

§

Left = 172

left

§

Right = 173

right

§

Top = 174

top

§

MarginBlockEnd = 175

margin-block-end

§

MarginBlockStart = 176

margin-block-start

§

MarginBottom = 177

margin-bottom

§

MarginInlineEnd = 178

margin-inline-end

§

MarginInlineStart = 179

margin-inline-start

§

MarginLeft = 180

margin-left

§

MarginRight = 181

margin-right

§

MarginTop = 182

margin-top

§

PaddingBlockEnd = 183

padding-block-end

§

PaddingBlockStart = 184

padding-block-start

§

PaddingBottom = 185

padding-bottom

§

PaddingInlineEnd = 186

padding-inline-end

§

PaddingInlineStart = 187

padding-inline-start

§

PaddingLeft = 188

padding-left

§

PaddingRight = 189

padding-right

§

PaddingTop = 190

padding-top

§

BlockSize = 191

block-size

§

Height = 192

height

§

InlineSize = 193

inline-size

§

MinBlockSize = 194

min-block-size

§

MinHeight = 195

min-height

§

MinInlineSize = 196

min-inline-size

§

MinWidth = 197

min-width

§

Width = 198

width

§

BorderBlockEndWidth = 199

border-block-end-width

§

BorderBlockStartWidth = 200

border-block-start-width

§

BorderBottomWidth = 201

border-bottom-width

§

BorderInlineEndWidth = 202

border-inline-end-width

§

BorderInlineStartWidth = 203

border-inline-start-width

§

BorderLeftWidth = 204

border-left-width

§

BorderRightWidth = 205

border-right-width

§

BorderTopWidth = 206

border-top-width

§

OutlineWidth = 207

outline-width

§

BackgroundColor = 208

background-color

§

BorderBlockEndColor = 209

border-block-end-color

§

BorderBlockStartColor = 210

border-block-start-color

§

BorderBottomColor = 211

border-bottom-color

§

BorderInlineEndColor = 212

border-inline-end-color

§

BorderInlineStartColor = 213

border-inline-start-color

§

BorderLeftColor = 214

border-left-color

§

BorderRightColor = 215

border-right-color

§

BorderTopColor = 216

border-top-color

§

OutlineColor = 217

outline-color

§

TextDecorationColor = 218

text-decoration-color

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

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ToComputedValue for LonghandId

Source§

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

Source§

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.
Source§

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> ToOwned for T
where T: Clone,

Source§

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>,

Source§

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>,

Source§

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