#[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
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§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
self
in CSS syntax, writing to dest
.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
self
in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
self
in CSS syntax and return a CssString. Read moreSource§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