// This file is automatically generated from CSSProperties.json by the process-css-properties.py script. Do not edit it.

#pragma once

#include <array>
#include <wtf/HashFunctions.h>
#include <wtf/HashTraits.h>

namespace WebCore {

class Settings;

enum CSSPropertyID : uint16_t {
    CSSPropertyInvalid = 0,
    CSSPropertyCustom = 1,
    CSSPropertyAppearance = 2,
    CSSPropertyColorScheme = 3,
    CSSPropertyMathDepth = 4,
    CSSPropertyRubyPosition = 5,
    CSSPropertyWritingMode = 6,
    CSSPropertyDirection = 7,
    CSSPropertyDisplay = 8,
    CSSPropertyFontFamily = 9,
    CSSPropertyFontFeatureSettings = 10,
    CSSPropertyFontKerning = 11,
    CSSPropertyFontOpticalSizing = 12,
    CSSPropertyFontPalette = 13,
    CSSPropertyFontSize = 14,
    CSSPropertyFontSizeAdjust = 15,
    CSSPropertyFontStyle = 16,
    CSSPropertyFontSynthesisSmallCaps = 17,
    CSSPropertyFontSynthesisStyle = 18,
    CSSPropertyFontSynthesisWeight = 19,
    CSSPropertyFontVariantAlternates = 20,
    CSSPropertyFontVariantCaps = 21,
    CSSPropertyFontVariantEastAsian = 22,
    CSSPropertyFontVariantEmoji = 23,
    CSSPropertyFontVariantLigatures = 24,
    CSSPropertyFontVariantNumeric = 25,
    CSSPropertyFontVariantPosition = 26,
    CSSPropertyFontVariationSettings = 27,
    CSSPropertyFontWeight = 28,
    CSSPropertyFontWidth = 29,
    CSSPropertyTextOrientation = 30,
    CSSPropertyTextRendering = 31,
    CSSPropertyZoom = 32,
    CSSPropertyWebkitFontSmoothing = 33,
    CSSPropertyWebkitLocale = 34,
    CSSPropertyWebkitTextSizeAdjust = 35,
    CSSPropertyWebkitTextZoom = 36,
    CSSPropertyLetterSpacing = 37,
    CSSPropertyTextAutospace = 38,
    CSSPropertyTextSpacingTrim = 39,
    CSSPropertyWordSpacing = 40,
    CSSPropertyBackgroundImage = 41,
    CSSPropertyMaskImage = 42,
    CSSPropertyAccentColor = 43,
    CSSPropertyAdditiveSymbols = 44,
    CSSPropertyAlignContent = 45,
    CSSPropertyAlignItems = 46,
    CSSPropertyAlignSelf = 47,
    CSSPropertyAlignmentBaseline = 48,
    CSSPropertyAnchorName = 49,
    CSSPropertyAnchorScope = 50,
    CSSPropertyAnimationComposition = 51,
    CSSPropertyAnimationDelay = 52,
    CSSPropertyAnimationDirection = 53,
    CSSPropertyAnimationDuration = 54,
    CSSPropertyAnimationFillMode = 55,
    CSSPropertyAnimationIterationCount = 56,
    CSSPropertyAnimationName = 57,
    CSSPropertyAnimationPlayState = 58,
    CSSPropertyAnimationRangeEnd = 59,
    CSSPropertyAnimationRangeStart = 60,
    CSSPropertyAnimationTimeline = 61,
    CSSPropertyAnimationTimingFunction = 62,
    CSSPropertyAnimationTrigger = 63,
    CSSPropertyAscentOverride = 64,
    CSSPropertyAspectRatio = 65,
    CSSPropertyBackdropFilter = 66,
    CSSPropertyBackfaceVisibility = 67,
    CSSPropertyBackgroundAttachment = 68,
    CSSPropertyBackgroundBlendMode = 69,
    CSSPropertyBackgroundClip = 70,
    CSSPropertyBackgroundColor = 71,
    CSSPropertyBackgroundOrigin = 72,
    CSSPropertyBackgroundPositionX = 73,
    CSSPropertyBackgroundPositionY = 74,
    CSSPropertyBackgroundRepeat = 75,
    CSSPropertyBackgroundSize = 76,
    CSSPropertyBasePalette = 77,
    CSSPropertyBaselineShift = 78,
    CSSPropertyBlockEllipsis = 79,
    CSSPropertyBlockStepAlign = 80,
    CSSPropertyBlockStepInsert = 81,
    CSSPropertyBlockStepRound = 82,
    CSSPropertyBlockStepSize = 83,
    CSSPropertyBorderCollapse = 84,
    CSSPropertyBorderImageOutset = 85,
    CSSPropertyBorderImageRepeat = 86,
    CSSPropertyBorderImageSlice = 87,
    CSSPropertyBorderImageSource = 88,
    CSSPropertyBorderImageWidth = 89,
    CSSPropertyBoxShadow = 90,
    CSSPropertyBoxSizing = 91,
    CSSPropertyBreakAfter = 92,
    CSSPropertyBreakBefore = 93,
    CSSPropertyBreakInside = 94,
    CSSPropertyBufferedRendering = 95,
    CSSPropertyCaptionSide = 96,
    CSSPropertyCaretColor = 97,
    CSSPropertyClear = 98,
    CSSPropertyClip = 99,
    CSSPropertyClipPath = 100,
    CSSPropertyClipRule = 101,
    CSSPropertyColor = 102,
    CSSPropertyColorInterpolation = 103,
    CSSPropertyColorInterpolationFilters = 104,
    CSSPropertyColumnCount = 105,
    CSSPropertyColumnFill = 106,
    CSSPropertyColumnGap = 107,
    CSSPropertyColumnRuleColor = 108,
    CSSPropertyColumnRuleStyle = 109,
    CSSPropertyColumnRuleWidth = 110,
    CSSPropertyColumnSpan = 111,
    CSSPropertyColumnWidth = 112,
    CSSPropertyContain = 113,
    CSSPropertyContainerName = 114,
    CSSPropertyContainerType = 115,
    CSSPropertyContent = 116,
    CSSPropertyContentVisibility = 117,
    CSSPropertyContinue = 118,
    CSSPropertyCounterIncrement = 119,
    CSSPropertyCounterReset = 120,
    CSSPropertyCounterSet = 121,
    CSSPropertyCursor = 122,
    CSSPropertyCx = 123,
    CSSPropertyCy = 124,
    CSSPropertyD = 125,
    CSSPropertyDescentOverride = 126,
    CSSPropertyDominantBaseline = 127,
    CSSPropertyDynamicRangeLimit = 128,
    CSSPropertyEmptyCells = 129,
    CSSPropertyFallback = 130,
    CSSPropertyFieldSizing = 131,
    CSSPropertyFill = 132,
    CSSPropertyFillOpacity = 133,
    CSSPropertyFillRule = 134,
    CSSPropertyFilter = 135,
    CSSPropertyFlexBasis = 136,
    CSSPropertyFlexDirection = 137,
    CSSPropertyFlexGrow = 138,
    CSSPropertyFlexShrink = 139,
    CSSPropertyFlexWrap = 140,
    CSSPropertyFloat = 141,
    CSSPropertyFloodColor = 142,
    CSSPropertyFloodOpacity = 143,
    CSSPropertyFlowTolerance = 144,
    CSSPropertyFontDisplay = 145,
    CSSPropertyGlyphOrientationVertical = 146,
    CSSPropertyGridAutoColumns = 147,
    CSSPropertyGridAutoFlow = 148,
    CSSPropertyGridAutoRows = 149,
    CSSPropertyGridColumnEnd = 150,
    CSSPropertyGridColumnStart = 151,
    CSSPropertyGridRowEnd = 152,
    CSSPropertyGridRowStart = 153,
    CSSPropertyGridTemplateAreas = 154,
    CSSPropertyGridTemplateColumns = 155,
    CSSPropertyGridTemplateRows = 156,
    CSSPropertyHangingPunctuation = 157,
    CSSPropertyHyphenateCharacter = 158,
    CSSPropertyHyphens = 159,
    CSSPropertyImageOrientation = 160,
    CSSPropertyImageRendering = 161,
    CSSPropertyInherits = 162,
    CSSPropertyInitialValue = 163,
    CSSPropertyInputSecurity = 164,
    CSSPropertyIsolation = 165,
    CSSPropertyJustifyContent = 166,
    CSSPropertyJustifyItems = 167,
    CSSPropertyJustifySelf = 168,
    CSSPropertyLightingColor = 169,
    CSSPropertyLineBreak = 170,
    CSSPropertyLineFitEdge = 171,
    CSSPropertyLineGapOverride = 172,
    CSSPropertyLineHeight = 173,
    CSSPropertyListStyleImage = 174,
    CSSPropertyListStylePosition = 175,
    CSSPropertyListStyleType = 176,
    CSSPropertyMarginTrim = 177,
    CSSPropertyMarkerEnd = 178,
    CSSPropertyMarkerMid = 179,
    CSSPropertyMarkerStart = 180,
    CSSPropertyMaskBorderOutset = 181,
    CSSPropertyMaskBorderRepeat = 182,
    CSSPropertyMaskBorderSlice = 183,
    CSSPropertyMaskBorderSource = 184,
    CSSPropertyMaskBorderWidth = 185,
    CSSPropertyMaskClip = 186,
    CSSPropertyMaskComposite = 187,
    CSSPropertyMaskMode = 188,
    CSSPropertyMaskOrigin = 189,
    CSSPropertyMaskRepeat = 190,
    CSSPropertyMaskSize = 191,
    CSSPropertyMaskType = 192,
    CSSPropertyMathShift = 193,
    CSSPropertyMathStyle = 194,
    CSSPropertyMaxLines = 195,
    CSSPropertyMixBlendMode = 196,
    CSSPropertyNavigation = 197,
    CSSPropertyNegative = 198,
    CSSPropertyObjectFit = 199,
    CSSPropertyObjectPosition = 200,
    CSSPropertyObjectViewBox = 201,
    CSSPropertyOffsetAnchor = 202,
    CSSPropertyOffsetDistance = 203,
    CSSPropertyOffsetPath = 204,
    CSSPropertyOffsetPosition = 205,
    CSSPropertyOffsetRotate = 206,
    CSSPropertyOpacity = 207,
    CSSPropertyOrder = 208,
    CSSPropertyOrphans = 209,
    CSSPropertyOutlineColor = 210,
    CSSPropertyOutlineOffset = 211,
    CSSPropertyOutlineStyle = 212,
    CSSPropertyOutlineWidth = 213,
    CSSPropertyOverflowAnchor = 214,
    CSSPropertyOverflowClipMargin = 215,
    CSSPropertyOverflowWrap = 216,
    CSSPropertyOverrideColors = 217,
    CSSPropertyPad = 218,
    CSSPropertyPage = 219,
    CSSPropertyPaintOrder = 220,
    CSSPropertyPerspective = 221,
    CSSPropertyPerspectiveOriginX = 222,
    CSSPropertyPerspectiveOriginY = 223,
    CSSPropertyPointerEvents = 224,
    CSSPropertyPosition = 225,
    CSSPropertyPositionAnchor = 226,
    CSSPropertyPositionArea = 227,
    CSSPropertyPositionTryFallbacks = 228,
    CSSPropertyPositionTryOrder = 229,
    CSSPropertyPositionVisibility = 230,
    CSSPropertyPrefix = 231,
    CSSPropertyPrintColorAdjust = 232,
    CSSPropertyQuotes = 233,
    CSSPropertyR = 234,
    CSSPropertyRange = 235,
    CSSPropertyResize = 236,
    CSSPropertyResult = 237,
    CSSPropertyRotate = 238,
    CSSPropertyRowGap = 239,
    CSSPropertyRubyAlign = 240,
    CSSPropertyRubyOverhang = 241,
    CSSPropertyRx = 242,
    CSSPropertyRy = 243,
    CSSPropertyScale = 244,
    CSSPropertyScrollBehavior = 245,
    CSSPropertyScrollSnapAlign = 246,
    CSSPropertyScrollSnapStop = 247,
    CSSPropertyScrollSnapType = 248,
    CSSPropertyScrollTimelineAxis = 249,
    CSSPropertyScrollTimelineName = 250,
    CSSPropertyScrollbarColor = 251,
    CSSPropertyScrollbarGutter = 252,
    CSSPropertyScrollbarWidth = 253,
    CSSPropertyShapeImageThreshold = 254,
    CSSPropertyShapeMargin = 255,
    CSSPropertyShapeOutside = 256,
    CSSPropertyShapeRendering = 257,
    CSSPropertySize = 258,
    CSSPropertySizeAdjust = 259,
    CSSPropertySpeakAs = 260,
    CSSPropertySrc = 261,
    CSSPropertyStopColor = 262,
    CSSPropertyStopOpacity = 263,
    CSSPropertyStroke = 264,
    CSSPropertyStrokeColor = 265,
    CSSPropertyStrokeDasharray = 266,
    CSSPropertyStrokeDashoffset = 267,
    CSSPropertyStrokeLinecap = 268,
    CSSPropertyStrokeLinejoin = 269,
    CSSPropertyStrokeMiterlimit = 270,
    CSSPropertyStrokeOpacity = 271,
    CSSPropertyStrokeWidth = 272,
    CSSPropertySuffix = 273,
    CSSPropertySymbols = 274,
    CSSPropertySyntax = 275,
    CSSPropertySystem = 276,
    CSSPropertyTabSize = 277,
    CSSPropertyTableLayout = 278,
    CSSPropertyTextAlign = 279,
    CSSPropertyTextAlignLast = 280,
    CSSPropertyTextAnchor = 281,
    CSSPropertyTextBoxEdge = 282,
    CSSPropertyTextBoxTrim = 283,
    CSSPropertyTextCombineUpright = 284,
    CSSPropertyTextDecorationColor = 285,
    CSSPropertyTextDecorationInset = 286,
    CSSPropertyTextDecorationLine = 287,
    CSSPropertyTextDecorationSkipInk = 288,
    CSSPropertyTextDecorationStyle = 289,
    CSSPropertyTextDecorationThickness = 290,
    CSSPropertyTextEmphasisColor = 291,
    CSSPropertyTextEmphasisPosition = 292,
    CSSPropertyTextEmphasisStyle = 293,
    CSSPropertyTextGroupAlign = 294,
    CSSPropertyTextIndent = 295,
    CSSPropertyTextJustify = 296,
    CSSPropertyTextOverflow = 297,
    CSSPropertyTextShadow = 298,
    CSSPropertyTextTransform = 299,
    CSSPropertyTextUnderlineOffset = 300,
    CSSPropertyTextUnderlinePosition = 301,
    CSSPropertyTextWrapMode = 302,
    CSSPropertyTextWrapStyle = 303,
    CSSPropertyTimelineScope = 304,
    CSSPropertyTimelineTriggerActivationRangeEnd = 305,
    CSSPropertyTimelineTriggerActivationRangeStart = 306,
    CSSPropertyTimelineTriggerActiveRangeEnd = 307,
    CSSPropertyTimelineTriggerActiveRangeStart = 308,
    CSSPropertyTimelineTriggerName = 309,
    CSSPropertyTimelineTriggerSource = 310,
    CSSPropertyTouchAction = 311,
    CSSPropertyTransform = 312,
    CSSPropertyTransformBox = 313,
    CSSPropertyTransformOriginX = 314,
    CSSPropertyTransformOriginY = 315,
    CSSPropertyTransformOriginZ = 316,
    CSSPropertyTransformStyle = 317,
    CSSPropertyTransitionBehavior = 318,
    CSSPropertyTransitionDelay = 319,
    CSSPropertyTransitionDuration = 320,
    CSSPropertyTransitionProperty = 321,
    CSSPropertyTransitionTimingFunction = 322,
    CSSPropertyTranslate = 323,
    CSSPropertyTriggerScope = 324,
    CSSPropertyTypes = 325,
    CSSPropertyUnicodeBidi = 326,
    CSSPropertyUnicodeRange = 327,
    CSSPropertyVectorEffect = 328,
    CSSPropertyVerticalAlign = 329,
    CSSPropertyViewTimelineAxis = 330,
    CSSPropertyViewTimelineInset = 331,
    CSSPropertyViewTimelineName = 332,
    CSSPropertyViewTransitionClass = 333,
    CSSPropertyViewTransitionName = 334,
    CSSPropertyVisibility = 335,
    CSSPropertyWhiteSpaceCollapse = 336,
    CSSPropertyWhiteSpaceTrim = 337,
    CSSPropertyWidows = 338,
    CSSPropertyWillChange = 339,
    CSSPropertyWordBreak = 340,
    CSSPropertyWrapInside = 341,
    CSSPropertyX = 342,
    CSSPropertyY = 343,
    CSSPropertyZIndex = 344,
    CSSPropertyAppleColorFilter = 345,
    CSSPropertyApplePayButtonStyle = 346,
    CSSPropertyApplePayButtonType = 347,
    CSSPropertyAppleVisualEffect = 348,
    CSSPropertyInternalTextAutosizingStatus = 349,
    CSSPropertyWebkitBackdropFilter = 350,
    CSSPropertyWebkitBackgroundClip = 351,
    CSSPropertyWebkitBackgroundOrigin = 352,
    CSSPropertyWebkitBorderHorizontalSpacing = 353,
    CSSPropertyWebkitBorderVerticalSpacing = 354,
    CSSPropertyWebkitBoxAlign = 355,
    CSSPropertyWebkitBoxDecorationBreak = 356,
    CSSPropertyWebkitBoxDirection = 357,
    CSSPropertyWebkitBoxFlex = 358,
    CSSPropertyWebkitBoxFlexGroup = 359,
    CSSPropertyWebkitBoxLines = 360,
    CSSPropertyWebkitBoxOrdinalGroup = 361,
    CSSPropertyWebkitBoxOrient = 362,
    CSSPropertyWebkitBoxPack = 363,
    CSSPropertyWebkitBoxReflect = 364,
    CSSPropertyWebkitBoxShadow = 365,
    CSSPropertyWebkitColumnAxis = 366,
    CSSPropertyWebkitColumnProgression = 367,
    CSSPropertyWebkitCursorVisibility = 368,
    CSSPropertyWebkitFontSizeDelta = 369,
    CSSPropertyWebkitHyphenateLimitAfter = 370,
    CSSPropertyWebkitHyphenateLimitBefore = 371,
    CSSPropertyWebkitHyphenateLimitLines = 372,
    CSSPropertyWebkitInitialLetter = 373,
    CSSPropertyWebkitLineAlign = 374,
    CSSPropertyWebkitLineBoxContain = 375,
    CSSPropertyWebkitLineClamp = 376,
    CSSPropertyWebkitLineGrid = 377,
    CSSPropertyWebkitLineSnap = 378,
    CSSPropertyWebkitMarqueeDirection = 379,
    CSSPropertyWebkitMarqueeIncrement = 380,
    CSSPropertyWebkitMarqueeRepetition = 381,
    CSSPropertyWebkitMarqueeSpeed = 382,
    CSSPropertyWebkitMarqueeStyle = 383,
    CSSPropertyWebkitMaskClip = 384,
    CSSPropertyWebkitMaskComposite = 385,
    CSSPropertyWebkitMaskPositionX = 386,
    CSSPropertyWebkitMaskPositionY = 387,
    CSSPropertyWebkitMaskSourceType = 388,
    CSSPropertyWebkitNbspMode = 389,
    CSSPropertyWebkitRtlOrdering = 390,
    CSSPropertyWebkitRubyPosition = 391,
    CSSPropertyWebkitTapHighlightColor = 392,
    CSSPropertyWebkitTextCombine = 393,
    CSSPropertyWebkitTextDecorationsInEffect = 394,
    CSSPropertyWebkitTextFillColor = 395,
    CSSPropertyWebkitTextSecurity = 396,
    CSSPropertyWebkitTextStrokeColor = 397,
    CSSPropertyWebkitTextStrokeWidth = 398,
    CSSPropertyWebkitUserDrag = 399,
    CSSPropertyWebkitUserModify = 400,
    CSSPropertyWebkitUserSelect = 401,
    CSSPropertyBorderBottomColor = 402,
    CSSPropertyBorderBottomLeftRadius = 403,
    CSSPropertyBorderBottomRightRadius = 404,
    CSSPropertyBorderBottomStyle = 405,
    CSSPropertyBorderBottomWidth = 406,
    CSSPropertyBorderLeftColor = 407,
    CSSPropertyBorderLeftStyle = 408,
    CSSPropertyBorderLeftWidth = 409,
    CSSPropertyBorderRightColor = 410,
    CSSPropertyBorderRightStyle = 411,
    CSSPropertyBorderRightWidth = 412,
    CSSPropertyBorderTopColor = 413,
    CSSPropertyBorderTopLeftRadius = 414,
    CSSPropertyBorderTopRightRadius = 415,
    CSSPropertyBorderTopStyle = 416,
    CSSPropertyBorderTopWidth = 417,
    CSSPropertyBottom = 418,
    CSSPropertyContainIntrinsicHeight = 419,
    CSSPropertyContainIntrinsicWidth = 420,
    CSSPropertyCornerBottomLeftShape = 421,
    CSSPropertyCornerBottomRightShape = 422,
    CSSPropertyCornerTopLeftShape = 423,
    CSSPropertyCornerTopRightShape = 424,
    CSSPropertyHeight = 425,
    CSSPropertyLeft = 426,
    CSSPropertyMarginBottom = 427,
    CSSPropertyMarginLeft = 428,
    CSSPropertyMarginRight = 429,
    CSSPropertyMarginTop = 430,
    CSSPropertyMaxHeight = 431,
    CSSPropertyMaxWidth = 432,
    CSSPropertyMinHeight = 433,
    CSSPropertyMinWidth = 434,
    CSSPropertyOverflowX = 435,
    CSSPropertyOverflowY = 436,
    CSSPropertyOverscrollBehaviorX = 437,
    CSSPropertyOverscrollBehaviorY = 438,
    CSSPropertyPaddingBottom = 439,
    CSSPropertyPaddingLeft = 440,
    CSSPropertyPaddingRight = 441,
    CSSPropertyPaddingTop = 442,
    CSSPropertyRight = 443,
    CSSPropertyScrollMarginBottom = 444,
    CSSPropertyScrollMarginLeft = 445,
    CSSPropertyScrollMarginRight = 446,
    CSSPropertyScrollMarginTop = 447,
    CSSPropertyScrollPaddingBottom = 448,
    CSSPropertyScrollPaddingLeft = 449,
    CSSPropertyScrollPaddingRight = 450,
    CSSPropertyScrollPaddingTop = 451,
    CSSPropertyTop = 452,
    CSSPropertyWidth = 453,
    CSSPropertyBlockSize = 454,
    CSSPropertyBorderBlockEndColor = 455,
    CSSPropertyBorderBlockEndStyle = 456,
    CSSPropertyBorderBlockEndWidth = 457,
    CSSPropertyBorderBlockStartColor = 458,
    CSSPropertyBorderBlockStartStyle = 459,
    CSSPropertyBorderBlockStartWidth = 460,
    CSSPropertyBorderEndEndRadius = 461,
    CSSPropertyBorderEndStartRadius = 462,
    CSSPropertyBorderInlineEndColor = 463,
    CSSPropertyBorderInlineEndStyle = 464,
    CSSPropertyBorderInlineEndWidth = 465,
    CSSPropertyBorderInlineStartColor = 466,
    CSSPropertyBorderInlineStartStyle = 467,
    CSSPropertyBorderInlineStartWidth = 468,
    CSSPropertyBorderStartEndRadius = 469,
    CSSPropertyBorderStartStartRadius = 470,
    CSSPropertyContainIntrinsicBlockSize = 471,
    CSSPropertyContainIntrinsicInlineSize = 472,
    CSSPropertyCornerEndEndShape = 473,
    CSSPropertyCornerEndStartShape = 474,
    CSSPropertyCornerStartEndShape = 475,
    CSSPropertyCornerStartStartShape = 476,
    CSSPropertyInlineSize = 477,
    CSSPropertyInsetBlockEnd = 478,
    CSSPropertyInsetBlockStart = 479,
    CSSPropertyInsetInlineEnd = 480,
    CSSPropertyInsetInlineStart = 481,
    CSSPropertyMarginBlockEnd = 482,
    CSSPropertyMarginBlockStart = 483,
    CSSPropertyMarginInlineEnd = 484,
    CSSPropertyMarginInlineStart = 485,
    CSSPropertyMaxBlockSize = 486,
    CSSPropertyMaxInlineSize = 487,
    CSSPropertyMinBlockSize = 488,
    CSSPropertyMinInlineSize = 489,
    CSSPropertyOverflowBlock = 490,
    CSSPropertyOverflowInline = 491,
    CSSPropertyOverscrollBehaviorBlock = 492,
    CSSPropertyOverscrollBehaviorInline = 493,
    CSSPropertyPaddingBlockEnd = 494,
    CSSPropertyPaddingBlockStart = 495,
    CSSPropertyPaddingInlineEnd = 496,
    CSSPropertyPaddingInlineStart = 497,
    CSSPropertyScrollMarginBlockEnd = 498,
    CSSPropertyScrollMarginBlockStart = 499,
    CSSPropertyScrollMarginInlineEnd = 500,
    CSSPropertyScrollMarginInlineStart = 501,
    CSSPropertyScrollPaddingBlockEnd = 502,
    CSSPropertyScrollPaddingBlockStart = 503,
    CSSPropertyScrollPaddingInlineEnd = 504,
    CSSPropertyScrollPaddingInlineStart = 505,
    CSSPropertyAll = 506,
    CSSPropertyAnimation = 507,
    CSSPropertyAnimationRange = 508,
    CSSPropertyBackground = 509,
    CSSPropertyBackgroundPosition = 510,
    CSSPropertyBlockStep = 511,
    CSSPropertyBorder = 512,
    CSSPropertyBorderBlock = 513,
    CSSPropertyBorderBlockColor = 514,
    CSSPropertyBorderBlockEnd = 515,
    CSSPropertyBorderBlockStart = 516,
    CSSPropertyBorderBlockStyle = 517,
    CSSPropertyBorderBlockWidth = 518,
    CSSPropertyBorderBottom = 519,
    CSSPropertyBorderColor = 520,
    CSSPropertyBorderImage = 521,
    CSSPropertyBorderInline = 522,
    CSSPropertyBorderInlineColor = 523,
    CSSPropertyBorderInlineEnd = 524,
    CSSPropertyBorderInlineStart = 525,
    CSSPropertyBorderInlineStyle = 526,
    CSSPropertyBorderInlineWidth = 527,
    CSSPropertyBorderLeft = 528,
    CSSPropertyBorderRadius = 529,
    CSSPropertyBorderRight = 530,
    CSSPropertyBorderSpacing = 531,
    CSSPropertyBorderStyle = 532,
    CSSPropertyBorderTop = 533,
    CSSPropertyBorderWidth = 534,
    CSSPropertyColumnRule = 535,
    CSSPropertyColumns = 536,
    CSSPropertyContainIntrinsicSize = 537,
    CSSPropertyContainer = 538,
    CSSPropertyCornerBlockEndShape = 539,
    CSSPropertyCornerBlockStartShape = 540,
    CSSPropertyCornerBottomShape = 541,
    CSSPropertyCornerInlineEndShape = 542,
    CSSPropertyCornerInlineStartShape = 543,
    CSSPropertyCornerLeftShape = 544,
    CSSPropertyCornerRightShape = 545,
    CSSPropertyCornerShape = 546,
    CSSPropertyCornerTopShape = 547,
    CSSPropertyFlex = 548,
    CSSPropertyFlexFlow = 549,
    CSSPropertyFont = 550,
    CSSPropertyFontSynthesis = 551,
    CSSPropertyFontVariant = 552,
    CSSPropertyGap = 553,
    CSSPropertyGrid = 554,
    CSSPropertyGridArea = 555,
    CSSPropertyGridColumn = 556,
    CSSPropertyGridRow = 557,
    CSSPropertyGridTemplate = 558,
    CSSPropertyInset = 559,
    CSSPropertyInsetBlock = 560,
    CSSPropertyInsetInline = 561,
    CSSPropertyLineClamp = 562,
    CSSPropertyListStyle = 563,
    CSSPropertyMargin = 564,
    CSSPropertyMarginBlock = 565,
    CSSPropertyMarginInline = 566,
    CSSPropertyMarker = 567,
    CSSPropertyMask = 568,
    CSSPropertyMaskBorder = 569,
    CSSPropertyMaskPosition = 570,
    CSSPropertyOffset = 571,
    CSSPropertyOutline = 572,
    CSSPropertyOverflow = 573,
    CSSPropertyOverscrollBehavior = 574,
    CSSPropertyPadding = 575,
    CSSPropertyPaddingBlock = 576,
    CSSPropertyPaddingInline = 577,
    CSSPropertyPageBreakAfter = 578,
    CSSPropertyPageBreakBefore = 579,
    CSSPropertyPageBreakInside = 580,
    CSSPropertyPerspectiveOrigin = 581,
    CSSPropertyPlaceContent = 582,
    CSSPropertyPlaceItems = 583,
    CSSPropertyPlaceSelf = 584,
    CSSPropertyPositionTry = 585,
    CSSPropertyScrollMargin = 586,
    CSSPropertyScrollMarginBlock = 587,
    CSSPropertyScrollMarginInline = 588,
    CSSPropertyScrollPadding = 589,
    CSSPropertyScrollPaddingBlock = 590,
    CSSPropertyScrollPaddingInline = 591,
    CSSPropertyScrollTimeline = 592,
    CSSPropertyTextBox = 593,
    CSSPropertyTextDecoration = 594,
    CSSPropertyTextDecorationSkip = 595,
    CSSPropertyTextEmphasis = 596,
    CSSPropertyTextWrap = 597,
    CSSPropertyTimelineTriggerActivationRange = 598,
    CSSPropertyTimelineTriggerActiveRange = 599,
    CSSPropertyTransformOrigin = 600,
    CSSPropertyTransition = 601,
    CSSPropertyViewTimeline = 602,
    CSSPropertyWhiteSpace = 603,
    CSSPropertyWebkitBackgroundSize = 604,
    CSSPropertyWebkitBorderImage = 605,
    CSSPropertyWebkitBorderRadius = 606,
    CSSPropertyWebkitColumnBreakAfter = 607,
    CSSPropertyWebkitColumnBreakBefore = 608,
    CSSPropertyWebkitColumnBreakInside = 609,
    CSSPropertyWebkitMask = 610,
    CSSPropertyWebkitMaskBoxImage = 611,
    CSSPropertyWebkitMaskPosition = 612,
    CSSPropertyWebkitPerspective = 613,
    CSSPropertyWebkitTextOrientation = 614,
    CSSPropertyWebkitTextStroke = 615,
};

// Enum value of the first "real" CSS property, which excludes
// CSSPropertyInvalid and CSSPropertyCustom.
constexpr uint16_t firstCSSProperty = 2;
// Total number of enum values in the CSSPropertyID enum. If making an array
// that can be indexed into using the enum value, use this as the size.
constexpr uint16_t cssPropertyIDEnumValueCount = 616;
// Number of "real" CSS properties. This differs from cssPropertyIDEnumValueCount,
// as this doesn't consider CSSPropertyInvalid and CSSPropertyCustom.
constexpr uint16_t numCSSProperties = 614;
constexpr unsigned maxCSSPropertyNameLength = 39;
constexpr auto firstTopPriorityProperty = CSSPropertyID::CSSPropertyAppearance;
constexpr auto lastTopPriorityProperty = CSSPropertyID::CSSPropertyWritingMode;
constexpr auto firstHighPriorityProperty = CSSPropertyID::CSSPropertyDirection;
constexpr auto lastHighPriorityProperty = CSSPropertyID::CSSPropertyWordSpacing;
constexpr auto firstMediumPriorityProperty = CSSPropertyID::CSSPropertyBackgroundImage;
constexpr auto lastMediumPriorityProperty = CSSPropertyID::CSSPropertyMaskImage;
constexpr auto firstLowPriorityProperty = CSSPropertyID::CSSPropertyAccentColor;
constexpr auto lastLowPriorityProperty = CSSPropertyID::CSSPropertyWebkitUserSelect;
constexpr auto firstLogicalGroupPhysicalProperty = CSSPropertyID::CSSPropertyBorderBottomColor;
constexpr auto lastLogicalGroupPhysicalProperty = CSSPropertyID::CSSPropertyWidth;
constexpr auto firstLogicalGroupLogicalProperty = CSSPropertyID::CSSPropertyBlockSize;
constexpr auto lastLogicalGroupLogicalProperty = CSSPropertyID::CSSPropertyScrollPaddingInlineStart;
constexpr auto firstLogicalGroupProperty = firstLogicalGroupPhysicalProperty;
constexpr auto lastLogicalGroupProperty = lastLogicalGroupLogicalProperty;
constexpr auto firstShorthandProperty = CSSPropertyID::CSSPropertyAll;
constexpr auto lastShorthandProperty = CSSPropertyID::CSSPropertyWebkitTextStroke;
constexpr uint16_t numCSSPropertyLonghands = firstShorthandProperty - firstCSSProperty;

extern const std::array<CSSPropertyID, 467> computedPropertyIDs;

template<CSSPropertyID C> struct PropertyNameConstant {
    static constexpr auto value = C;
    constexpr bool operator==(const PropertyNameConstant&) const = default;
    constexpr bool operator==(CSSPropertyID other) const { return value == other; }
};

struct CSSPropertySettings {
    WTF_DEPRECATED_MAKE_STRUCT_FAST_ALLOCATED(CSSPropertySettings);

    bool accentColorEnabled : 1 { false };
    bool animationTriggersEnabled : 1 { false };
    bool colorFilterEnabled : 1 { false };
    bool cssAnchorPositioningEnabled : 1 { false };
    bool cssCornerShapeEnabled : 1 { false };
    bool cssDPropertyEnabled : 1 { false };
    bool cssFieldSizingEnabled : 1 { false };
    bool cssFontFaceMetricOverrideDescriptorsEnabled : 1 { false };
    bool cssFontVariantEmojiEnabled : 1 { false };
    bool cssFunctionAtRuleEnabled : 1 { false };
    bool cssInputSecurityEnabled : 1 { false };
    bool cssLineClampEnabled : 1 { false };
    bool cssLineFitEdgeEnabled : 1 { false };
    bool cssMathDepthEnabled : 1 { false };
    bool cssObjectViewBoxEnabled : 1 { false };
    bool cssOverflowClipMarginEnabled : 1 { false };
    bool cssRhythmicSizingEnabled : 1 { false };
    bool cssScrollAnchoringEnabled : 1 { false };
    bool cssScrollbarColorEnabled : 1 { false };
    bool cssScrollbarGutterEnabled : 1 { false };
    bool cssScrollbarWidthEnabled : 1 { false };
    bool cssTextDecorationInsetEnabled : 1 { false };
    bool cssTextGroupAlignEnabled : 1 { false };
    bool cssTextJustifyEnabled : 1 { false };
    bool cssTextSpacingTrimEnabled : 1 { false };
    bool cssUnprefixedBackdropFilterEnabled : 1 { false };
    bool cssWhiteSpaceTrimEnabled : 1 { false };
    bool cssWrapInsideEnabled : 1 { false };
    bool overscrollBehaviorEnabled : 1 { false };
    bool supportHDRDisplayEnabled : 1 { false };
    bool textAutosizingEnabled : 1 { false };
    bool useSystemAppearance : 1 { false };

    CSSPropertySettings() = default;
    explicit CSSPropertySettings(const Settings&);
};

bool operator==(const CSSPropertySettings&, const CSSPropertySettings&);
void add(Hasher&, const CSSPropertySettings&);

constexpr bool isLonghand(CSSPropertyID);
bool isInternal(CSSPropertyID);
bool isExposed(CSSPropertyID, const Settings*);
bool isExposed(CSSPropertyID, const Settings&);
bool isExposed(CSSPropertyID, const CSSPropertySettings*);
bool isExposed(CSSPropertyID, const CSSPropertySettings&);

CSSPropertyID findCSSProperty(const char* characters, unsigned length);
ASCIILiteral nameLiteral(CSSPropertyID);
const AtomString& nameString(CSSPropertyID);
String nameForIDL(CSSPropertyID);

CSSPropertyID cascadeAliasProperty(CSSPropertyID);

template<CSSPropertyID first, CSSPropertyID last> struct CSSPropertiesRange {
    struct Iterator {
        uint16_t index { static_cast<uint16_t>(first) };
        constexpr CSSPropertyID operator*() const { return static_cast<CSSPropertyID>(index); }
        constexpr Iterator& operator++() { ++index; return *this; }
        constexpr bool operator==(std::nullptr_t) const { return index > static_cast<uint16_t>(last); }
    };
    static constexpr Iterator begin() { return { }; }
    static constexpr std::nullptr_t end() { return nullptr; }
    static constexpr uint16_t size() { return last - first + 1; }
};
using AllCSSPropertiesRange = CSSPropertiesRange<static_cast<CSSPropertyID>(firstCSSProperty), lastShorthandProperty>;
using AllLonghandCSSPropertiesRange = CSSPropertiesRange<static_cast<CSSPropertyID>(firstCSSProperty), lastLogicalGroupProperty>;
constexpr AllCSSPropertiesRange allCSSProperties() { return { }; }
constexpr AllLonghandCSSPropertiesRange allLonghandCSSProperties() { return { }; }

constexpr bool isLonghand(CSSPropertyID property)
{
    return static_cast<uint16_t>(property) >= firstCSSProperty
        && static_cast<uint16_t>(property) < static_cast<uint16_t>(firstShorthandProperty);
}
constexpr bool isShorthand(CSSPropertyID property)
{
    return static_cast<uint16_t>(property) >= static_cast<uint16_t>(firstShorthandProperty)
        && static_cast<uint16_t>(property) <= static_cast<uint16_t>(lastShorthandProperty);
}

constexpr bool isLogicalPropertyGroupProperty(CSSPropertyID property)
{
    return static_cast<uint16_t>(property) >= static_cast<uint16_t>(firstLogicalGroupPhysicalProperty)
        && static_cast<uint16_t>(property) <= static_cast<uint16_t>(lastLogicalGroupLogicalProperty);
}

constexpr bool isLogicalPropertyGroupPhysicalProperty(CSSPropertyID property)
{
    return static_cast<uint16_t>(property) >= static_cast<uint16_t>(firstLogicalGroupPhysicalProperty)
        && static_cast<uint16_t>(property) <= static_cast<uint16_t>(lastLogicalGroupPhysicalProperty);
}

constexpr bool isLogicalPropertyGroupLogicalProperty(CSSPropertyID property)
{
    return static_cast<uint16_t>(property) >= static_cast<uint16_t>(firstLogicalGroupLogicalProperty)
        && static_cast<uint16_t>(property) <= static_cast<uint16_t>(lastLogicalGroupLogicalProperty);
}

WTF::TextStream& operator<<(WTF::TextStream&, CSSPropertyID);

} // namespace WebCore

namespace WTF {

template<> struct DefaultHash<WebCore::CSSPropertyID> : IntHash<unsigned> { };

template<> struct HashTraits<WebCore::CSSPropertyID> : GenericHashTraits<WebCore::CSSPropertyID> {
    static const bool emptyValueIsZero = true;
    static void constructDeletedValue(WebCore::CSSPropertyID& slot) { slot = static_cast<WebCore::CSSPropertyID>(std::numeric_limits<uint16_t>::max()); }
    static bool isDeletedValue(WebCore::CSSPropertyID value) { return static_cast<uint16_t>(value) == std::numeric_limits<uint16_t>::max(); }
};

} // namespace WTF

namespace std {

template<> struct iterator_traits<WebCore::AllCSSPropertiesRange::Iterator> { using value_type = WebCore::CSSPropertyID; };
template<> struct iterator_traits<WebCore::AllLonghandCSSPropertiesRange::Iterator> { using value_type = WebCore::CSSPropertyID; };

} // namespace std

