#[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
impl LonghandId
Sourcepub fn shorthands(self) -> NonCustomPropertyIterator<ShorthandId> ⓘ
pub fn shorthands(self) -> NonCustomPropertyIterator<ShorthandId> ⓘ
Returns an iterator over all the shorthands that include this longhand.
pub(super) fn parse_value<'i, 't>( self, context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<PropertyDeclaration, ParseError<'i>>
Sourcefn logical_mapping_data(self) -> Option<&'static LogicalMappingData>
fn logical_mapping_data(self) -> Option<&'static LogicalMappingData>
Return the relevant data to map a particular logical property into physical.
Sourcepub fn to_physical(self, wm: WritingMode) -> Self
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.
Sourcepub fn logical_group(self) -> Option<LogicalGroupId>
pub fn logical_group(self) -> Option<LogicalGroupId>
Return the logical group of this longhand property.
Sourcepub fn flags(self) -> PropertyFlags
pub fn flags(self) -> PropertyFlags
Returns PropertyFlags for given longhand property.
Source§impl LonghandId
impl LonghandId
Sourcepub fn ignored_when_document_colors_disabled(self) -> bool
pub fn ignored_when_document_colors_disabled(self) -> bool
Returns true if the property is one that is ignored when document colors are disabled.
Sourcepub fn is_or_is_longhand_of(self, non_custom: NonCustomPropertyId) -> bool
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.
Sourcepub fn is_longhand_of(self, shorthand: ShorthandId) -> bool
pub fn is_longhand_of(self, shorthand: ShorthandId) -> bool
Returns whether this longhand is a longhand of shorthand
.
Sourcepub fn is_animatable(self) -> bool
pub fn is_animatable(self) -> bool
Returns whether this property is animatable.
Sourcepub fn is_discrete_animatable(self) -> bool
pub fn is_discrete_animatable(self) -> bool
Returns whether this property is animatable in a discrete way.
Sourcepub fn is_logical(self) -> bool
pub fn is_logical(self) -> bool
Return whether this property is logical.
Trait Implementations§
Source§impl Clone for LonghandId
impl Clone for LonghandId
Source§fn clone(&self) -> LonghandId
fn clone(&self) -> LonghandId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LonghandId
impl Debug for LonghandId
Source§impl From<LonghandId> for NonCustomPropertyId
impl From<LonghandId> for NonCustomPropertyId
Source§fn from(id: LonghandId) -> Self
fn from(id: LonghandId) -> Self
Source§impl Hash for LonghandId
impl Hash for LonghandId
Source§impl MallocSizeOf for LonghandId
impl MallocSizeOf for LonghandId
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl PartialEq for LonghandId
impl PartialEq for LonghandId
Source§impl ToComputedValue for LonghandId
impl ToComputedValue for LonghandId
Source§type ComputedValue = LonghandId
type ComputedValue = LonghandId
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Context
.Source§impl ToCss for LonghandId
impl ToCss for LonghandId
Source§impl ToResolvedValue for LonghandId
impl ToResolvedValue for LonghandId
Source§type ResolvedValue = LonghandId
type ResolvedValue = LonghandId
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Source§impl ToShmem for LonghandId
impl ToShmem for LonghandId
impl Copy for LonghandId
impl Eq for LonghandId
impl StructuralPartialEq for LonghandId
Auto Trait Implementations§
impl Freeze for LonghandId
impl RefUnwindSafe for LonghandId
impl Send for LonghandId
impl Sync for LonghandId
impl Unpin for LonghandId
impl UnwindSafe for LonghandId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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