Enum LonghandId

Source
#[repr(u16)]
pub enum LonghandId {
Show 220 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, ViewTransitionClass = 135, ViewTransitionName = 136, WillChange = 137, WordSpacing = 138, XLang = 139, ObjectPosition = 140, PerspectiveOrigin = 141, GridTemplateColumns = 142, GridTemplateRows = 143, BorderImageSource = 144, ListStyleImage = 145, GridAutoColumns = 146, GridAutoRows = 147, OutlineOffset = 148, OverflowClipMargin = 149, ColumnGap = 150, RowGap = 151, GridColumnEnd = 152, GridColumnStart = 153, GridRowEnd = 154, GridRowStart = 155, MaxBlockSize = 156, MaxHeight = 157, MaxInlineSize = 158, MaxWidth = 159, BorderBottomLeftRadius = 160, BorderBottomRightRadius = 161, BorderEndEndRadius = 162, BorderEndStartRadius = 163, BorderStartEndRadius = 164, BorderStartStartRadius = 165, BorderTopLeftRadius = 166, BorderTopRightRadius = 167, Bottom = 168, InsetBlockEnd = 169, InsetBlockStart = 170, InsetInlineEnd = 171, InsetInlineStart = 172, Left = 173, Right = 174, Top = 175, MarginBlockEnd = 176, MarginBlockStart = 177, MarginBottom = 178, MarginInlineEnd = 179, MarginInlineStart = 180, MarginLeft = 181, MarginRight = 182, MarginTop = 183, PaddingBlockEnd = 184, PaddingBlockStart = 185, PaddingBottom = 186, PaddingInlineEnd = 187, PaddingInlineStart = 188, PaddingLeft = 189, PaddingRight = 190, PaddingTop = 191, BlockSize = 192, Height = 193, InlineSize = 194, MinBlockSize = 195, MinHeight = 196, MinInlineSize = 197, MinWidth = 198, Width = 199, BorderBlockEndWidth = 200, BorderBlockStartWidth = 201, BorderBottomWidth = 202, BorderInlineEndWidth = 203, BorderInlineStartWidth = 204, BorderLeftWidth = 205, BorderRightWidth = 206, BorderTopWidth = 207, OutlineWidth = 208, BackgroundColor = 209, BorderBlockEndColor = 210, BorderBlockStartColor = 211, BorderBottomColor = 212, BorderInlineEndColor = 213, BorderInlineStartColor = 214, BorderLeftColor = 215, BorderRightColor = 216, BorderTopColor = 217, OutlineColor = 218, TextDecorationColor = 219,
}
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

§

ViewTransitionClass = 135

view-transition-class

§

ViewTransitionName = 136

view-transition-name

§

WillChange = 137

will-change

§

WordSpacing = 138

word-spacing

§

XLang = 139

-x-lang

§

ObjectPosition = 140

object-position

§

PerspectiveOrigin = 141

perspective-origin

§

GridTemplateColumns = 142

grid-template-columns

§

GridTemplateRows = 143

grid-template-rows

§

BorderImageSource = 144

border-image-source

§

ListStyleImage = 145

list-style-image

§

GridAutoColumns = 146

grid-auto-columns

§

GridAutoRows = 147

grid-auto-rows

§

OutlineOffset = 148

outline-offset

§

OverflowClipMargin = 149

overflow-clip-margin

§

ColumnGap = 150

column-gap

§

RowGap = 151

row-gap

§

GridColumnEnd = 152

grid-column-end

§

GridColumnStart = 153

grid-column-start

§

GridRowEnd = 154

grid-row-end

§

GridRowStart = 155

grid-row-start

§

MaxBlockSize = 156

max-block-size

§

MaxHeight = 157

max-height

§

MaxInlineSize = 158

max-inline-size

§

MaxWidth = 159

max-width

§

BorderBottomLeftRadius = 160

border-bottom-left-radius

§

BorderBottomRightRadius = 161

border-bottom-right-radius

§

BorderEndEndRadius = 162

border-end-end-radius

§

BorderEndStartRadius = 163

border-end-start-radius

§

BorderStartEndRadius = 164

border-start-end-radius

§

BorderStartStartRadius = 165

border-start-start-radius

§

BorderTopLeftRadius = 166

border-top-left-radius

§

BorderTopRightRadius = 167

border-top-right-radius

§

Bottom = 168

bottom

§

InsetBlockEnd = 169

inset-block-end

§

InsetBlockStart = 170

inset-block-start

§

InsetInlineEnd = 171

inset-inline-end

§

InsetInlineStart = 172

inset-inline-start

§

Left = 173

left

§

Right = 174

right

§

Top = 175

top

§

MarginBlockEnd = 176

margin-block-end

§

MarginBlockStart = 177

margin-block-start

§

MarginBottom = 178

margin-bottom

§

MarginInlineEnd = 179

margin-inline-end

§

MarginInlineStart = 180

margin-inline-start

§

MarginLeft = 181

margin-left

§

MarginRight = 182

margin-right

§

MarginTop = 183

margin-top

§

PaddingBlockEnd = 184

padding-block-end

§

PaddingBlockStart = 185

padding-block-start

§

PaddingBottom = 186

padding-bottom

§

PaddingInlineEnd = 187

padding-inline-end

§

PaddingInlineStart = 188

padding-inline-start

§

PaddingLeft = 189

padding-left

§

PaddingRight = 190

padding-right

§

PaddingTop = 191

padding-top

§

BlockSize = 192

block-size

§

Height = 193

height

§

InlineSize = 194

inline-size

§

MinBlockSize = 195

min-block-size

§

MinHeight = 196

min-height

§

MinInlineSize = 197

min-inline-size

§

MinWidth = 198

min-width

§

Width = 199

width

§

BorderBlockEndWidth = 200

border-block-end-width

§

BorderBlockStartWidth = 201

border-block-start-width

§

BorderBottomWidth = 202

border-bottom-width

§

BorderInlineEndWidth = 203

border-inline-end-width

§

BorderInlineStartWidth = 204

border-inline-start-width

§

BorderLeftWidth = 205

border-left-width

§

BorderRightWidth = 206

border-right-width

§

BorderTopWidth = 207

border-top-width

§

OutlineWidth = 208

outline-width

§

BackgroundColor = 209

background-color

§

BorderBlockEndColor = 210

border-block-end-color

§

BorderBlockStartColor = 211

border-block-start-color

§

BorderBottomColor = 212

border-bottom-color

§

BorderInlineEndColor = 213

border-inline-end-color

§

BorderInlineStartColor = 214

border-inline-start-color

§

BorderLeftColor = 215

border-left-color

§

BorderRightColor = 216

border-right-color

§

BorderTopColor = 217

border-top-color

§

OutlineColor = 218

outline-color

§

TextDecorationColor = 219

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§

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