#[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
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§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