Enum LonghandId

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

§

FontSynthesisWeight = 24

font-synthesis-weight

§

FontVariantCaps = 25

font-variant-caps

§

FontWeight = 26

font-weight

§

GridAutoFlow = 27

grid-auto-flow

§

ImageRendering = 28

image-rendering

§

Isolation = 29

isolation

§

JustifyContent = 30

justify-content

§

JustifyItems = 31

justify-items

§

JustifySelf = 32

justify-self

§

ListStylePosition = 33

list-style-position

§

ListStyleType = 34

list-style-type

§

MixBlendMode = 35

mix-blend-mode

§

ObjectFit = 36

object-fit

§

Opacity = 37

opacity

§

Order = 38

order

§

OutlineStyle = 39

outline-style

§

OverflowWrap = 40

overflow-wrap

§

PointerEvents = 41

pointer-events

§

Position = 42

position

§

ServoOverflowClipBox = 43

-servo-overflow-clip-box

§

ServoTopLayer = 44

-servo-top-layer

§

TableLayout = 45

table-layout

§

TextAlign = 46

text-align

§

TextAlignLast = 47

text-align-last

§

TextDecorationLine = 48

text-decoration-line

§

TextDecorationStyle = 49

text-decoration-style

§

TextJustify = 50

text-justify

§

TextRendering = 51

text-rendering

§

TextTransform = 52

text-transform

§

TextWrapMode = 53

text-wrap-mode

§

TransformStyle = 54

transform-style

§

UnicodeBidi = 55

unicode-bidi

§

Visibility = 56

visibility

§

WhiteSpaceCollapse = 57

white-space-collapse

§

WordBreak = 58

word-break

§

WritingMode = 59

writing-mode

§

ZIndex = 60

z-index

§

Zoom = 61

zoom

§

FlexGrow = 62

flex-grow

§

FlexShrink = 63

flex-shrink

§

OverflowBlock = 64

overflow-block

§

OverflowInline = 65

overflow-inline

§

OverflowX = 66

overflow-x

§

OverflowY = 67

overflow-y

§

BorderBlockEndStyle = 68

border-block-end-style

§

BorderBlockStartStyle = 69

border-block-start-style

§

BorderBottomStyle = 70

border-bottom-style

§

BorderInlineEndStyle = 71

border-inline-end-style

§

BorderInlineStartStyle = 72

border-inline-start-style

§

BorderLeftStyle = 73

border-left-style

§

BorderRightStyle = 74

border-right-style

§

BorderTopStyle = 75

border-top-style

§

AnimationComposition = 76

animation-composition

§

AnimationDelay = 77

animation-delay

§

AnimationDirection = 78

animation-direction

§

AnimationDuration = 79

animation-duration

§

AnimationFillMode = 80

animation-fill-mode

§

AnimationIterationCount = 81

animation-iteration-count

§

AnimationName = 82

animation-name

§

AnimationPlayState = 83

animation-play-state

§

AnimationTimeline = 84

animation-timeline

§

AnimationTimingFunction = 85

animation-timing-function

§

BackdropFilter = 86

backdrop-filter

§

BackgroundAttachment = 87

background-attachment

§

BackgroundClip = 88

background-clip

§

BackgroundImage = 89

background-image

§

BackgroundOrigin = 90

background-origin

§

BackgroundPositionX = 91

background-position-x

§

BackgroundPositionY = 92

background-position-y

§

BackgroundRepeat = 93

background-repeat

§

BackgroundSize = 94

background-size

§

BorderImageOutset = 95

border-image-outset

§

BorderImageSlice = 96

border-image-slice

§

BorderImageWidth = 97

border-image-width

§

BorderSpacing = 98

border-spacing

§

BoxShadow = 99

box-shadow

§

Clip = 100

clip

§

ClipPath = 101

clip-path

§

Color = 102

color

§

ColorScheme = 103

color-scheme

§

ColumnWidth = 104

column-width

§

ContainerName = 105

container-name

§

Content = 106

content

§

CounterIncrement = 107

counter-increment

§

CounterReset = 108

counter-reset

§

Cursor = 109

cursor

§

Filter = 110

filter

§

FlexBasis = 111

flex-basis

§

FontFamily = 112

font-family

§

FontSize = 113

font-size

§

FontVariationSettings = 114

font-variation-settings

§

GridTemplateAreas = 115

grid-template-areas

§

LetterSpacing = 116

letter-spacing

§

LineHeight = 117

line-height

§

MaskImage = 118

mask-image

§

OffsetPath = 119

offset-path

§

Perspective = 120

perspective

§

Quotes = 121

quotes

§

Rotate = 122

rotate

§

Scale = 123

scale

§

TextIndent = 124

text-indent

§

TextOverflow = 125

text-overflow

§

TextShadow = 126

text-shadow

§

Transform = 127

transform

§

TransformOrigin = 128

transform-origin

§

TransitionBehavior = 129

transition-behavior

§

TransitionDelay = 130

transition-delay

§

TransitionDuration = 131

transition-duration

§

TransitionProperty = 132

transition-property

§

TransitionTimingFunction = 133

transition-timing-function

§

Translate = 134

translate

§

VerticalAlign = 135

vertical-align

§

ViewTransitionClass = 136

view-transition-class

§

ViewTransitionName = 137

view-transition-name

§

WillChange = 138

will-change

§

WordSpacing = 139

word-spacing

§

XLang = 140

-x-lang

§

ObjectPosition = 141

object-position

§

PerspectiveOrigin = 142

perspective-origin

§

GridTemplateColumns = 143

grid-template-columns

§

GridTemplateRows = 144

grid-template-rows

§

BorderImageSource = 145

border-image-source

§

ListStyleImage = 146

list-style-image

§

GridAutoColumns = 147

grid-auto-columns

§

GridAutoRows = 148

grid-auto-rows

§

OutlineOffset = 149

outline-offset

§

OverflowClipMargin = 150

overflow-clip-margin

§

ColumnGap = 151

column-gap

§

RowGap = 152

row-gap

§

GridColumnEnd = 153

grid-column-end

§

GridColumnStart = 154

grid-column-start

§

GridRowEnd = 155

grid-row-end

§

GridRowStart = 156

grid-row-start

§

MaxBlockSize = 157

max-block-size

§

MaxHeight = 158

max-height

§

MaxInlineSize = 159

max-inline-size

§

MaxWidth = 160

max-width

§

BorderBottomLeftRadius = 161

border-bottom-left-radius

§

BorderBottomRightRadius = 162

border-bottom-right-radius

§

BorderEndEndRadius = 163

border-end-end-radius

§

BorderEndStartRadius = 164

border-end-start-radius

§

BorderStartEndRadius = 165

border-start-end-radius

§

BorderStartStartRadius = 166

border-start-start-radius

§

BorderTopLeftRadius = 167

border-top-left-radius

§

BorderTopRightRadius = 168

border-top-right-radius

§

Bottom = 169

bottom

§

InsetBlockEnd = 170

inset-block-end

§

InsetBlockStart = 171

inset-block-start

§

InsetInlineEnd = 172

inset-inline-end

§

InsetInlineStart = 173

inset-inline-start

§

Left = 174

left

§

Right = 175

right

§

Top = 176

top

§

MarginBlockEnd = 177

margin-block-end

§

MarginBlockStart = 178

margin-block-start

§

MarginBottom = 179

margin-bottom

§

MarginInlineEnd = 180

margin-inline-end

§

MarginInlineStart = 181

margin-inline-start

§

MarginLeft = 182

margin-left

§

MarginRight = 183

margin-right

§

MarginTop = 184

margin-top

§

PaddingBlockEnd = 185

padding-block-end

§

PaddingBlockStart = 186

padding-block-start

§

PaddingBottom = 187

padding-bottom

§

PaddingInlineEnd = 188

padding-inline-end

§

PaddingInlineStart = 189

padding-inline-start

§

PaddingLeft = 190

padding-left

§

PaddingRight = 191

padding-right

§

PaddingTop = 192

padding-top

§

BlockSize = 193

block-size

§

Height = 194

height

§

InlineSize = 195

inline-size

§

MinBlockSize = 196

min-block-size

§

MinHeight = 197

min-height

§

MinInlineSize = 198

min-inline-size

§

MinWidth = 199

min-width

§

Width = 200

width

§

BorderBlockEndWidth = 201

border-block-end-width

§

BorderBlockStartWidth = 202

border-block-start-width

§

BorderBottomWidth = 203

border-bottom-width

§

BorderInlineEndWidth = 204

border-inline-end-width

§

BorderInlineStartWidth = 205

border-inline-start-width

§

BorderLeftWidth = 206

border-left-width

§

BorderRightWidth = 207

border-right-width

§

BorderTopWidth = 208

border-top-width

§

OutlineWidth = 209

outline-width

§

BackgroundColor = 210

background-color

§

BorderBlockEndColor = 211

border-block-end-color

§

BorderBlockStartColor = 212

border-block-start-color

§

BorderBottomColor = 213

border-bottom-color

§

BorderInlineEndColor = 214

border-inline-end-color

§

BorderInlineStartColor = 215

border-inline-start-color

§

BorderLeftColor = 216

border-left-color

§

BorderRightColor = 217

border-right-color

§

BorderTopColor = 218

border-top-color

§

OutlineColor = 219

outline-color

§

TextDecorationColor = 220

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 zoom_dependent(self) -> bool

Returns whether the longhand property is zoom-dependent.

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 duplicate 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§

fn to_css_cssstring(&self) -> String

Serialize self in CSS syntax and return a CssString. 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, dest: *mut u8)

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