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

// 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 = 591;
// Number of "real" CSS properties. This differs from cssPropertyIDEnumValueCount,
// as this doesn't consider CSSPropertyInvalid and CSSPropertyCustom.
constexpr uint16_t numCSSProperties = 589;
constexpr unsigned maxCSSPropertyNameLength = 34;
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, 455> 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 colorFilterEnabled : 1 { false };
    bool cssAnchorPositioningEnabled : 1 { false };
    bool cssCornerShapeEnabled : 1 { false };
    bool cssDPropertyEnabled : 1 { false };
    bool cssFieldSizingEnabled : 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 cssOverflowClipMarginEnabled : 1 { false };
    bool cssRhythmicSizingEnabled : 1 { false };
    bool cssScrollAnchoringEnabled : 1 { false };
    bool cssScrollbarColorEnabled : 1 { false };
    bool cssScrollbarGutterEnabled : 1 { false };
    bool cssScrollbarWidthEnabled : 1 { false };
    bool cssTextGroupAlignEnabled : 1 { false };
    bool cssTextJustifyEnabled : 1 { false };
    bool cssTextSpacingTrimEnabled : 1 { false };
    bool cssUnprefixedBackdropFilterEnabled : 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

