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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 524;
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, 404> 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 cssIndividualTransformPropertiesEnabled { false };
    bool cssInputSecurityEnabled { false };
    bool cssLeadingTrimEnabled { false };
    bool cssMarginTrimEnabled { false };
    bool cssMotionPathEnabled { false };
    bool cssScrollAnchoringEnabled { false };
    bool cssTextAlignLastEnabled { false };
    bool cssTextGroupAlignEnabled { false };
    bool cssTextJustifyEnabled { 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&);
inline bool operator!=(const CSSPropertySettings& a, const CSSPropertySettings& b) { return !(a == b); }
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); }
        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);
}

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

