#[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
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 zoom_dependent(self) -> bool
pub fn zoom_dependent(self) -> bool
Returns whether the longhand property is zoom-dependent.
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