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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 570;
constexpr unsigned maxCSSPropertyNameLength = 34;
constexpr auto firstTopPriorityProperty = CSSPropertyID::CSSPropertyColorScheme;
constexpr auto lastTopPriorityProperty = CSSPropertyID::CSSPropertyWritingMode;
constexpr auto firstHighPriorityProperty = CSSPropertyID::CSSPropertyColor;
constexpr auto lastHighPriorityProperty = CSSPropertyID::CSSPropertyTextSpacingTrim;
constexpr auto firstLowPriorityProperty = CSSPropertyID::CSSPropertyAccentColor;
constexpr auto lastLowPriorityProperty = CSSPropertyID::CSSPropertyWordSpacing;
constexpr auto firstLogicalGroupProperty = CSSPropertyID::CSSPropertyBlockSize;
constexpr auto lastLogicalGroupProperty = CSSPropertyID::CSSPropertyWidth;
constexpr auto firstShorthandProperty = CSSPropertyID::CSSPropertyAll;
constexpr auto lastShorthandProperty = CSSPropertyID::CSSPropertyWebkitTextStroke;
constexpr uint16_t numCSSPropertyLonghands = firstShorthandProperty - firstCSSProperty;
extern const std::array<CSSPropertyID, 438> computedPropertyIDs;

struct CSSPropertySettings {
    WTF_MAKE_STRUCT_FAST_ALLOCATED;

    bool CSSOMViewSmoothScrollingEnabled : 1 { false };
    bool accentColorEnabled : 1 { false };
    bool colorFilterEnabled : 1 { false };
    bool crossDocumentViewTransitionsEnabled : 1 { false };
    bool cssAnchorPositioningEnabled : 1 { false };
    bool cssContentVisibilityEnabled : 1 { false };
    bool cssCounterStyleAtRulesEnabled : 1 { false };
    bool cssDPropertyEnabled : 1 { false };
    bool cssFieldSizingEnabled : 1 { false };
    bool cssFontFaceSizeAdjustEnabled : 1 { false };
    bool cssFontVariantEmojiEnabled : 1 { false };
    bool cssInputSecurityEnabled : 1 { false };
    bool cssLineClampEnabled : 1 { false };
    bool cssLineFitEdgeEnabled : 1 { false };
    bool cssMarginTrimEnabled : 1 { false };
    bool cssMotionPathEnabled : 1 { false };
    bool cssRhythmicSizingEnabled : 1 { false };
    bool cssRubyAlignEnabled : 1 { false };
    bool cssRubyOverhangEnabled : 1 { false };
    bool cssScrollAnchoringEnabled : 1 { false };
    bool cssScrollbarColorEnabled : 1 { false };
    bool cssScrollbarGutterEnabled : 1 { false };
    bool cssScrollbarWidthEnabled : 1 { false };
    bool cssTextAutospaceEnabled : 1 { false };
    bool cssTextBoxTrimEnabled : 1 { false };
    bool cssTextGroupAlignEnabled : 1 { false };
    bool cssTextJustifyEnabled : 1 { false };
    bool cssTextSpacingTrimEnabled : 1 { false };
    bool cssTextWrapStyleEnabled : 1 { false };
    bool cssUnprefixedBackdropFilterEnabled : 1 { false };
    bool masonryEnabled : 1 { false };
    bool overscrollBehaviorEnabled : 1 { false };
    bool scrollDrivenAnimationsEnabled : 1 { false };
    bool textAutosizingEnabled : 1 { false };
    bool viewTransitionClassesEnabled : 1 { false };
    bool viewTransitionsEnabled : 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);
}

} // 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

