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

constexpr uint16_t firstCSSProperty = 2;
constexpr uint16_t numCSSProperties = 561;
constexpr unsigned maxCSSPropertyNameLength = 34;
constexpr auto firstTopPriorityProperty = CSSPropertyID::CSSPropertyColorScheme;
constexpr auto lastTopPriorityProperty = CSSPropertyID::CSSPropertyWebkitRubyPosition;
constexpr auto firstHighPriorityProperty = CSSPropertyID::CSSPropertyColor;
constexpr auto lastHighPriorityProperty = CSSPropertyID::CSSPropertyTextSpacingTrim;
constexpr auto firstLowPriorityProperty = CSSPropertyID::CSSPropertyAccentColor;
constexpr auto lastLowPriorityProperty = CSSPropertyID::CSSPropertyWordSpacing;
constexpr auto firstLogicalGroupProperty = CSSPropertyID::CSSPropertyBlockSize;
constexpr auto lastLogicalGroupProperty = CSSPropertyID::CSSPropertyWidth;
constexpr auto firstShorthandProperty = CSSPropertyID::CSSPropertyAll;
constexpr auto lastShorthandProperty = CSSPropertyID::CSSPropertyWebkitTextStroke;
constexpr uint16_t numCSSPropertyLonghands = firstShorthandProperty - firstCSSProperty;
extern const std::array<CSSPropertyID, 431> computedPropertyIDs;

struct CSSPropertySettings {
    WTF_MAKE_STRUCT_FAST_ALLOCATED;

    bool CSSOMViewSmoothScrollingEnabled : 1 { false };
    bool accentColorEnabled : 1 { false };
    bool colorFilterEnabled : 1 { false };
    bool crossDocumentViewTransitionsEnabled : 1 { false };
    bool cssAnchorPositioningEnabled : 1 { false };
    bool cssContentVisibilityEnabled : 1 { false };
    bool cssCounterStyleAtRulesEnabled : 1 { false };
    bool cssDPropertyEnabled : 1 { false };
    bool cssFieldSizingEnabled : 1 { false };
    bool cssFontFaceSizeAdjustEnabled : 1 { false };
    bool cssFontVariantEmojiEnabled : 1 { false };
    bool cssInputSecurityEnabled : 1 { false };
    bool cssLineClampEnabled : 1 { false };
    bool cssMarginTrimEnabled : 1 { false };
    bool cssMotionPathEnabled : 1 { false };
    bool cssRhythmicSizingEnabled : 1 { false };
    bool cssRubyAlignEnabled : 1 { false };
    bool cssRubyOverhangEnabled : 1 { false };
    bool cssScrollAnchoringEnabled : 1 { false };
    bool cssScrollbarColorEnabled : 1 { false };
    bool cssScrollbarGutterEnabled : 1 { false };
    bool cssScrollbarWidthEnabled : 1 { false };
    bool cssTextAutospaceEnabled : 1 { false };
    bool cssTextBoxTrimEnabled : 1 { false };
    bool cssTextGroupAlignEnabled : 1 { false };
    bool cssTextJustifyEnabled : 1 { false };
    bool cssTextSpacingEnabled : 1 { false };
    bool cssTextWrapStyleEnabled : 1 { false };
    bool cssUnprefixedBackdropFilterEnabled : 1 { false };
    bool masonryEnabled : 1 { false };
    bool overscrollBehaviorEnabled : 1 { false };
    bool scrollDrivenAnimationsEnabled : 1 { false };
    bool textAutosizingEnabled : 1 { false };
    bool viewTransitionClassesEnabled : 1 { false };
    bool viewTransitionsEnabled : 1 { false };

    CSSPropertySettings() = default;
    explicit CSSPropertySettings(const Settings&);
};

bool operator==(const CSSPropertySettings&, const CSSPropertySettings&);
void add(Hasher&, const CSSPropertySettings&);

constexpr bool isLonghand(CSSPropertyID);
bool isInternal(CSSPropertyID);
bool isExposed(CSSPropertyID, const Settings*);
bool isExposed(CSSPropertyID, const Settings&);
bool isExposed(CSSPropertyID, const CSSPropertySettings*);
bool isExposed(CSSPropertyID, const CSSPropertySettings&);

CSSPropertyID findCSSProperty(const char* characters, unsigned length);
ASCIILiteral nameLiteral(CSSPropertyID);
const AtomString& nameString(CSSPropertyID);
String nameForIDL(CSSPropertyID);

CSSPropertyID cascadeAliasProperty(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), lastLogicalGroupProperty>;
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

