Skip to main content

LonghandId

Enum LonghandId 

Source
#[repr(u16)]
pub enum LonghandId {
Show 328 variants AlignItems = 0, AlignmentBaseline = 1, BackfaceVisibility = 2, BaselineSource = 3, BorderCollapse = 4, BorderImageRepeat = 5, BoxDecorationBreak = 6, BoxSizing = 7, CaptionSide = 8, Clear = 9, ColumnSpan = 10, Contain = 11, ContainerType = 12, Direction = 13, Display = 14, DominantBaseline = 15, EmptyCells = 16, FillRule = 17, FlexDirection = 18, FlexWrap = 19, Float = 20, FontKerning = 21, FontLanguageOverride = 22, FontOpticalSizing = 23, FontSynthesisStyle = 24, FontVariantCaps = 25, FontVariantEastAsian = 26, FontVariantEmoji = 27, FontVariantLigatures = 28, FontVariantNumeric = 29, FontVariantPosition = 30, ForcedColorAdjust = 31, GridAutoFlow = 32, Hyphens = 33, ImageRendering = 34, Interactivity = 35, Isolation = 36, JustifyItems = 37, LineBreak = 38, ListStylePosition = 39, MaskType = 40, MathStyle = 41, MixBlendMode = 42, MozInert = 43, ObjectFit = 44, OutlineStyle = 45, OverflowWrap = 46, PointerEvents = 47, Position = 48, PositionArea = 49, PositionTryOrder = 50, PositionVisibility = 51, RubyAlign = 52, RubyPosition = 53, ScrollBehavior = 54, ScrollbarWidth = 55, ServoTopLayer = 56, StrokeLinecap = 57, StrokeLinejoin = 58, TableLayout = 59, TextAlign = 60, TextAlignLast = 61, TextAutospace = 62, TextBoxEdge = 63, TextBoxTrim = 64, TextCombineUpright = 65, TextDecorationLine = 66, TextDecorationStyle = 67, TextEmphasisPosition = 68, TextJustify = 69, TextOrientation = 70, TextRendering = 71, TextTransform = 72, TextUnderlinePosition = 73, TextWrapMode = 74, TextWrapStyle = 75, TouchAction = 76, TransformStyle = 77, UnicodeBidi = 78, UserSelect = 79, Visibility = 80, WebkitTextSecurity = 81, WhiteSpaceCollapse = 82, WordBreak = 83, WritingMode = 84, XTextScale = 85, Appearance = 86, MozDefaultAppearance = 87, AlignContent = 88, JustifyContent = 89, AlignSelf = 90, JustifySelf = 91, FontSynthesisPosition = 92, FontSynthesisSmallCaps = 93, FontSynthesisWeight = 94, OverflowBlock = 95, OverflowInline = 96, OverflowX = 97, OverflowY = 98, OverscrollBehaviorBlock = 99, OverscrollBehaviorInline = 100, OverscrollBehaviorX = 101, OverscrollBehaviorY = 102, BorderBlockEndStyle = 103, BorderBlockStartStyle = 104, BorderBottomStyle = 105, BorderInlineEndStyle = 106, BorderInlineStartStyle = 107, BorderLeftStyle = 108, BorderRightStyle = 109, BorderTopStyle = 110, AnchorName = 111, AnchorScope = 112, AnimationComposition = 113, AnimationDelay = 114, AnimationDirection = 115, AnimationDuration = 116, AnimationFillMode = 117, AnimationIterationCount = 118, AnimationName = 119, AnimationPlayState = 120, AnimationRangeEnd = 121, AnimationRangeStart = 122, AnimationTimeline = 123, AnimationTimingFunction = 124, AspectRatio = 125, BackdropFilter = 126, BackgroundAttachment = 127, BackgroundBlendMode = 128, BackgroundClip = 129, BackgroundImage = 130, BackgroundOrigin = 131, BackgroundPositionX = 132, BackgroundPositionY = 133, BackgroundRepeat = 134, BackgroundSize = 135, BaselineShift = 136, BorderImageOutset = 137, BorderImageSlice = 138, BorderImageWidth = 139, BorderSpacing = 140, BoxShadow = 141, CaretColor = 142, Clip = 143, ClipPath = 144, Color = 145, ColorScheme = 146, ColumnCount = 147, ColumnWidth = 148, ContainerName = 149, Content = 150, CounterIncrement = 151, CounterReset = 152, CounterSet = 153, Cursor = 154, D = 155, Filter = 156, FitTolerance = 157, FlexBasis = 158, FontFamily = 159, FontFeatureSettings = 160, FontSize = 161, FontSizeAdjust = 162, FontStyle = 163, FontVariantAlternates = 164, FontVariationSettings = 165, FontWeight = 166, FontWidth = 167, GridTemplateAreas = 168, HyphenateCharacter = 169, HyphenateLimitChars = 170, InitialLetter = 171, LetterSpacing = 172, LineClamp = 173, LineHeight = 174, ListStyleType = 175, MaskClip = 176, MaskComposite = 177, MaskImage = 178, MaskMode = 179, MaskOrigin = 180, MaskPositionX = 181, MaskPositionY = 182, MaskRepeat = 183, MaskSize = 184, MathDepth = 185, MozMinFontSizeRatio = 186, OffsetPath = 187, Opacity = 188, OutlineOffset = 189, OverflowClipMargin = 190, Perspective = 191, PositionAnchor = 192, PositionTryFallbacks = 193, Quotes = 194, Rotate = 195, Scale = 196, ScrollbarColor = 197, StrokeDasharray = 198, StrokeDashoffset = 199, StrokeWidth = 200, TabSize = 201, TextDecorationInset = 202, TextDecorationThickness = 203, TextEmphasisStyle = 204, TextIndent = 205, TextOverflow = 206, TextShadow = 207, TextUnderlineOffset = 208, Transform = 209, TransformOrigin = 210, TransitionBehavior = 211, TransitionDelay = 212, TransitionDuration = 213, TransitionProperty = 214, TransitionTimingFunction = 215, Translate = 216, ViewTransitionClass = 217, ViewTransitionName = 218, WillChange = 219, WordSpacing = 220, XLang = 221, ZIndex = 222, Zoom = 223, ObjectPosition = 224, PerspectiveOrigin = 225, Fill = 226, Stroke = 227, GridTemplateColumns = 228, GridTemplateRows = 229, BorderImageSource = 230, ListStyleImage = 231, GridAutoColumns = 232, GridAutoRows = 233, FlexLineCount = 234, Order = 235, Rx = 236, Ry = 237, FillOpacity = 238, StrokeOpacity = 239, ColumnGap = 240, RowGap = 241, FlexGrow = 242, FlexShrink = 243, StrokeMiterlimit = 244, GridColumnEnd = 245, GridColumnStart = 246, GridRowEnd = 247, GridRowStart = 248, Cx = 249, Cy = 250, X = 251, Y = 252, MaxBlockSize = 253, MaxHeight = 254, MaxInlineSize = 255, MaxWidth = 256, BorderBottomLeftRadius = 257, BorderBottomRightRadius = 258, BorderEndEndRadius = 259, BorderEndStartRadius = 260, BorderStartEndRadius = 261, BorderStartStartRadius = 262, BorderTopLeftRadius = 263, BorderTopRightRadius = 264, CornerBottomLeftShape = 265, CornerBottomRightShape = 266, CornerEndEndShape = 267, CornerEndStartShape = 268, CornerStartEndShape = 269, CornerStartStartShape = 270, CornerTopLeftShape = 271, CornerTopRightShape = 272, Bottom = 273, InsetBlockEnd = 274, InsetBlockStart = 275, InsetInlineEnd = 276, InsetInlineStart = 277, Left = 278, Right = 279, Top = 280, MarginBlockEnd = 281, MarginBlockStart = 282, MarginBottom = 283, MarginInlineEnd = 284, MarginInlineStart = 285, MarginLeft = 286, MarginRight = 287, MarginTop = 288, BlockSize = 289, Height = 290, InlineSize = 291, MinBlockSize = 292, MinHeight = 293, MinInlineSize = 294, MinWidth = 295, Width = 296, BorderBlockEndWidth = 297, BorderBlockStartWidth = 298, BorderBottomWidth = 299, BorderInlineEndWidth = 300, BorderInlineStartWidth = 301, BorderLeftWidth = 302, BorderRightWidth = 303, BorderTopWidth = 304, OutlineWidth = 305, PaddingBlockEnd = 306, PaddingBlockStart = 307, PaddingBottom = 308, PaddingInlineEnd = 309, PaddingInlineStart = 310, PaddingLeft = 311, PaddingRight = 312, PaddingTop = 313, R = 314, BackgroundColor = 315, BorderBlockEndColor = 316, BorderBlockStartColor = 317, BorderBottomColor = 318, BorderInlineEndColor = 319, BorderInlineStartColor = 320, BorderLeftColor = 321, BorderRightColor = 322, BorderTopColor = 323, OutlineColor = 324, TextDecorationColor = 325, TextEmphasisColor = 326, WebkitTextFillColor = 327,
}
Expand description

An identifier for a given longhand property.

Variants§

§

AlignItems = 0

align-items

§

AlignmentBaseline = 1

alignment-baseline

§

BackfaceVisibility = 2

backface-visibility

§

BaselineSource = 3

baseline-source

§

BorderCollapse = 4

border-collapse

§

BorderImageRepeat = 5

border-image-repeat

§

BoxDecorationBreak = 6

box-decoration-break

§

BoxSizing = 7

box-sizing

§

CaptionSide = 8

caption-side

§

Clear = 9

clear

§

ColumnSpan = 10

column-span

§

Contain = 11

contain

§

ContainerType = 12

container-type

§

Direction = 13

direction

§

Display = 14

display

§

DominantBaseline = 15

dominant-baseline

§

EmptyCells = 16

empty-cells

§

FillRule = 17

fill-rule

§

FlexDirection = 18

flex-direction

§

FlexWrap = 19

flex-wrap

§

Float = 20

float

§

FontKerning = 21

font-kerning

§

FontLanguageOverride = 22

font-language-override

§

FontOpticalSizing = 23

font-optical-sizing

§

FontSynthesisStyle = 24

font-synthesis-style

§

FontVariantCaps = 25

font-variant-caps

§

FontVariantEastAsian = 26

font-variant-east-asian

§

FontVariantEmoji = 27

font-variant-emoji

§

FontVariantLigatures = 28

font-variant-ligatures

§

FontVariantNumeric = 29

font-variant-numeric

§

FontVariantPosition = 30

font-variant-position

§

ForcedColorAdjust = 31

forced-color-adjust

§

GridAutoFlow = 32

grid-auto-flow

§

Hyphens = 33

hyphens

§

ImageRendering = 34

image-rendering

§

Interactivity = 35

interactivity

§

Isolation = 36

isolation

§

JustifyItems = 37

justify-items

§

LineBreak = 38

line-break

§

ListStylePosition = 39

list-style-position

§

MaskType = 40

mask-type

§

MathStyle = 41

math-style

§

MixBlendMode = 42

mix-blend-mode

§

MozInert = 43

-moz-inert

§

ObjectFit = 44

object-fit

§

OutlineStyle = 45

outline-style

§

OverflowWrap = 46

overflow-wrap

§

PointerEvents = 47

pointer-events

§

Position = 48

position

§

PositionArea = 49

position-area

§

PositionTryOrder = 50

position-try-order

§

PositionVisibility = 51

position-visibility

§

RubyAlign = 52

ruby-align

§

RubyPosition = 53

ruby-position

§

ScrollBehavior = 54

scroll-behavior

§

ScrollbarWidth = 55

scrollbar-width

§

ServoTopLayer = 56

-servo-top-layer

§

StrokeLinecap = 57

stroke-linecap

§

StrokeLinejoin = 58

stroke-linejoin

§

TableLayout = 59

table-layout

§

TextAlign = 60

text-align

§

TextAlignLast = 61

text-align-last

§

TextAutospace = 62

text-autospace

§

TextBoxEdge = 63

text-box-edge

§

TextBoxTrim = 64

text-box-trim

§

TextCombineUpright = 65

text-combine-upright

§

TextDecorationLine = 66

text-decoration-line

§

TextDecorationStyle = 67

text-decoration-style

§

TextEmphasisPosition = 68

text-emphasis-position

§

TextJustify = 69

text-justify

§

TextOrientation = 70

text-orientation

§

TextRendering = 71

text-rendering

§

TextTransform = 72

text-transform

§

TextUnderlinePosition = 73

text-underline-position

§

TextWrapMode = 74

text-wrap-mode

§

TextWrapStyle = 75

text-wrap-style

§

TouchAction = 76

touch-action

§

TransformStyle = 77

transform-style

§

UnicodeBidi = 78

unicode-bidi

§

UserSelect = 79

user-select

§

Visibility = 80

visibility

§

WebkitTextSecurity = 81

-webkit-text-security

§

WhiteSpaceCollapse = 82

white-space-collapse

§

WordBreak = 83

word-break

§

WritingMode = 84

writing-mode

§

XTextScale = 85

-x-text-scale

§

Appearance = 86

appearance

§

MozDefaultAppearance = 87

-moz-default-appearance

§

AlignContent = 88

align-content

§

JustifyContent = 89

justify-content

§

AlignSelf = 90

align-self

§

JustifySelf = 91

justify-self

§

FontSynthesisPosition = 92

font-synthesis-position

§

FontSynthesisSmallCaps = 93

font-synthesis-small-caps

§

FontSynthesisWeight = 94

font-synthesis-weight

§

OverflowBlock = 95

overflow-block

§

OverflowInline = 96

overflow-inline

§

OverflowX = 97

overflow-x

§

OverflowY = 98

overflow-y

§

OverscrollBehaviorBlock = 99

overscroll-behavior-block

§

OverscrollBehaviorInline = 100

overscroll-behavior-inline

§

OverscrollBehaviorX = 101

overscroll-behavior-x

§

OverscrollBehaviorY = 102

overscroll-behavior-y

§

BorderBlockEndStyle = 103

border-block-end-style

§

BorderBlockStartStyle = 104

border-block-start-style

§

BorderBottomStyle = 105

border-bottom-style

§

BorderInlineEndStyle = 106

border-inline-end-style

§

BorderInlineStartStyle = 107

border-inline-start-style

§

BorderLeftStyle = 108

border-left-style

§

BorderRightStyle = 109

border-right-style

§

BorderTopStyle = 110

border-top-style

§

AnchorName = 111

anchor-name

§

AnchorScope = 112

anchor-scope

§

AnimationComposition = 113

animation-composition

§

AnimationDelay = 114

animation-delay

§

AnimationDirection = 115

animation-direction

§

AnimationDuration = 116

animation-duration

§

AnimationFillMode = 117

animation-fill-mode

§

AnimationIterationCount = 118

animation-iteration-count

§

AnimationName = 119

animation-name

§

AnimationPlayState = 120

animation-play-state

§

AnimationRangeEnd = 121

animation-range-end

§

AnimationRangeStart = 122

animation-range-start

§

AnimationTimeline = 123

animation-timeline

§

AnimationTimingFunction = 124

animation-timing-function

§

AspectRatio = 125

aspect-ratio

§

BackdropFilter = 126

backdrop-filter

§

BackgroundAttachment = 127

background-attachment

§

BackgroundBlendMode = 128

background-blend-mode

§

BackgroundClip = 129

background-clip

§

BackgroundImage = 130

background-image

§

BackgroundOrigin = 131

background-origin

§

BackgroundPositionX = 132

background-position-x

§

BackgroundPositionY = 133

background-position-y

§

BackgroundRepeat = 134

background-repeat

§

BackgroundSize = 135

background-size

§

BaselineShift = 136

baseline-shift

§

BorderImageOutset = 137

border-image-outset

§

BorderImageSlice = 138

border-image-slice

§

BorderImageWidth = 139

border-image-width

§

BorderSpacing = 140

border-spacing

§

BoxShadow = 141

box-shadow

§

CaretColor = 142

caret-color

§

Clip = 143

clip

§

ClipPath = 144

clip-path

§

Color = 145

color

§

ColorScheme = 146

color-scheme

§

ColumnCount = 147

column-count

§

ColumnWidth = 148

column-width

§

ContainerName = 149

container-name

§

Content = 150

content

§

CounterIncrement = 151

counter-increment

§

CounterReset = 152

counter-reset

§

CounterSet = 153

counter-set

§

Cursor = 154

cursor

§

D = 155

d

§

Filter = 156

filter

§

FitTolerance = 157

fit-tolerance

§

FlexBasis = 158

flex-basis

§

FontFamily = 159

font-family

§

FontFeatureSettings = 160

font-feature-settings

§

FontSize = 161

font-size

§

FontSizeAdjust = 162

font-size-adjust

§

FontStyle = 163

font-style

§

FontVariantAlternates = 164

font-variant-alternates

§

FontVariationSettings = 165

font-variation-settings

§

FontWeight = 166

font-weight

§

FontWidth = 167

font-width

§

GridTemplateAreas = 168

grid-template-areas

§

HyphenateCharacter = 169

hyphenate-character

§

HyphenateLimitChars = 170

hyphenate-limit-chars

§

InitialLetter = 171

initial-letter

§

LetterSpacing = 172

letter-spacing

§

LineClamp = 173

line-clamp

§

LineHeight = 174

line-height

§

ListStyleType = 175

list-style-type

§

MaskClip = 176

mask-clip

§

MaskComposite = 177

mask-composite

§

MaskImage = 178

mask-image

§

MaskMode = 179

mask-mode

§

MaskOrigin = 180

mask-origin

§

MaskPositionX = 181

mask-position-x

§

MaskPositionY = 182

mask-position-y

§

MaskRepeat = 183

mask-repeat

§

MaskSize = 184

mask-size

§

MathDepth = 185

math-depth

§

MozMinFontSizeRatio = 186

-moz-min-font-size-ratio

§

OffsetPath = 187

offset-path

§

Opacity = 188

opacity

§

OutlineOffset = 189

outline-offset

§

OverflowClipMargin = 190

overflow-clip-margin

§

Perspective = 191

perspective

§

PositionAnchor = 192

position-anchor

§

PositionTryFallbacks = 193

position-try-fallbacks

§

Quotes = 194

quotes

§

Rotate = 195

rotate

§

Scale = 196

scale

§

ScrollbarColor = 197

scrollbar-color

§

StrokeDasharray = 198

stroke-dasharray

§

StrokeDashoffset = 199

stroke-dashoffset

§

StrokeWidth = 200

stroke-width

§

TabSize = 201

tab-size

§

TextDecorationInset = 202

text-decoration-inset

§

TextDecorationThickness = 203

text-decoration-thickness

§

TextEmphasisStyle = 204

text-emphasis-style

§

TextIndent = 205

text-indent

§

TextOverflow = 206

text-overflow

§

TextShadow = 207

text-shadow

§

TextUnderlineOffset = 208

text-underline-offset

§

Transform = 209

transform

§

TransformOrigin = 210

transform-origin

§

TransitionBehavior = 211

transition-behavior

§

TransitionDelay = 212

transition-delay

§

TransitionDuration = 213

transition-duration

§

TransitionProperty = 214

transition-property

§

TransitionTimingFunction = 215

transition-timing-function

§

Translate = 216

translate

§

ViewTransitionClass = 217

view-transition-class

§

ViewTransitionName = 218

view-transition-name

§

WillChange = 219

will-change

§

WordSpacing = 220

word-spacing

§

XLang = 221

-x-lang

§

ZIndex = 222

z-index

§

Zoom = 223

zoom

§

ObjectPosition = 224

object-position

§

PerspectiveOrigin = 225

perspective-origin

§

Fill = 226

fill

§

Stroke = 227

stroke

§

GridTemplateColumns = 228

grid-template-columns

§

GridTemplateRows = 229

grid-template-rows

§

BorderImageSource = 230

border-image-source

§

ListStyleImage = 231

list-style-image

§

GridAutoColumns = 232

grid-auto-columns

§

GridAutoRows = 233

grid-auto-rows

§

FlexLineCount = 234

flex-line-count

§

Order = 235

order

§

Rx = 236

rx

§

Ry = 237

ry

§

FillOpacity = 238

fill-opacity

§

StrokeOpacity = 239

stroke-opacity

§

ColumnGap = 240

column-gap

§

RowGap = 241

row-gap

§

FlexGrow = 242

flex-grow

§

FlexShrink = 243

flex-shrink

§

StrokeMiterlimit = 244

stroke-miterlimit

§

GridColumnEnd = 245

grid-column-end

§

GridColumnStart = 246

grid-column-start

§

GridRowEnd = 247

grid-row-end

§

GridRowStart = 248

grid-row-start

§

Cx = 249

cx

§

Cy = 250

cy

§

X = 251

x

§

Y = 252

y

§

MaxBlockSize = 253

max-block-size

§

MaxHeight = 254

max-height

§

MaxInlineSize = 255

max-inline-size

§

MaxWidth = 256

max-width

§

BorderBottomLeftRadius = 257

border-bottom-left-radius

§

BorderBottomRightRadius = 258

border-bottom-right-radius

§

BorderEndEndRadius = 259

border-end-end-radius

§

BorderEndStartRadius = 260

border-end-start-radius

§

BorderStartEndRadius = 261

border-start-end-radius

§

BorderStartStartRadius = 262

border-start-start-radius

§

BorderTopLeftRadius = 263

border-top-left-radius

§

BorderTopRightRadius = 264

border-top-right-radius

§

CornerBottomLeftShape = 265

corner-bottom-left-shape

§

CornerBottomRightShape = 266

corner-bottom-right-shape

§

CornerEndEndShape = 267

corner-end-end-shape

§

CornerEndStartShape = 268

corner-end-start-shape

§

CornerStartEndShape = 269

corner-start-end-shape

§

CornerStartStartShape = 270

corner-start-start-shape

§

CornerTopLeftShape = 271

corner-top-left-shape

§

CornerTopRightShape = 272

corner-top-right-shape

§

Bottom = 273

bottom

§

InsetBlockEnd = 274

inset-block-end

§

InsetBlockStart = 275

inset-block-start

§

InsetInlineEnd = 276

inset-inline-end

§

InsetInlineStart = 277

inset-inline-start

§

Left = 278

left

§

Right = 279

right

§

Top = 280

top

§

MarginBlockEnd = 281

margin-block-end

§

MarginBlockStart = 282

margin-block-start

§

MarginBottom = 283

margin-bottom

§

MarginInlineEnd = 284

margin-inline-end

§

MarginInlineStart = 285

margin-inline-start

§

MarginLeft = 286

margin-left

§

MarginRight = 287

margin-right

§

MarginTop = 288

margin-top

§

BlockSize = 289

block-size

§

Height = 290

height

§

InlineSize = 291

inline-size

§

MinBlockSize = 292

min-block-size

§

MinHeight = 293

min-height

§

MinInlineSize = 294

min-inline-size

§

MinWidth = 295

min-width

§

Width = 296

width

§

BorderBlockEndWidth = 297

border-block-end-width

§

BorderBlockStartWidth = 298

border-block-start-width

§

BorderBottomWidth = 299

border-bottom-width

§

BorderInlineEndWidth = 300

border-inline-end-width

§

BorderInlineStartWidth = 301

border-inline-start-width

§

BorderLeftWidth = 302

border-left-width

§

BorderRightWidth = 303

border-right-width

§

BorderTopWidth = 304

border-top-width

§

OutlineWidth = 305

outline-width

§

PaddingBlockEnd = 306

padding-block-end

§

PaddingBlockStart = 307

padding-block-start

§

PaddingBottom = 308

padding-bottom

§

PaddingInlineEnd = 309

padding-inline-end

§

PaddingInlineStart = 310

padding-inline-start

§

PaddingLeft = 311

padding-left

§

PaddingRight = 312

padding-right

§

PaddingTop = 313

padding-top

§

R = 314

r

§

BackgroundColor = 315

background-color

§

BorderBlockEndColor = 316

border-block-end-color

§

BorderBlockStartColor = 317

border-block-start-color

§

BorderBottomColor = 318

border-bottom-color

§

BorderInlineEndColor = 319

border-inline-end-color

§

BorderInlineStartColor = 320

border-inline-start-color

§

BorderLeftColor = 321

border-left-color

§

BorderRightColor = 322

border-right-color

§

BorderTopColor = 323

border-top-color

§

OutlineColor = 324

outline-color

§

TextDecorationColor = 325

text-decoration-color

§

TextEmphasisColor = 326

text-emphasis-color

§

WebkitTextFillColor = 327

-webkit-text-fill-color

Implementations§

Source§

impl LonghandId

Source

pub fn shorthands(self) -> NonCustomPropertyIterator<ShorthandId> ⓘ

Returns an iterator over all the shorthands that include this longhand.

Source

pub(super) fn parse_value( self, context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<PropertyDeclaration, ParseError>

Source

fn logical_mapping_data(self) -> Option<&'static LogicalMappingData>

Return the relevant data to map a particular logical property into physical.

Source

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.

Source

pub fn logical_group(self) -> Option<LogicalGroupId>

Return the logical group of this longhand property.

Source

pub fn flags(self) -> PropertyFlags

Returns PropertyFlags for given longhand property.

Source§

impl LonghandId

Source

pub fn name(&self) -> &'static str

Get the name of this longhand property.

Source

pub fn inherited(self) -> bool

Returns whether the longhand property is inherited by default.

Source

pub fn zoom_dependent(self) -> bool

Returns whether the longhand property is zoom-dependent.

Source

pub fn ignored_when_document_colors_disabled(self) -> bool

Returns true if the property is one that is ignored when document colors are disabled.

Source

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.

Source

pub fn is_longhand_of(self, shorthand: ShorthandId) -> bool

Returns whether this longhand is a longhand of shorthand.

Source

pub fn is_animatable(self) -> bool

Returns whether this property is animatable.

Source

pub fn is_discrete_animatable(self) -> bool

Returns whether this property is animatable in a discrete way.

Source

pub fn is_logical(self) -> bool

Return whether this property is logical.

Trait Implementations§

Source§

impl Clone for LonghandId

Source§

fn clone(&self) -> LonghandId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LonghandId

Source§

impl Debug for LonghandId

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LonghandId

Source§

impl From<LonghandId> for NonCustomPropertyId

Source§

fn from(id: LonghandId) -> Self

Converts to this type from the input type.
Source§

impl Hash for LonghandId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IndexedId for LonghandId

Source§

const COUNT: usize = property_counts::LONGHANDS

The number of distinct ids, i.e. the number of bits the set needs.
Source§

unsafe fn from_index_release_unchecked(index: usize) -> Self

Builds an id from its index in the set. The caller must guarantee that index < Self::COUNT.
Source§

fn to_index(self) -> usize

Returns the index of this id in the set.
Source§

impl MallocSizeOf for LonghandId

Source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Source§

impl PartialEq for LonghandId

Source§

fn eq(&self, other: &LonghandId) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LonghandId

Source§

impl ToComputedValue for LonghandId

Source§

type ComputedValue = LonghandId

The computed value type we’re going to be converted to.
Source§

fn from_computed_value(from: &Self::ComputedValue) -> Self

Convert a computed value to specified value form. Read more
Source§

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
Source§

impl ToCss for LonghandId

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
Source§

fn to_css_cssstring(&self) -> String

Serialize self in CSS syntax and return a CssString. Read more
Source§

impl ToResolvedValue for LonghandId

Source§

type ResolvedValue = LonghandId

The resolved value type we’re going to be converted to.
Source§

fn from_resolved_value(from: Self::ResolvedValue) -> Self

Convert a resolved value to resolved value form.
Source§

fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue

Convert a resolved value to a resolved value.
Source§

impl ToShmem for LonghandId

Source§

fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> Result<Self>

Clones this value into a form suitable for writing into a SharedMemoryBuilder. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.