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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 537;
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::CSSPropertyWebkitUserSelect;
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, 413> computedPropertyIDs;

struct CSSPropertySettings {
    WTF_MAKE_STRUCT_FAST_ALLOCATED;

    bool CSSOMViewSmoothScrollingEnabled { false };
    bool accentColorEnabled { false };
    bool aspectRatioEnabled { false };
    bool colorFilterEnabled { false };
    bool cssContainIntrinsicSizeEnabled { false };
    bool cssContainerQueriesEnabled { false };
    bool cssContainmentEnabled { false };
    bool cssContentVisibilityEnabled { false };
    bool cssCounterStyleAtRulesEnabled { false };
    bool cssCustomPropertiesAndValuesEnabled { false };
    bool cssFontFaceSizeAdjustEnabled { false };
    bool cssFontVariantEmojiEnabled { false };
    bool cssIndividualTransformPropertiesEnabled { false };
    bool cssInputSecurityEnabled { false };
    bool cssMarginTrimEnabled { false };
    bool cssMotionPathEnabled { false };
    bool cssRhythmicSizingEnabled { false };
    bool cssScrollAnchoringEnabled { false };
    bool cssScrollbarColorEnabled { false };
    bool cssScrollbarGutterEnabled { false };
    bool cssScrollbarWidthEnabled { false };
    bool cssTextAlignLastEnabled { false };
    bool cssTextBoxTrimEnabled { false };
    bool cssTextGroupAlignEnabled { false };
    bool cssTextJustifyEnabled { false };
    bool cssTextSpacingEnabled { false };
    bool cssTextWrapStyleEnabled { false };
    bool cssUnprefixedBackdropFilterEnabled { false };
    bool masonryEnabled { false };
    bool overscrollBehaviorEnabled { false };
    bool textAutosizingEnabled { 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

