// 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,
    CSSPropertyFontVariantLigatures = 23,
    CSSPropertyFontVariantNumeric = 24,
    CSSPropertyFontVariantPosition = 25,
    CSSPropertyFontVariationSettings = 26,
    CSSPropertyFontWeight = 27,
    CSSPropertyTextOrientation = 28,
    CSSPropertyTextRendering = 29,
    CSSPropertyZoom = 30,
    CSSPropertyWebkitFontSmoothing = 31,
    CSSPropertyWebkitLocale = 32,
    CSSPropertyWebkitTextSizeAdjust = 33,
    CSSPropertyWebkitTextZoom = 34,
    CSSPropertyLetterSpacing = 35,
    CSSPropertyAccentColor = 36,
    CSSPropertyAdditiveSymbols = 37,
    CSSPropertyAlignContent = 38,
    CSSPropertyAlignItems = 39,
    CSSPropertyAlignSelf = 40,
    CSSPropertyAlignTracks = 41,
    CSSPropertyAlignmentBaseline = 42,
    CSSPropertyAlt = 43,
    CSSPropertyAnimationComposition = 44,
    CSSPropertyAnimationDelay = 45,
    CSSPropertyAnimationDirection = 46,
    CSSPropertyAnimationDuration = 47,
    CSSPropertyAnimationFillMode = 48,
    CSSPropertyAnimationIterationCount = 49,
    CSSPropertyAnimationName = 50,
    CSSPropertyAnimationPlayState = 51,
    CSSPropertyAnimationTimingFunction = 52,
    CSSPropertyAppearance = 53,
    CSSPropertyAspectRatio = 54,
    CSSPropertyBackfaceVisibility = 55,
    CSSPropertyBackgroundAttachment = 56,
    CSSPropertyBackgroundBlendMode = 57,
    CSSPropertyBackgroundColor = 58,
    CSSPropertyBackgroundImage = 59,
    CSSPropertyBackgroundPositionX = 60,
    CSSPropertyBackgroundPositionY = 61,
    CSSPropertyBackgroundRepeat = 62,
    CSSPropertyBackgroundSize = 63,
    CSSPropertyBasePalette = 64,
    CSSPropertyBaselineShift = 65,
    CSSPropertyBlockStepInsert = 66,
    CSSPropertyBlockStepSize = 67,
    CSSPropertyBorderCollapse = 68,
    CSSPropertyBorderImageOutset = 69,
    CSSPropertyBorderImageRepeat = 70,
    CSSPropertyBorderImageSlice = 71,
    CSSPropertyBorderImageSource = 72,
    CSSPropertyBorderImageWidth = 73,
    CSSPropertyBoxSizing = 74,
    CSSPropertyBreakAfter = 75,
    CSSPropertyBreakBefore = 76,
    CSSPropertyBreakInside = 77,
    CSSPropertyBufferedRendering = 78,
    CSSPropertyCaptionSide = 79,
    CSSPropertyCaretColor = 80,
    CSSPropertyClear = 81,
    CSSPropertyClip = 82,
    CSSPropertyClipPath = 83,
    CSSPropertyClipRule = 84,
    CSSPropertyColorInterpolation = 85,
    CSSPropertyColorInterpolationFilters = 86,
    CSSPropertyColumnCount = 87,
    CSSPropertyColumnFill = 88,
    CSSPropertyColumnGap = 89,
    CSSPropertyColumnRuleColor = 90,
    CSSPropertyColumnRuleStyle = 91,
    CSSPropertyColumnRuleWidth = 92,
    CSSPropertyColumnSpan = 93,
    CSSPropertyColumnWidth = 94,
    CSSPropertyContain = 95,
    CSSPropertyContainerName = 96,
    CSSPropertyContainerType = 97,
    CSSPropertyContent = 98,
    CSSPropertyContentVisibility = 99,
    CSSPropertyCounterIncrement = 100,
    CSSPropertyCounterReset = 101,
    CSSPropertyCursor = 102,
    CSSPropertyCx = 103,
    CSSPropertyCy = 104,
    CSSPropertyDominantBaseline = 105,
    CSSPropertyEmptyCells = 106,
    CSSPropertyFallback = 107,
    CSSPropertyFill = 108,
    CSSPropertyFillOpacity = 109,
    CSSPropertyFillRule = 110,
    CSSPropertyFilter = 111,
    CSSPropertyFlexBasis = 112,
    CSSPropertyFlexDirection = 113,
    CSSPropertyFlexGrow = 114,
    CSSPropertyFlexShrink = 115,
    CSSPropertyFlexWrap = 116,
    CSSPropertyFloat = 117,
    CSSPropertyFloodColor = 118,
    CSSPropertyFloodOpacity = 119,
    CSSPropertyFontDisplay = 120,
    CSSPropertyGlyphOrientationHorizontal = 121,
    CSSPropertyGlyphOrientationVertical = 122,
    CSSPropertyGridAutoColumns = 123,
    CSSPropertyGridAutoFlow = 124,
    CSSPropertyGridAutoRows = 125,
    CSSPropertyGridColumnEnd = 126,
    CSSPropertyGridColumnStart = 127,
    CSSPropertyGridRowEnd = 128,
    CSSPropertyGridRowStart = 129,
    CSSPropertyGridTemplateAreas = 130,
    CSSPropertyGridTemplateColumns = 131,
    CSSPropertyGridTemplateRows = 132,
    CSSPropertyHangingPunctuation = 133,
    CSSPropertyHyphenateCharacter = 134,
    CSSPropertyHyphens = 135,
    CSSPropertyImageOrientation = 136,
    CSSPropertyImageRendering = 137,
    CSSPropertyInherits = 138,
    CSSPropertyInitialValue = 139,
    CSSPropertyInputSecurity = 140,
    CSSPropertyIsolation = 141,
    CSSPropertyJustifyContent = 142,
    CSSPropertyJustifyItems = 143,
    CSSPropertyJustifySelf = 144,
    CSSPropertyJustifyTracks = 145,
    CSSPropertyKerning = 146,
    CSSPropertyLightingColor = 147,
    CSSPropertyLineBreak = 148,
    CSSPropertyLineHeight = 149,
    CSSPropertyListStyleImage = 150,
    CSSPropertyListStylePosition = 151,
    CSSPropertyListStyleType = 152,
    CSSPropertyMarginTrim = 153,
    CSSPropertyMarkerEnd = 154,
    CSSPropertyMarkerMid = 155,
    CSSPropertyMarkerStart = 156,
    CSSPropertyMaskImage = 157,
    CSSPropertyMaskOrigin = 158,
    CSSPropertyMaskRepeat = 159,
    CSSPropertyMaskSize = 160,
    CSSPropertyMaskType = 161,
    CSSPropertyMasonryAutoFlow = 162,
    CSSPropertyMathStyle = 163,
    CSSPropertyMixBlendMode = 164,
    CSSPropertyNegative = 165,
    CSSPropertyObjectFit = 166,
    CSSPropertyObjectPosition = 167,
    CSSPropertyOffsetAnchor = 168,
    CSSPropertyOffsetDistance = 169,
    CSSPropertyOffsetPath = 170,
    CSSPropertyOffsetPosition = 171,
    CSSPropertyOffsetRotate = 172,
    CSSPropertyOpacity = 173,
    CSSPropertyOrder = 174,
    CSSPropertyOrphans = 175,
    CSSPropertyOutlineColor = 176,
    CSSPropertyOutlineOffset = 177,
    CSSPropertyOutlineStyle = 178,
    CSSPropertyOutlineWidth = 179,
    CSSPropertyOverflowAnchor = 180,
    CSSPropertyOverflowWrap = 181,
    CSSPropertyOverflowX = 182,
    CSSPropertyOverflowY = 183,
    CSSPropertyOverrideColors = 184,
    CSSPropertyPad = 185,
    CSSPropertyPage = 186,
    CSSPropertyPaintOrder = 187,
    CSSPropertyPerspective = 188,
    CSSPropertyPerspectiveOriginX = 189,
    CSSPropertyPerspectiveOriginY = 190,
    CSSPropertyPointerEvents = 191,
    CSSPropertyPosition = 192,
    CSSPropertyPrefix = 193,
    CSSPropertyPrintColorAdjust = 194,
    CSSPropertyQuotes = 195,
    CSSPropertyR = 196,
    CSSPropertyRange = 197,
    CSSPropertyResize = 198,
    CSSPropertyRotate = 199,
    CSSPropertyRowGap = 200,
    CSSPropertyRx = 201,
    CSSPropertyRy = 202,
    CSSPropertyScale = 203,
    CSSPropertyScrollBehavior = 204,
    CSSPropertyScrollSnapAlign = 205,
    CSSPropertyScrollSnapStop = 206,
    CSSPropertyScrollSnapType = 207,
    CSSPropertyScrollbarGutter = 208,
    CSSPropertyScrollbarWidth = 209,
    CSSPropertyShapeImageThreshold = 210,
    CSSPropertyShapeMargin = 211,
    CSSPropertyShapeOutside = 212,
    CSSPropertyShapeRendering = 213,
    CSSPropertySize = 214,
    CSSPropertySizeAdjust = 215,
    CSSPropertySpeakAs = 216,
    CSSPropertySrc = 217,
    CSSPropertyStopColor = 218,
    CSSPropertyStopOpacity = 219,
    CSSPropertyStroke = 220,
    CSSPropertyStrokeColor = 221,
    CSSPropertyStrokeDasharray = 222,
    CSSPropertyStrokeDashoffset = 223,
    CSSPropertyStrokeLinecap = 224,
    CSSPropertyStrokeLinejoin = 225,
    CSSPropertyStrokeMiterlimit = 226,
    CSSPropertyStrokeOpacity = 227,
    CSSPropertyStrokeWidth = 228,
    CSSPropertySuffix = 229,
    CSSPropertySymbols = 230,
    CSSPropertySyntax = 231,
    CSSPropertySystem = 232,
    CSSPropertyTabSize = 233,
    CSSPropertyTableLayout = 234,
    CSSPropertyTextAlign = 235,
    CSSPropertyTextAlignLast = 236,
    CSSPropertyTextAnchor = 237,
    CSSPropertyTextAutospace = 238,
    CSSPropertyTextBoxEdge = 239,
    CSSPropertyTextBoxTrim = 240,
    CSSPropertyTextDecorationColor = 241,
    CSSPropertyTextDecorationLine = 242,
    CSSPropertyTextDecorationSkipInk = 243,
    CSSPropertyTextDecorationStyle = 244,
    CSSPropertyTextDecorationThickness = 245,
    CSSPropertyTextEmphasisColor = 246,
    CSSPropertyTextEmphasisPosition = 247,
    CSSPropertyTextEmphasisStyle = 248,
    CSSPropertyTextGroupAlign = 249,
    CSSPropertyTextIndent = 250,
    CSSPropertyTextJustify = 251,
    CSSPropertyTextOverflow = 252,
    CSSPropertyTextShadow = 253,
    CSSPropertyTextSpacingTrim = 254,
    CSSPropertyTextTransform = 255,
    CSSPropertyTextUnderlineOffset = 256,
    CSSPropertyTextUnderlinePosition = 257,
    CSSPropertyTextWrap = 258,
    CSSPropertyTouchAction = 259,
    CSSPropertyTransform = 260,
    CSSPropertyTransformBox = 261,
    CSSPropertyTransformOriginX = 262,
    CSSPropertyTransformOriginY = 263,
    CSSPropertyTransformOriginZ = 264,
    CSSPropertyTransformStyle = 265,
    CSSPropertyTransitionDelay = 266,
    CSSPropertyTransitionDuration = 267,
    CSSPropertyTransitionProperty = 268,
    CSSPropertyTransitionTimingFunction = 269,
    CSSPropertyTranslate = 270,
    CSSPropertyUnicodeBidi = 271,
    CSSPropertyUnicodeRange = 272,
    CSSPropertyVectorEffect = 273,
    CSSPropertyVerticalAlign = 274,
    CSSPropertyVisibility = 275,
    CSSPropertyWhiteSpace = 276,
    CSSPropertyWhiteSpaceCollapse = 277,
    CSSPropertyWidows = 278,
    CSSPropertyWillChange = 279,
    CSSPropertyWordBoundaryDetection = 280,
    CSSPropertyWordBreak = 281,
    CSSPropertyWordSpacing = 282,
    CSSPropertyX = 283,
    CSSPropertyY = 284,
    CSSPropertyZIndex = 285,
    CSSPropertyAppleColorFilter = 286,
    CSSPropertyApplePayButtonStyle = 287,
    CSSPropertyApplePayButtonType = 288,
    CSSPropertyInternalTextAutosizingStatus = 289,
    CSSPropertyWebkitBackdropFilter = 290,
    CSSPropertyWebkitBorderHorizontalSpacing = 291,
    CSSPropertyWebkitBorderVerticalSpacing = 292,
    CSSPropertyWebkitBoxAlign = 293,
    CSSPropertyWebkitBoxDecorationBreak = 294,
    CSSPropertyWebkitBoxDirection = 295,
    CSSPropertyWebkitBoxFlex = 296,
    CSSPropertyWebkitBoxFlexGroup = 297,
    CSSPropertyWebkitBoxLines = 298,
    CSSPropertyWebkitBoxOrdinalGroup = 299,
    CSSPropertyWebkitBoxOrient = 300,
    CSSPropertyWebkitBoxPack = 301,
    CSSPropertyWebkitBoxReflect = 302,
    CSSPropertyWebkitColumnAxis = 303,
    CSSPropertyWebkitColumnProgression = 304,
    CSSPropertyWebkitCursorVisibility = 305,
    CSSPropertyWebkitFontSizeDelta = 306,
    CSSPropertyWebkitHyphenateLimitAfter = 307,
    CSSPropertyWebkitHyphenateLimitBefore = 308,
    CSSPropertyWebkitHyphenateLimitLines = 309,
    CSSPropertyWebkitInitialLetter = 310,
    CSSPropertyWebkitLineAlign = 311,
    CSSPropertyWebkitLineBoxContain = 312,
    CSSPropertyWebkitLineClamp = 313,
    CSSPropertyWebkitLineGrid = 314,
    CSSPropertyWebkitLineSnap = 315,
    CSSPropertyWebkitMarqueeDirection = 316,
    CSSPropertyWebkitMarqueeIncrement = 317,
    CSSPropertyWebkitMarqueeRepetition = 318,
    CSSPropertyWebkitMarqueeSpeed = 319,
    CSSPropertyWebkitMarqueeStyle = 320,
    CSSPropertyWebkitMaskBoxImageOutset = 321,
    CSSPropertyWebkitMaskBoxImageRepeat = 322,
    CSSPropertyWebkitMaskBoxImageSlice = 323,
    CSSPropertyWebkitMaskBoxImageSource = 324,
    CSSPropertyWebkitMaskBoxImageWidth = 325,
    CSSPropertyWebkitMaskPositionX = 326,
    CSSPropertyWebkitMaskPositionY = 327,
    CSSPropertyWebkitNbspMode = 328,
    CSSPropertyWebkitRtlOrdering = 329,
    CSSPropertyWebkitTapHighlightColor = 330,
    CSSPropertyWebkitTextDecorationsInEffect = 331,
    CSSPropertyWebkitTextFillColor = 332,
    CSSPropertyWebkitTextSecurity = 333,
    CSSPropertyWebkitTextStrokeColor = 334,
    CSSPropertyWebkitTextStrokeWidth = 335,
    CSSPropertyWebkitUserDrag = 336,
    CSSPropertyWebkitUserModify = 337,
    CSSPropertyWebkitUserSelect = 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,
    CSSPropertyWebkitBackgroundClip = 438,
    CSSPropertyWebkitBackgroundOrigin = 439,
    CSSPropertyWebkitBoxShadow = 440,
    CSSPropertyWebkitMaskClip = 441,
    CSSPropertyWebkitMaskComposite = 442,
    CSSPropertyWebkitMaskSourceType = 443,
    CSSPropertyWebkitTextCombine = 444,
    CSSPropertyAll = 445,
    CSSPropertyAnimation = 446,
    CSSPropertyBackground = 447,
    CSSPropertyBackgroundPosition = 448,
    CSSPropertyBorder = 449,
    CSSPropertyBorderBlock = 450,
    CSSPropertyBorderBlockColor = 451,
    CSSPropertyBorderBlockEnd = 452,
    CSSPropertyBorderBlockStart = 453,
    CSSPropertyBorderBlockStyle = 454,
    CSSPropertyBorderBlockWidth = 455,
    CSSPropertyBorderBottom = 456,
    CSSPropertyBorderColor = 457,
    CSSPropertyBorderImage = 458,
    CSSPropertyBorderInline = 459,
    CSSPropertyBorderInlineColor = 460,
    CSSPropertyBorderInlineEnd = 461,
    CSSPropertyBorderInlineStart = 462,
    CSSPropertyBorderInlineStyle = 463,
    CSSPropertyBorderInlineWidth = 464,
    CSSPropertyBorderLeft = 465,
    CSSPropertyBorderRadius = 466,
    CSSPropertyBorderRight = 467,
    CSSPropertyBorderSpacing = 468,
    CSSPropertyBorderStyle = 469,
    CSSPropertyBorderTop = 470,
    CSSPropertyBorderWidth = 471,
    CSSPropertyColumnRule = 472,
    CSSPropertyColumns = 473,
    CSSPropertyContainIntrinsicSize = 474,
    CSSPropertyContainer = 475,
    CSSPropertyFlex = 476,
    CSSPropertyFlexFlow = 477,
    CSSPropertyFont = 478,
    CSSPropertyFontSynthesis = 479,
    CSSPropertyFontVariant = 480,
    CSSPropertyGap = 481,
    CSSPropertyGrid = 482,
    CSSPropertyGridArea = 483,
    CSSPropertyGridColumn = 484,
    CSSPropertyGridRow = 485,
    CSSPropertyGridTemplate = 486,
    CSSPropertyInset = 487,
    CSSPropertyInsetBlock = 488,
    CSSPropertyInsetInline = 489,
    CSSPropertyListStyle = 490,
    CSSPropertyMargin = 491,
    CSSPropertyMarginBlock = 492,
    CSSPropertyMarginInline = 493,
    CSSPropertyMarker = 494,
    CSSPropertyMask = 495,
    CSSPropertyMaskPosition = 496,
    CSSPropertyOffset = 497,
    CSSPropertyOutline = 498,
    CSSPropertyOverflow = 499,
    CSSPropertyOverscrollBehavior = 500,
    CSSPropertyPadding = 501,
    CSSPropertyPaddingBlock = 502,
    CSSPropertyPaddingInline = 503,
    CSSPropertyPageBreakAfter = 504,
    CSSPropertyPageBreakBefore = 505,
    CSSPropertyPageBreakInside = 506,
    CSSPropertyPerspectiveOrigin = 507,
    CSSPropertyPlaceContent = 508,
    CSSPropertyPlaceItems = 509,
    CSSPropertyPlaceSelf = 510,
    CSSPropertyScrollMargin = 511,
    CSSPropertyScrollMarginBlock = 512,
    CSSPropertyScrollMarginInline = 513,
    CSSPropertyScrollPadding = 514,
    CSSPropertyScrollPaddingBlock = 515,
    CSSPropertyScrollPaddingInline = 516,
    CSSPropertyTextDecoration = 517,
    CSSPropertyTextDecorationSkip = 518,
    CSSPropertyTextEmphasis = 519,
    CSSPropertyTransformOrigin = 520,
    CSSPropertyTransition = 521,
    CSSPropertyWebkitBackgroundSize = 522,
    CSSPropertyWebkitBorderImage = 523,
    CSSPropertyWebkitBorderRadius = 524,
    CSSPropertyWebkitColumnBreakAfter = 525,
    CSSPropertyWebkitColumnBreakBefore = 526,
    CSSPropertyWebkitColumnBreakInside = 527,
    CSSPropertyWebkitMask = 528,
    CSSPropertyWebkitMaskBoxImage = 529,
    CSSPropertyWebkitMaskPosition = 530,
    CSSPropertyWebkitPerspective = 531,
    CSSPropertyWebkitTextDecoration = 532,
    CSSPropertyWebkitTextOrientation = 533,
    CSSPropertyWebkitTextStroke = 534,
};

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 533;
constexpr unsigned maxCSSPropertyNameLength = 34;
constexpr auto firstTopPriorityProperty = CSSPropertyID::CSSPropertyColorScheme;
constexpr auto lastTopPriorityProperty = CSSPropertyID::CSSPropertyWebkitRubyPosition;
constexpr auto firstHighPriorityProperty = CSSPropertyID::CSSPropertyColor;
constexpr auto lastHighPriorityProperty = CSSPropertyID::CSSPropertyLetterSpacing;
constexpr auto firstLowPriorityProperty = CSSPropertyID::CSSPropertyAccentColor;
constexpr auto lastLowPriorityProperty = CSSPropertyID::CSSPropertyWebkitUserSelect;
constexpr auto firstDeferredProperty = CSSPropertyID::CSSPropertyBackgroundClip;
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, 412> 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 cssIndividualTransformPropertiesEnabled { false };
    bool cssInputSecurityEnabled { false };
    bool cssMarginTrimEnabled { false };
    bool cssMotionPathEnabled { false };
    bool cssRhythmicSizingEnabled { false };
    bool cssScrollAnchoringEnabled { false };
    bool cssScrollbarGutterEnabled { false };
    bool cssScrollbarWidthEnabled { false };
    bool cssTextAlignLastEnabled { false };
    bool cssTextBoxTrimEnabled { false };
    bool cssTextGroupAlignEnabled { false };
    bool cssTextJustifyEnabled { false };
    bool cssTextSpacingEnabled { false };
    bool cssTextWrapEnabled { false };
    bool cssWhiteSpaceCollapseEnabled { false };
    bool masonryEnabled { false };
    bool overscrollBehaviorEnabled { false };
    bool textAutosizingEnabled { false };
    bool webAnimationsCompositeOperationsEnabled { false };
    bool wordBoundaryDetectionEnabled { 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

