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