LonghandId

Enum LonghandId 

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

An identifier for a given longhand property.

Variants§

§

AlignItems = 0

align-items

§

AspectRatio = 1

aspect-ratio

§

BackfaceVisibility = 2

backface-visibility

§

BaselineSource = 3

baseline-source

§

BorderCollapse = 4

border-collapse

§

BorderImageRepeat = 5

border-image-repeat

§

BoxSizing = 6

box-sizing

§

CaptionSide = 7

caption-side

§

Clear = 8

clear

§

ColumnCount = 9

column-count

§

ColumnSpan = 10

column-span

§

Contain = 11

contain

§

ContainerType = 12

container-type

§

Direction = 13

direction

§

Display = 14

display

§

EmptyCells = 15

empty-cells

§

FlexDirection = 16

flex-direction

§

FlexWrap = 17

flex-wrap

§

Float = 18

float

§

FontLanguageOverride = 19

font-language-override

§

FontStretch = 20

font-stretch

§

FontStyle = 21

font-style

§

FontSynthesisWeight = 22

font-synthesis-weight

§

FontVariantCaps = 23

font-variant-caps

§

FontWeight = 24

font-weight

§

GridAutoFlow = 25

grid-auto-flow

§

ImageRendering = 26

image-rendering

§

Isolation = 27

isolation

§

JustifyItems = 28

justify-items

§

ListStylePosition = 29

list-style-position

§

ListStyleType = 30

list-style-type

§

MixBlendMode = 31

mix-blend-mode

§

ObjectFit = 32

object-fit

§

Opacity = 33

opacity

§

Order = 34

order

§

OutlineStyle = 35

outline-style

§

OverflowWrap = 36

overflow-wrap

§

PointerEvents = 37

pointer-events

§

Position = 38

position

§

PositionArea = 39

position-area

§

ServoOverflowClipBox = 40

-servo-overflow-clip-box

§

ServoTopLayer = 41

-servo-top-layer

§

TableLayout = 42

table-layout

§

TextAlign = 43

text-align

§

TextAlignLast = 44

text-align-last

§

TextDecorationLine = 45

text-decoration-line

§

TextDecorationStyle = 46

text-decoration-style

§

TextJustify = 47

text-justify

§

TextRendering = 48

text-rendering

§

TextTransform = 49

text-transform

§

TextWrapMode = 50

text-wrap-mode

§

TransformStyle = 51

transform-style

§

UnicodeBidi = 52

unicode-bidi

§

Visibility = 53

visibility

§

WhiteSpaceCollapse = 54

white-space-collapse

§

WordBreak = 55

word-break

§

WritingMode = 56

writing-mode

§

ZIndex = 57

z-index

§

Zoom = 58

zoom

§

AlignContent = 59

align-content

§

JustifyContent = 60

justify-content

§

FlexGrow = 61

flex-grow

§

FlexShrink = 62

flex-shrink

§

AlignSelf = 63

align-self

§

JustifySelf = 64

justify-self

§

OverflowBlock = 65

overflow-block

§

OverflowInline = 66

overflow-inline

§

OverflowX = 67

overflow-x

§

OverflowY = 68

overflow-y

§

BorderBlockEndStyle = 69

border-block-end-style

§

BorderBlockStartStyle = 70

border-block-start-style

§

BorderBottomStyle = 71

border-bottom-style

§

BorderInlineEndStyle = 72

border-inline-end-style

§

BorderInlineStartStyle = 73

border-inline-start-style

§

BorderLeftStyle = 74

border-left-style

§

BorderRightStyle = 75

border-right-style

§

BorderTopStyle = 76

border-top-style

§

AnimationComposition = 77

animation-composition

§

AnimationDelay = 78

animation-delay

§

AnimationDirection = 79

animation-direction

§

AnimationDuration = 80

animation-duration

§

AnimationFillMode = 81

animation-fill-mode

§

AnimationIterationCount = 82

animation-iteration-count

§

AnimationName = 83

animation-name

§

AnimationPlayState = 84

animation-play-state

§

AnimationTimeline = 85

animation-timeline

§

AnimationTimingFunction = 86

animation-timing-function

§

BackdropFilter = 87

backdrop-filter

§

BackgroundAttachment = 88

background-attachment

§

BackgroundClip = 89

background-clip

§

BackgroundImage = 90

background-image

§

BackgroundOrigin = 91

background-origin

§

BackgroundPositionX = 92

background-position-x

§

BackgroundPositionY = 93

background-position-y

§

BackgroundRepeat = 94

background-repeat

§

BackgroundSize = 95

background-size

§

BorderImageOutset = 96

border-image-outset

§

BorderImageSlice = 97

border-image-slice

§

BorderImageWidth = 98

border-image-width

§

BorderSpacing = 99

border-spacing

§

BoxShadow = 100

box-shadow

§

Clip = 101

clip

§

ClipPath = 102

clip-path

§

Color = 103

color

§

ColorScheme = 104

color-scheme

§

ColumnWidth = 105

column-width

§

ContainerName = 106

container-name

§

Content = 107

content

§

CounterIncrement = 108

counter-increment

§

CounterReset = 109

counter-reset

§

Cursor = 110

cursor

§

Filter = 111

filter

§

FlexBasis = 112

flex-basis

§

FontFamily = 113

font-family

§

FontSize = 114

font-size

§

FontVariationSettings = 115

font-variation-settings

§

GridTemplateAreas = 116

grid-template-areas

§

LetterSpacing = 117

letter-spacing

§

LineHeight = 118

line-height

§

MaskImage = 119

mask-image

§

OffsetPath = 120

offset-path

§

OutlineOffset = 121

outline-offset

§

OverflowClipMargin = 122

overflow-clip-margin

§

Perspective = 123

perspective

§

Quotes = 124

quotes

§

Rotate = 125

rotate

§

Scale = 126

scale

§

TextIndent = 127

text-indent

§

TextOverflow = 128

text-overflow

§

TextShadow = 129

text-shadow

§

Transform = 130

transform

§

TransformOrigin = 131

transform-origin

§

TransitionBehavior = 132

transition-behavior

§

TransitionDelay = 133

transition-delay

§

TransitionDuration = 134

transition-duration

§

TransitionProperty = 135

transition-property

§

TransitionTimingFunction = 136

transition-timing-function

§

Translate = 137

translate

§

VerticalAlign = 138

vertical-align

§

ViewTransitionClass = 139

view-transition-class

§

ViewTransitionName = 140

view-transition-name

§

WillChange = 141

will-change

§

WordSpacing = 142

word-spacing

§

XLang = 143

-x-lang

§

ObjectPosition = 144

object-position

§

PerspectiveOrigin = 145

perspective-origin

§

GridTemplateColumns = 146

grid-template-columns

§

GridTemplateRows = 147

grid-template-rows

§

BorderImageSource = 148

border-image-source

§

ListStyleImage = 149

list-style-image

§

GridAutoColumns = 150

grid-auto-columns

§

GridAutoRows = 151

grid-auto-rows

§

ColumnGap = 152

column-gap

§

RowGap = 153

row-gap

§

GridColumnEnd = 154

grid-column-end

§

GridColumnStart = 155

grid-column-start

§

GridRowEnd = 156

grid-row-end

§

GridRowStart = 157

grid-row-start

§

MaxBlockSize = 158

max-block-size

§

MaxHeight = 159

max-height

§

MaxInlineSize = 160

max-inline-size

§

MaxWidth = 161

max-width

§

BorderBottomLeftRadius = 162

border-bottom-left-radius

§

BorderBottomRightRadius = 163

border-bottom-right-radius

§

BorderEndEndRadius = 164

border-end-end-radius

§

BorderEndStartRadius = 165

border-end-start-radius

§

BorderStartEndRadius = 166

border-start-end-radius

§

BorderStartStartRadius = 167

border-start-start-radius

§

BorderTopLeftRadius = 168

border-top-left-radius

§

BorderTopRightRadius = 169

border-top-right-radius

§

Bottom = 170

bottom

§

InsetBlockEnd = 171

inset-block-end

§

InsetBlockStart = 172

inset-block-start

§

InsetInlineEnd = 173

inset-inline-end

§

InsetInlineStart = 174

inset-inline-start

§

Left = 175

left

§

Right = 176

right

§

Top = 177

top

§

MarginBlockEnd = 178

margin-block-end

§

MarginBlockStart = 179

margin-block-start

§

MarginBottom = 180

margin-bottom

§

MarginInlineEnd = 181

margin-inline-end

§

MarginInlineStart = 182

margin-inline-start

§

MarginLeft = 183

margin-left

§

MarginRight = 184

margin-right

§

MarginTop = 185

margin-top

§

PaddingBlockEnd = 186

padding-block-end

§

PaddingBlockStart = 187

padding-block-start

§

PaddingBottom = 188

padding-bottom

§

PaddingInlineEnd = 189

padding-inline-end

§

PaddingInlineStart = 190

padding-inline-start

§

PaddingLeft = 191

padding-left

§

PaddingRight = 192

padding-right

§

PaddingTop = 193

padding-top

§

BlockSize = 194

block-size

§

Height = 195

height

§

InlineSize = 196

inline-size

§

MinBlockSize = 197

min-block-size

§

MinHeight = 198

min-height

§

MinInlineSize = 199

min-inline-size

§

MinWidth = 200

min-width

§

Width = 201

width

§

BorderBlockEndWidth = 202

border-block-end-width

§

BorderBlockStartWidth = 203

border-block-start-width

§

BorderBottomWidth = 204

border-bottom-width

§

BorderInlineEndWidth = 205

border-inline-end-width

§

BorderInlineStartWidth = 206

border-inline-start-width

§

BorderLeftWidth = 207

border-left-width

§

BorderRightWidth = 208

border-right-width

§

BorderTopWidth = 209

border-top-width

§

OutlineWidth = 210

outline-width

§

BackgroundColor = 211

background-color

§

BorderBlockEndColor = 212

border-block-end-color

§

BorderBlockStartColor = 213

border-block-start-color

§

BorderBottomColor = 214

border-bottom-color

§

BorderInlineEndColor = 215

border-inline-end-color

§

BorderInlineStartColor = 216

border-inline-start-color

§

BorderLeftColor = 217

border-left-color

§

BorderRightColor = 218

border-right-color

§

BorderTopColor = 219

border-top-color

§

OutlineColor = 220

outline-color

§

TextDecorationColor = 221

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

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