#[repr(u16)]pub enum LonghandId {
Show 211 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,
ContainerType = 13,
Direction = 14,
Display = 15,
EmptyCells = 16,
FlexDirection = 17,
FlexWrap = 18,
Float = 19,
FontLanguageOverride = 20,
FontStretch = 21,
FontStyle = 22,
FontVariantCaps = 23,
FontWeight = 24,
GridAutoFlow = 25,
ImageRendering = 26,
JustifyContent = 27,
JustifyItems = 28,
JustifySelf = 29,
ListStylePosition = 30,
ListStyleType = 31,
MixBlendMode = 32,
ObjectFit = 33,
Opacity = 34,
Order = 35,
OutlineStyle = 36,
OverflowWrap = 37,
PointerEvents = 38,
Position = 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,
FlexGrow = 59,
FlexShrink = 60,
OverflowBlock = 61,
OverflowInline = 62,
OverflowX = 63,
OverflowY = 64,
BorderBlockEndStyle = 65,
BorderBlockStartStyle = 66,
BorderBottomStyle = 67,
BorderInlineEndStyle = 68,
BorderInlineStartStyle = 69,
BorderLeftStyle = 70,
BorderRightStyle = 71,
BorderTopStyle = 72,
AnimationComposition = 73,
AnimationDelay = 74,
AnimationDirection = 75,
AnimationDuration = 76,
AnimationFillMode = 77,
AnimationIterationCount = 78,
AnimationName = 79,
AnimationPlayState = 80,
AnimationTimeline = 81,
AnimationTimingFunction = 82,
BackgroundAttachment = 83,
BackgroundClip = 84,
BackgroundImage = 85,
BackgroundOrigin = 86,
BackgroundPositionX = 87,
BackgroundPositionY = 88,
BackgroundRepeat = 89,
BackgroundSize = 90,
BorderImageOutset = 91,
BorderImageSlice = 92,
BorderImageWidth = 93,
BorderSpacing = 94,
BoxShadow = 95,
Clip = 96,
ClipPath = 97,
Color = 98,
ColorScheme = 99,
ColumnWidth = 100,
ContainerName = 101,
Content = 102,
CounterIncrement = 103,
CounterReset = 104,
Cursor = 105,
Filter = 106,
FlexBasis = 107,
FontFamily = 108,
FontSize = 109,
GridTemplateAreas = 110,
LetterSpacing = 111,
LineHeight = 112,
Perspective = 113,
Quotes = 114,
Rotate = 115,
Scale = 116,
TextIndent = 117,
TextOverflow = 118,
TextShadow = 119,
Transform = 120,
TransformOrigin = 121,
TransitionBehavior = 122,
TransitionDelay = 123,
TransitionDuration = 124,
TransitionProperty = 125,
TransitionTimingFunction = 126,
Translate = 127,
VerticalAlign = 128,
WordSpacing = 129,
XLang = 130,
BorderImageSource = 131,
ListStyleImage = 132,
ObjectPosition = 133,
PerspectiveOrigin = 134,
GridTemplateColumns = 135,
GridTemplateRows = 136,
GridAutoColumns = 137,
GridAutoRows = 138,
OutlineOffset = 139,
OverflowClipMargin = 140,
ColumnGap = 141,
RowGap = 142,
GridColumnEnd = 143,
GridColumnStart = 144,
GridRowEnd = 145,
GridRowStart = 146,
MaxBlockSize = 147,
MaxHeight = 148,
MaxInlineSize = 149,
MaxWidth = 150,
BorderBottomLeftRadius = 151,
BorderBottomRightRadius = 152,
BorderEndEndRadius = 153,
BorderEndStartRadius = 154,
BorderStartEndRadius = 155,
BorderStartStartRadius = 156,
BorderTopLeftRadius = 157,
BorderTopRightRadius = 158,
Bottom = 159,
InsetBlockEnd = 160,
InsetBlockStart = 161,
InsetInlineEnd = 162,
InsetInlineStart = 163,
Left = 164,
Right = 165,
Top = 166,
MarginBlockEnd = 167,
MarginBlockStart = 168,
MarginBottom = 169,
MarginInlineEnd = 170,
MarginInlineStart = 171,
MarginLeft = 172,
MarginRight = 173,
MarginTop = 174,
PaddingBlockEnd = 175,
PaddingBlockStart = 176,
PaddingBottom = 177,
PaddingInlineEnd = 178,
PaddingInlineStart = 179,
PaddingLeft = 180,
PaddingRight = 181,
PaddingTop = 182,
BlockSize = 183,
Height = 184,
InlineSize = 185,
MinBlockSize = 186,
MinHeight = 187,
MinInlineSize = 188,
MinWidth = 189,
Width = 190,
BorderBlockEndWidth = 191,
BorderBlockStartWidth = 192,
BorderBottomWidth = 193,
BorderInlineEndWidth = 194,
BorderInlineStartWidth = 195,
BorderLeftWidth = 196,
BorderRightWidth = 197,
BorderTopWidth = 198,
OutlineWidth = 199,
BackgroundColor = 200,
BorderBlockEndColor = 201,
BorderBlockStartColor = 202,
BorderBottomColor = 203,
BorderInlineEndColor = 204,
BorderInlineStartColor = 205,
BorderLeftColor = 206,
BorderRightColor = 207,
BorderTopColor = 208,
OutlineColor = 209,
TextDecorationColor = 210,
}
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
ContainerType = 13
container-type
Direction = 14
direction
Display = 15
display
EmptyCells = 16
empty-cells
FlexDirection = 17
flex-direction
FlexWrap = 18
flex-wrap
Float = 19
float
FontLanguageOverride = 20
font-language-override
FontStretch = 21
font-stretch
FontStyle = 22
font-style
FontVariantCaps = 23
font-variant-caps
FontWeight = 24
font-weight
GridAutoFlow = 25
grid-auto-flow
ImageRendering = 26
image-rendering
JustifyContent = 27
justify-content
JustifyItems = 28
justify-items
JustifySelf = 29
justify-self
ListStylePosition = 30
list-style-position
ListStyleType = 31
list-style-type
MixBlendMode = 32
mix-blend-mode
ObjectFit = 33
object-fit
Opacity = 34
opacity
Order = 35
order
OutlineStyle = 36
outline-style
OverflowWrap = 37
overflow-wrap
PointerEvents = 38
pointer-events
Position = 39
position
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
FlexGrow = 59
flex-grow
FlexShrink = 60
flex-shrink
OverflowBlock = 61
overflow-block
OverflowInline = 62
overflow-inline
OverflowX = 63
overflow-x
OverflowY = 64
overflow-y
BorderBlockEndStyle = 65
border-block-end-style
BorderBlockStartStyle = 66
border-block-start-style
BorderBottomStyle = 67
border-bottom-style
BorderInlineEndStyle = 68
border-inline-end-style
BorderInlineStartStyle = 69
border-inline-start-style
BorderLeftStyle = 70
border-left-style
BorderRightStyle = 71
border-right-style
BorderTopStyle = 72
border-top-style
AnimationComposition = 73
animation-composition
AnimationDelay = 74
animation-delay
AnimationDirection = 75
animation-direction
AnimationDuration = 76
animation-duration
AnimationFillMode = 77
animation-fill-mode
AnimationIterationCount = 78
animation-iteration-count
AnimationName = 79
animation-name
AnimationPlayState = 80
animation-play-state
AnimationTimeline = 81
animation-timeline
AnimationTimingFunction = 82
animation-timing-function
BackgroundAttachment = 83
background-attachment
BackgroundClip = 84
background-clip
BackgroundImage = 85
background-image
BackgroundOrigin = 86
background-origin
BackgroundPositionX = 87
background-position-x
BackgroundPositionY = 88
background-position-y
BackgroundRepeat = 89
background-repeat
BackgroundSize = 90
background-size
BorderImageOutset = 91
border-image-outset
BorderImageSlice = 92
border-image-slice
BorderImageWidth = 93
border-image-width
BorderSpacing = 94
border-spacing
BoxShadow = 95
box-shadow
Clip = 96
clip
ClipPath = 97
clip-path
Color = 98
color
ColorScheme = 99
color-scheme
ColumnWidth = 100
column-width
ContainerName = 101
container-name
Content = 102
content
CounterIncrement = 103
counter-increment
CounterReset = 104
counter-reset
Cursor = 105
cursor
Filter = 106
filter
FlexBasis = 107
flex-basis
FontFamily = 108
font-family
FontSize = 109
font-size
GridTemplateAreas = 110
grid-template-areas
LetterSpacing = 111
letter-spacing
LineHeight = 112
line-height
Perspective = 113
perspective
Quotes = 114
quotes
Rotate = 115
rotate
Scale = 116
scale
TextIndent = 117
text-indent
TextOverflow = 118
text-overflow
TextShadow = 119
text-shadow
Transform = 120
transform
TransformOrigin = 121
transform-origin
TransitionBehavior = 122
transition-behavior
TransitionDelay = 123
transition-delay
TransitionDuration = 124
transition-duration
TransitionProperty = 125
transition-property
TransitionTimingFunction = 126
transition-timing-function
Translate = 127
translate
VerticalAlign = 128
vertical-align
WordSpacing = 129
word-spacing
XLang = 130
-x-lang
BorderImageSource = 131
border-image-source
ListStyleImage = 132
list-style-image
ObjectPosition = 133
object-position
PerspectiveOrigin = 134
perspective-origin
GridTemplateColumns = 135
grid-template-columns
GridTemplateRows = 136
grid-template-rows
GridAutoColumns = 137
grid-auto-columns
GridAutoRows = 138
grid-auto-rows
OutlineOffset = 139
outline-offset
OverflowClipMargin = 140
overflow-clip-margin
ColumnGap = 141
column-gap
RowGap = 142
row-gap
GridColumnEnd = 143
grid-column-end
GridColumnStart = 144
grid-column-start
GridRowEnd = 145
grid-row-end
GridRowStart = 146
grid-row-start
MaxBlockSize = 147
max-block-size
MaxHeight = 148
max-height
MaxInlineSize = 149
max-inline-size
MaxWidth = 150
max-width
BorderBottomLeftRadius = 151
border-bottom-left-radius
BorderBottomRightRadius = 152
border-bottom-right-radius
BorderEndEndRadius = 153
border-end-end-radius
BorderEndStartRadius = 154
border-end-start-radius
BorderStartEndRadius = 155
border-start-end-radius
BorderStartStartRadius = 156
border-start-start-radius
BorderTopLeftRadius = 157
border-top-left-radius
BorderTopRightRadius = 158
border-top-right-radius
Bottom = 159
bottom
InsetBlockEnd = 160
inset-block-end
InsetBlockStart = 161
inset-block-start
InsetInlineEnd = 162
inset-inline-end
InsetInlineStart = 163
inset-inline-start
Left = 164
left
Right = 165
right
Top = 166
top
MarginBlockEnd = 167
margin-block-end
MarginBlockStart = 168
margin-block-start
MarginBottom = 169
margin-bottom
MarginInlineEnd = 170
margin-inline-end
MarginInlineStart = 171
margin-inline-start
MarginLeft = 172
margin-left
MarginRight = 173
margin-right
MarginTop = 174
margin-top
PaddingBlockEnd = 175
padding-block-end
PaddingBlockStart = 176
padding-block-start
PaddingBottom = 177
padding-bottom
PaddingInlineEnd = 178
padding-inline-end
PaddingInlineStart = 179
padding-inline-start
PaddingLeft = 180
padding-left
PaddingRight = 181
padding-right
PaddingTop = 182
padding-top
BlockSize = 183
block-size
Height = 184
height
InlineSize = 185
inline-size
MinBlockSize = 186
min-block-size
MinHeight = 187
min-height
MinInlineSize = 188
min-inline-size
MinWidth = 189
min-width
Width = 190
width
BorderBlockEndWidth = 191
border-block-end-width
BorderBlockStartWidth = 192
border-block-start-width
BorderBottomWidth = 193
border-bottom-width
BorderInlineEndWidth = 194
border-inline-end-width
BorderInlineStartWidth = 195
border-inline-start-width
BorderLeftWidth = 196
border-left-width
BorderRightWidth = 197
border-right-width
BorderTopWidth = 198
border-top-width
OutlineWidth = 199
outline-width
BackgroundColor = 200
background-color
BorderBlockEndColor = 201
border-block-end-color
BorderBlockStartColor = 202
border-block-start-color
BorderBottomColor = 203
border-bottom-color
BorderInlineEndColor = 204
border-inline-end-color
BorderInlineStartColor = 205
border-inline-start-color
BorderLeftColor = 206
border-left-color
BorderRightColor = 207
border-right-color
BorderTopColor = 208
border-top-color
OutlineColor = 209
outline-color
TextDecorationColor = 210
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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