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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 530;
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, 409> 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 cssScrollbarWidthEnabled { false };
    bool cssTextAlignLastEnabled { false };
    bool cssTextBoxTrimEnabled { false };
    bool cssTextGroupAlignEnabled { false };
    bool cssTextJustifyEnabled { false };
    bool cssTextSpacingEnabled { false };
    bool cssTextWrapEnabled { false };
    bool masonryEnabled { false };
    bool overscrollBehaviorEnabled { false };
    bool textAutosizingEnabled { false };
    bool webAnimationsCompositeOperationsEnabled { 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

