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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 547;
constexpr unsigned maxCSSPropertyNameLength = 34;
constexpr auto firstTopPriorityProperty = CSSPropertyID::CSSPropertyColorScheme;
constexpr auto lastTopPriorityProperty = CSSPropertyID::CSSPropertyWebkitRubyPosition;
constexpr auto firstHighPriorityProperty = CSSPropertyID::CSSPropertyColor;
constexpr auto lastHighPriorityProperty = CSSPropertyID::CSSPropertyTextSpacingTrim;
constexpr auto firstLowPriorityProperty = CSSPropertyID::CSSPropertyAccentColor;
constexpr auto lastLowPriorityProperty = CSSPropertyID::CSSPropertyWordSpacing;
constexpr auto firstDeferredProperty = CSSPropertyID::CSSPropertyBackdropFilter;
constexpr auto lastDeferredProperty = CSSPropertyID::CSSPropertyWebkitTextCombine;
constexpr auto firstShorthandProperty = CSSPropertyID::CSSPropertyAll;
constexpr auto lastShorthandProperty = CSSPropertyID::CSSPropertyWebkitTextStroke;
constexpr uint16_t numCSSPropertyLonghands = firstShorthandProperty - firstCSSProperty;
extern const std::array<CSSPropertyID, 421> computedPropertyIDs;

struct CSSPropertySettings {
    WTF_MAKE_STRUCT_FAST_ALLOCATED;

    bool CSSOMViewSmoothScrollingEnabled : 1 { false };
    bool accentColorEnabled : 1 { false };
    bool colorFilterEnabled : 1 { false };
    bool cssContainIntrinsicSizeEnabled : 1 { false };
    bool cssContainerQueriesEnabled : 1 { false };
    bool cssContainmentEnabled : 1 { false };
    bool cssContentVisibilityEnabled : 1 { false };
    bool cssCounterStyleAtRulesEnabled : 1 { false };
    bool cssCustomPropertiesAndValuesEnabled : 1 { false };
    bool cssFieldSizingEnabled : 1 { false };
    bool cssFontFaceSizeAdjustEnabled : 1 { false };
    bool cssFontVariantEmojiEnabled : 1 { false };
    bool cssInputSecurityEnabled : 1 { false };
    bool cssMarginTrimEnabled : 1 { false };
    bool cssMotionPathEnabled : 1 { false };
    bool cssRhythmicSizingEnabled : 1 { false };
    bool cssScrollAnchoringEnabled : 1 { false };
    bool cssScrollbarColorEnabled : 1 { false };
    bool cssScrollbarGutterEnabled : 1 { false };
    bool cssScrollbarWidthEnabled : 1 { false };
    bool cssTextBoxTrimEnabled : 1 { false };
    bool cssTextGroupAlignEnabled : 1 { false };
    bool cssTextJustifyEnabled : 1 { false };
    bool cssTextSpacingEnabled : 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 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 relatedProperty(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), lastDeferredProperty>;
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

