blob: 842aef119297e63e51019308a3ceed7cf8fd701b [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
// This file specifies all the CSS properties we support and the necessary
// information for our code generation. The various supported arguments
// are described below with example usage
parameters: {
// - alias_for: "other-property"
// Properties specifying alias_for should be virtually identical to the
// properties they alias. Minor parsing differences are allowed as long as
// the CSSValues created are of the same format of the aliased property.
alias_for: {
},
// - longhands: ["property", "other-property"]
// The property is a shorthand for several other properties.
longhands: {
},
// - api_class: true|"classname"
// Specifies the existence (and optionally name) of a CSSPropertyAPI for
// this property.
// * Add this flag if a property API has been implemented for this property.
// * If the classname for this is different to the name of the property,
// specify a value for this flag.
// e.g. api_class=CSSPropertyAPIWebkitPadding.
// TODO(meade): When most properties have been implemented, modify this so
// that properties with default classnames do not get this flag, and
// introduce a 'not_implemented' flag instead.
api_class: {
},
// - api_methods: ["method1", "method2"]
// List of methods that are implemented in the CSSPropertyAPI for this
// property.
api_methods: {
default: [],
valid_type: "list",
valid_values: ["ParseSingleValue", "ParseShorthand", "IsLayoutDependent"],
},
// - api_custom_apply_functions_all
// - api_custom_apply_functions_initial
// - api_custom_apply_functions_inherit
// - api_custom_apply_functions_value
// Handlers of the given types will be declared but not defined. Setting
// api_custom_apply_functions_all is equivalent to setting the other three flags
api_custom_apply_functions_all: {
default: false,
valid_type: "bool",
},
api_custom_apply_functions_initial: {
default: false,
valid_type: "bool",
},
api_custom_apply_functions_inherit: {
default: false,
valid_type: "bool",
},
api_custom_apply_functions_value: {
default: false,
valid_type: "bool",
},
// - is_descriptor
// Whether it is a CSS descriptor. Descriptors define the characteristics of
// an at-rule. E.g. @viewport is an at-rule, and width is a valid descriptor
// for @viewport. Descriptors and CSS properties with the same name are
// handled together in this file.
// TODO(crbug.com/752745): Don't use CSSPropertyID for descriptors.
// - is_property
// Whether it is a CSS property. If this is false then is_descriptor must be
// true.
is_descriptor: {
default: false,
valid_type: "bool",
},
is_property: {
default: true,
valid_type: "bool",
},
// - independent
// This property affects only one field on ComputedStyle, and can be set
// directly during inheritance instead of forcing a recalc.
// StyleResolver and StyleAdjuster are not invoked when these properties
// are changed on a parent. Recalcs only happen if at least one
// non-independent inherited property is changed in the parent.
independent: {
default: false,
valid_type: "bool",
},
// - affected_by_all
// The affected_by_all flag indicates whether a change to the CSS property
// "all" affects this property.
// c.f. http://dev.w3.org/csswg/css-cascade/#all-shorthand
// Descriptors (is_property: false) are never affected by changes to the
// all property.
affected_by_all: {
default: true,
valid_type: "bool",
},
// - interpolable
// The interpolable flag indicates whether a property can be animated
// smoothly. If this flag is set, the property should also be added to the
// switch statements in AnimatedStyleBuilder, CSSPropertyEquality and
// CSSAnimatableValueFactory.
// - inherited
// The property will inherit by default if no value is specified, typically
// mentioned in specifications as "Inherited: yes"
interpolable: {
default: false,
valid_type: "bool",
},
inherited: {
default: false,
valid_type: "bool",
},
// - runtime_flag
// The name of the flag on RuntimeEnabledFeatures
// (e.g. "CSSScrollBoundaryBehavior") that conditionally enables the
// property.
// This doesn't currently work with alias_for.
runtime_flag: {
valid_type: "str",
},
// - field_group
// Name of the group that this field belongs to. Fields in the same group
// are stored together as a nested class inside ComputedStyle and
// dynamically allocated on use.
// Leave this out if the field is stored directly on ComputedStyle.
// If you want to auto group this property use: field_group: "*[->subgroup]"
// If you use the auto grouping function check if your property is in
// CSSPropertiesRanking.json5
// - If yes, only provide: field_group: "*"
// - If no, you can specify a subgroup following the asterisk:
// field_group: "*[->subgroup]"
field_group: {
valid_type: "str",
},
// - field_size
// Number of bits needed to store this field.
field_size: {
valid_type: "int",
},
// - field_template
// Affects how the interface to this field is generated.
// TODO(sashab, meade): Remove this once TypedOM types are specified for
// every property, since this value can be inferred from that.
field_template: {
valid_values: [
// Field is stored as an enum and has a initial/getter/setter/resetter.
// If include_paths is empty, we would also generate the corresponding
// enum definition in ComputedStyleConstants.h.
"keyword",
// Field can take on any subset of values from a list of keywords.
"multi_keyword",
// Field stores a primitive value like int/bool. The type is specified
// by type_name. The interface has a initial/getter/setter/resetter.
"primitive",
// Field is stored as a bool, whose default value is false
// and can only be set to true. Has a initial/getter/setter.
"monotonic_flag",
// Field has type specified at type_name and has a getter/setter.
// Also has a setter taking an rvalue reference. Cannot be packed.
"external",
// Field is stored as a wrapper_pointer_name to a class.
"pointer",
// Preset "length" for external and Length class
// This preset represents alias templates that will be replace by
// entries in CSSFieldAlias.json5.
"<[a-z]+>"
],
},
// - include_paths: ["path/to/file1.h", "path/to/file2.h"]
// List of files containing the definitions of types in 'type_name'. Each of
// these files will appear as a #include in ComputedStyleBase.h. For
// example, if the type_name is 'Vector<String>', include_paths should be
// ["platform/wtf/Vector.h", "platform/wtf/text/WTFString.h"]
include_paths: {
default: [],
},
// Name of the pointer type that wraps this field (e.g. RefPtr).
wrapper_pointer_name: {
valid_type: "str",
valid_values: ["RefPtr", "Persistent", "std::unique_ptr"],
},
// - keywords: ["keyword1", "keyword2"]
// This specifies all valid keyword values for the property.
// TODO(sashab): Once all properties are represented here, delete
// CSSValueKeywords.in and use this list instead.
keywords: {
default: [],
},
// - default_value: "keyword-value"
// This specifies the default value for this field.
// - for keyword fields, this is the initial keyword
// - for other fields, this is a string containg the C++ expression
// that is used to initialise the field.
default_value: {
},
// Flags which go into CSSOMTypes:
// - typedom_types: ["Type", "OtherType"]
// The property can take types specified in typedom_types for CSS Typed OM.
// Keyword does not need to be specified as every property can take
// keywords.
// - separator
// The property supports a list of values, and when there is more than one,
// it is separated with this character.
typedom_types: {
default: [],
valid_type: "list",
valid_values: [
"Angle",
"Flex",
"Frequency",
"Length",
"Number",
"Percent",
"Position",
"Resolution",
"Time",
"Transform",
"Unparsed",
"Image"
],
},
separator: {
valid_values: [",", " ", "/"],
},
// The remaining arguments are used for the StyleBuilder and allow us to
// succinctly describe how to apply properties. When default handlers are
// not sufficient, we should prefer to use converter, and failing that
// define custom property handlers in StyleBuilderCustom.cpp. We only should
// use StyleBuilderFunctions.cpp.tmpl to define handlers when there are
// multiple properties requiring the same handling, but converter doesn't
// suffice.
// - font
// The default property handlers call into the FontBuilder instead of
// setting values directly onto the ComputedStyle
// - svg
// The default property handlers access the SVGComputedStyle
font: {
default: false,
valid_type: "bool",
},
svg: {
default: false,
valid_type: "bool",
},
// - name_for_methods: "BlendMode"
// Tweaks how we choose defaults for getter, setter, initial and type_name.
// For example, setting this to BlendMode will make us use a setter of
// setBlendMode
// - initial
// The initial value accessor on the ComputedStyle, defaults to
// e.g. initialBoxShadow
// - getter
// The ComputedStyle getter, defaults to e.g. borderBottomLeft
// - setter
// The ComputedStyle setter, defaults to e.g. setBorderBottomLeft
// - type_name
// The computed type for the property. Only required for the default value
// application, defaults to e.g. EDisplay
name_for_methods: {
},
getter: {
},
setter: {
},
initial: {
},
type_name: {
},
// - custom_function: Any function specified in the list is not
// automatically generated in ComputedStyle. Use this when a generated
// function is not correct.
computed_style_custom_functions: {
default: [],
valid_type: "list",
valid_values: ["getter", "setter", "reset", "mutable"],
},
// - converter: "ConvertRadius"
// The StyleBuilder will call the specified function on
// StyleBuilderConverter to convert a CSSValue to an appropriate platform
// value
converter: {
},
// - use_handlers_for: "CSSPropertyTransform"
// Use handlers for the specified property instead of defining new ones
use_handlers_for: {
},
// - builder_skip
// Ignore this property in the StyleBuilder
builder_skip: {
default: false,
valid_type: "bool",
},
// - logical_side
// The logical side represented by a direction-dependent property
// - shorthand_for_physical_side
// Shorthand to be used for resolving direction-dependent properties to
// physical properties
direction_aware_options: {
logical_side: {
valid_type: "str",
valid_values: ["after", "before", "end", "start", "width", "height"],
},
shorthand_for_physical_side: {
valid_type: "str",
},
},
// - priority: "High"
// The priority level for computing the property. Valid values are
// "Animation" (highest), "High" and "Low". Properties with the same
// priority level are grouped and computed in alphabetical order. The
// default value is "Low".
priority: {
default: "Low",
valid_values: ["Animation", "High", "Low"],
},
},
// Members in the data objects should appear in the same order as in the
// parameters object above
data: [
// Properties with StyleBuilder handling
// Animation Priority properties
{
name: "animation-delay",
api_class: "CSSPropertyAPIDelay",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-direction",
api_class: true,
api_methods: ["ParseSingleValue"],
keywords: ["normal", "reverse", "alternate", "alternate-reverse"],
separator: ",",
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-duration",
api_class: "CSSPropertyAPIDuration",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-fill-mode",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-iteration-count",
api_class: true,
api_methods: ["ParseSingleValue"],
keywords: ["infinite"],
separator: ",",
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-name",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-play-state",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "animation-timing-function",
api_class: "CSSPropertyAPITimingFunction",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "transition-delay",
api_class: "CSSPropertyAPIDelay",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "transition-duration",
api_class: "CSSPropertyAPIDuration",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "transition-property",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
{
name: "transition-timing-function",
api_class: "CSSPropertyAPITimingFunction",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
priority: "Animation",
},
// High Priority and all other font properties.
// Other properties can depend upon high priority properties
// (e.g. font-size / ems)
{
name: "color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "inherited",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "Color::kBlack",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
priority: "High",
},
{
name: "direction",
api_class: true,
affected_by_all: false,
inherited: true,
field_template: "keyword",
include_paths: ["platform/text/TextDirection.h"],
keywords: ["ltr", "rtl"],
default_value: "ltr",
type_name: "TextDirection",
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "font-family",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "FamilyDescription",
type_name: "FontDescription::FamilyDescription",
converter: "ConvertFontFamily",
priority: "High",
},
{
name: "font-kerning",
api_class: "CSSPropertyAPIInherited",
inherited: true,
font: true,
name_for_methods: "Kerning",
type_name: "FontDescription::Kerning",
priority: "High",
},
{
name: "font-size",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
font: true,
name_for_methods: "Size",
getter: "GetSize",
converter: "ConvertFontSize",
priority: "High",
},
{
name: "font-size-adjust",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
runtime_flag: "CSSFontSizeAdjust",
font: true,
name_for_methods: "SizeAdjust",
converter: "ConvertFontSizeAdjust",
priority: "High",
},
{
name: "font-stretch",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "Stretch",
converter: "ConvertFontStretch",
priority: "High",
},
{
name: "font-style",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "Style",
converter: "ConvertFontStyle",
priority: "High",
},
{
name: "font-variant-ligatures",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
font: true,
name_for_methods: "VariantLigatures",
type_name: "VariantLigatures",
converter: "ConvertFontVariantLigatures",
priority: "High",
},
{
name: "font-variant-caps",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
font: true,
name_for_methods: "VariantCaps",
converter: "ConvertFontVariantCaps",
priority: "High",
},
{
name: "font-variant-east-asian",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
font: true,
name_for_methods: "VariantEastAsian",
converter: "ConvertFontVariantEastAsian",
priority: "High",
},
{
name: "font-variant-numeric",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
font: true,
name_for_methods: "VariantNumeric",
converter: "ConvertFontVariantNumeric",
priority: "High",
},
{
name: "font-weight",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
interpolable: true,
inherited: true,
font: true,
name_for_methods: "Weight",
converter: "ConvertFontWeight",
priority: "High",
},
{
name: "font-feature-settings",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "FeatureSettings",
converter: "ConvertFontFeatureSettings",
priority: "High",
},
{
name: "font-variation-settings",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
runtime_flag: "CSSVariableFonts",
font: true,
name_for_methods: "VariationSettings",
converter: "ConvertFontVariationSettings",
priority: "High",
},
{
name: "-webkit-font-smoothing",
api_class: "CSSPropertyAPIInherited",
inherited: true,
font: true,
type_name: "FontSmoothingMode",
priority: "High",
},
{
name: "-webkit-locale",
api_class: "CSSPropertyAPIAutoOrString",
api_methods: ["ParseSingleValue"],
inherited: true,
font: true,
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "text-orientation",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["sideways", "mixed", "upright"],
default_value: "mixed",
getter: "GetTextOrientation",
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "-webkit-text-orientation",
api_class: "CSSPropertyAPIInherited",
inherited: true,
type_name: "TextOrientation",
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "writing-mode",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_template: "keyword",
include_paths: ["platform/text/WritingMode.h"],
keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"],
default_value: "horizontal-tb",
type_name: "WritingMode",
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "-webkit-writing-mode",
api_class: "CSSPropertyAPIInherited",
inherited: true,
type_name: "WritingMode",
api_custom_apply_functions_value: true,
priority: "High",
},
{
name: "text-rendering",
api_class: "CSSPropertyAPIInherited",
inherited: true,
font: true,
type_name: "TextRenderingMode",
priority: "High",
},
{
name: "zoom",
api_class: true,
api_methods: ["ParseSingleValue"],
is_descriptor: true,
field_group: "visual",
field_template: "primitive",
default_value: "1.0",
type_name: "float",
computed_style_custom_functions: ["setter"],
api_custom_apply_functions_all: true,
priority: "High",
},
{
name: "align-content",
api_class: "CSSPropertyAPIAlignOrJustifyContent",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleContentAlignmentData.h"],
default_value: "StyleContentAlignmentData(kContentPositionNormal, kContentDistributionDefault, kOverflowAlignmentDefault)",
type_name: "StyleContentAlignmentData",
converter: "ConvertContentAlignmentData",
},
{
name: "align-items",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleSelfAlignmentData.h"],
default_value: "StyleSelfAlignmentData(kItemPositionNormal, kOverflowAlignmentDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "alignment-baseline",
svg: true,
},
{
name: "align-self",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleSelfAlignmentData.h"],
default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignmentDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "backdrop-filter",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
runtime_flag: "CSSBackdropFilter",
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleFilterData.h"],
wrapper_pointer_name: "Persistent",
default_value: "StyleFilterData::Create()",
type_name: "StyleFilterData",
computed_style_custom_functions: ["getter","setter"],
converter: "ConvertFilterOperations",
},
{
name: "backface-visibility",
field_group: "*",
field_template: "keyword",
keywords: ["visible", "hidden"],
default_value: "visible",
},
{
name: "background-attachment",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "background-blend-mode",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "background-clip",
api_class: "CSSPropertyAPIBackgroundBox",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "background-color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "background",
field_template: "external",
include_paths: ["core/css/StyleColor.h"],
default_value: "StyleColor(Color::kTransparent)",
type_name: "StyleColor",
computed_style_custom_functions: ["getter"],
api_custom_apply_functions_all: true,
},
{
name: "background-image",
api_class: "CSSPropertyAPIBackgroundOrMaskImage",
api_methods: ["ParseSingleValue"],
interpolable: true,
keywords: ["auto", "none"],
typedom_types: ["Image"],
api_custom_apply_functions_all: true,
},
{
name: "background-origin",
api_class: "CSSPropertyAPIBackgroundBox",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "background-position-x",
api_class: "CSSPropertyAPIPositionX",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "background-position-y",
api_class: "CSSPropertyAPIPositionY",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "background-repeat-x",
api_custom_apply_functions_all: true,
},
{
name: "background-repeat-y",
api_custom_apply_functions_all: true,
},
{
name: "background-size",
api_class: "CSSPropertyAPIBackgroundOrMaskSize",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "baseline-shift",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
api_custom_apply_functions_inherit: true,
api_custom_apply_functions_value: true,
},
{
name: "border-bottom-color",
api_class: "CSSPropertyAPIBorderColor",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "border-bottom-left-radius",
api_class: "CSSPropertyAPIBorderRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LengthSize.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
},
{
name: "border-bottom-right-radius",
api_class: "CSSPropertyAPIBorderRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LengthSize.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
},
{
name: "border-bottom-style",
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
typedom_types: ["Image"],
type_name: "EBorderStyle",
},
{
name: "border-bottom-width",
api_class: "CSSPropertyAPIBorderWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-collapse",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["separate", "collapse"],
default_value: "separate",
},
{
name: "border-image-outset",
api_class: "CSSPropertyAPIBorderImageOutset",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "border-image-repeat",
api_class: "CSSPropertyAPIBorderImageRepeat",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "border-image-slice",
api_class: "CSSPropertyAPIBorderImageSlice",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "border-image-source",
api_class: "CSSPropertyAPIImageSource",
api_methods: ["ParseSingleValue"],
interpolable: true,
keywords: ["none"],
typedom_types: ["Image"],
api_custom_apply_functions_value: true,
},
{
name: "border-image-width",
api_class: "CSSPropertyAPIBorderImageWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "border-left-color",
api_class: "CSSPropertyAPIBorderColor",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "border-left-style",
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
typedom_types: ["Image"],
type_name: "EBorderStyle",
},
{
name: "border-left-width",
api_class: "CSSPropertyAPIBorderWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-right-color",
api_class: "CSSPropertyAPIBorderColor",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "border-right-style",
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
typedom_types: ["Image"],
type_name: "EBorderStyle",
},
{
name: "border-right-width",
api_class: "CSSPropertyAPIBorderWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-top-color",
api_class: "CSSPropertyAPIBorderColor",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "border-top-left-radius",
api_class: "CSSPropertyAPIBorderRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LengthSize.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
},
{
name: "border-top-right-radius",
api_class: "CSSPropertyAPIBorderRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LengthSize.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
},
{
name: "border-top-style",
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
typedom_types: ["Image"],
type_name: "EBorderStyle",
},
{
name: "border-top-width",
api_class: "CSSPropertyAPIBorderWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "bottom",
api_class: "CSSPropertyAPIOffset",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthOrAuto",
},
{
name: "box-shadow",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/ShadowList.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "ShadowList",
converter: "ConvertShadowList",
},
{
name: "box-sizing",
field_group: "box",
field_template: "keyword",
keywords: ["content-box", "border-box"],
default_value: "content-box",
},
{
name: "break-after",
// Storage for this property also covers these legacy properties:
// page-break-after, -webkit-column-break-after
field_template: "keyword",
keywords: [
"auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page",
"recto", "right", "verso"
],
default_value: "auto",
type_name: "EBreakBetween",
},
{
name: "break-before",
// Storage for this property also covers these legacy properties:
// page-break-before, -webkit-column-break-before
field_template: "keyword",
keywords: [
"auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page",
"recto", "right", "verso"
],
default_value: "auto",
type_name: "EBreakBetween",
},
{
name: "break-inside",
// Storage for this property also covers these legacy properties:
// page-break-inside, -webkit-column-break-inside
field_template: "keyword",
keywords: ["auto", "avoid", "avoid-column", "avoid-page"],
default_value: "auto",
},
{
name: "buffered-rendering",
svg: true,
},
{
name: "caption-side",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["top", "bottom"],
default_value: "top",
},
{
name: "caret-color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "Color()",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "clear",
field_template: "keyword",
keywords: ["none", "left", "right", "both"],
default_value: "none",
},
{
name: "clip",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "visual",
field_template: "external",
include_paths: ["platform/LengthBox.h"],
default_value: "LengthBox()",
type_name: "LengthBox",
computed_style_custom_functions: ["setter"],
converter: "ConvertClip",
api_custom_apply_functions_all: true,
},
{
name: "clip-path",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/ClipPathOperation.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "ClipPathOperation",
converter: "ConvertClipPath",
},
{
name: "clip-rule",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
type_name: "WindRule",
},
{
name: "color-interpolation",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
},
{
name: "color-interpolation-filters",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
type_name: "EColorInterpolation",
},
{
name: "color-rendering",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
},
{
name: "column-fill",
field_group: "*",
field_template: "keyword",
keywords: ["balance", "auto"],
default_value: "balance",
getter: "GetColumnFill",
},
{
name: "contain",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_size: 4,
field_template: "primitive",
default_value: "kContainsNone",
name_for_methods: "Contain",
type_name: "unsigned",
converter: "ConvertFlags<Containment>",
},
{
name: "content",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/ContentData.h"],
wrapper_pointer_name: "Persistent",
default_value: "nullptr",
typedom_types: ["Image"],
separator: ",",
type_name: "ContentData",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "counter-increment",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "counter-reset",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "cursor",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_template: "keyword",
keywords: [
"auto", "default", "none", "context-menu", "help", "pointer",
"progress", "wait", "cell", "crosshair", "text", "vertical-text",
"alias", "copy", "move", "no-drop", "not-allowed", "e-resize",
"n-resize", "ne-resize", "nw-resize", "s-resize", "se-resize",
"sw-resize", "w-resize", "ew-resize", "ns-resize", "nesw-resize",
"nwse-resize", "col-resize", "row-resize", "all-scroll", "zoom-in",
"zoom-out", "-webkit-grab", "-webkit-grabbing"
],
default_value: "auto",
api_custom_apply_functions_all: true,
},
{
name: "cx",
api_class: "CSSPropertyAPILength",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLength",
},
{
name: "cy",
api_class: "CSSPropertyAPILength",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLength",
},
{
name: "d",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertPathOrNone",
},
{
name: "display",
field_template: 'keyword',
keywords: [
"inline", "block", "list-item", "inline-block", "table", "inline-table",
"table-row-group", "table-header-group", "table-footer-group",
"table-row", "table-column-group", "table-column", "table-cell",
"table-caption", "-webkit-box", "-webkit-inline-box", "flex",
"inline-flex", "grid", "inline-grid", "contents", "flow-root", "none"
],
default_value: "inline",
},
{
name: "dominant-baseline",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
},
{
name: "empty-cells",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["show", "hide"],
default_value: "show",
},
{
name: "fill",
api_class: "CSSPropertyAPIPaintStroke",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
setter: "SetFillPaint",
api_custom_apply_functions_all: true,
},
{
name: "fill-opacity",
api_class: "CSSPropertyAPIFillOrStrokeOpacity",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
converter: "ConvertNumberOrPercentage",
},
{
name: "fill-rule",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
type_name: "WindRule",
},
{
name: "filter",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleFilterData.h"],
wrapper_pointer_name: "Persistent",
default_value: "StyleFilterData::Create()",
type_name: "StyleFilterData",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertFilterOperations",
},
{
name: "flex-basis",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(kAuto)",
converter: "ConvertLengthOrAuto",
},
{
name: "flex-direction",
field_group: "*",
field_template: "keyword",
keywords: ["row", "row-reverse", "column", "column-reverse"],
default_value: "row",
},
{
name: "flex-grow",
api_class: "CSSPropertyAPIFlexGrowOrShrink",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0f",
type_name: "float",
},
{
name: "flex-shrink",
api_class: "CSSPropertyAPIFlexGrowOrShrink",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "1.0f",
type_name: "float",
},
{
name: "flex-wrap",
field_group: "*",
field_template: "keyword",
keywords: ["nowrap", "wrap", "wrap-reverse"],
default_value: "nowrap",
},
{
name: "float",
field_template: "keyword",
keywords: ["none", "left", "right"],
default_value: "none",
name_for_methods: "Floating",
type_name: "EFloat",
},
{
name: "flood-color",
api_class: "CSSPropertyAPIColorNoQuirks",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertColor",
},
{
name: "flood-opacity",
api_class: "CSSPropertyAPIOpacity",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertNumberOrPercentage",
},
{
name: "grid-auto-columns",
api_class: "CSSPropertyAPIGridAutoLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/Vector.h", "core/style/GridTrackSize.h"],
default_value: "Vector<GridTrackSize>(1, GridTrackSize(Length(kAuto)))",
type_name: "Vector<GridTrackSize>",
converter: "ConvertGridTrackSizeList",
},
{
name: "grid-auto-flow",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_size: 4, // TODO(shend): Make this use "kGridAutoFlowBits".
field_template: "primitive",
default_value: "kAutoFlowRow",
type_name: "GridAutoFlow",
computed_style_custom_functions: ["getter"],
converter: "ConvertGridAutoFlow",
},
{
name: "grid-auto-rows",
api_class: "CSSPropertyAPIGridAutoLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/Vector.h", "core/style/GridTrackSize.h"],
default_value: "Vector<GridTrackSize>(1, GridTrackSize(Length(kAuto)))",
type_name: "Vector<GridTrackSize>",
converter: "ConvertGridTrackSizeList",
},
{
name: "grid-column-end",
api_class: "CSSPropertyAPIGridLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/GridPosition.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
converter: "ConvertGridPosition",
},
{
name: "grid-column-gap",
api_class: "CSSPropertyAPIGridGap",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "grid-column-start",
api_class: "CSSPropertyAPIGridLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/GridPosition.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
converter: "ConvertGridPosition",
},
{
name: "grid-row-end",
api_class: "CSSPropertyAPIGridLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/GridPosition.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
converter: "ConvertGridPosition",
},
{
name: "grid-row-gap",
api_class: "CSSPropertyAPIGridGap",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "grid-row-start",
api_class: "CSSPropertyAPIGridLine",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/GridPosition.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
converter: "ConvertGridPosition",
},
{
name: "grid-template-areas",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "grid-template-columns",
api_class: "CSSPropertyAPIGridTemplateLine",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/Vector.h", "core/style/GridTrackSize.h"],
default_value: "Vector<GridTrackSize>()",
type_name: "Vector<GridTrackSize>",
api_custom_apply_functions_all: true,
},
{
name: "grid-template-rows",
api_class: "CSSPropertyAPIGridTemplateLine",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/Vector.h", "core/style/GridTrackSize.h"],
default_value: "Vector<GridTrackSize>()",
type_name: "Vector<GridTrackSize>",
api_custom_apply_functions_all: true,
},
{
name: "height",
api_class: "CSSPropertyAPIWidthOrHeight",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
keywords: ["auto", "fit-content", "min-content", "max-content"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthSizing",
},
{
name: "hyphens",
api_class: true,
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["none", "manual", "auto"],
default_value: "manual",
type_name: "Hyphens",
},
{
name: "image-rendering",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: [
"auto", "optimizeSpeed", "optimizeQuality",
"-webkit-optimize-contrast", "pixelated"
],
default_value: "auto",
},
{
name: "image-orientation",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
runtime_flag: "ImageOrientation",
field_group: "*",
field_template: "primitive",
default_value: "false",
name_for_methods: "RespectImageOrientation",
type_name: "bool",
converter: "ConvertImageOrientation",
},
{
name: "isolation",
field_group: "*",
field_template: "keyword",
keywords: ["auto", "isolate"],
default_value: "auto",
},
{
name: "justify-content",
api_class: "CSSPropertyAPIAlignOrJustifyContent",
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleContentAlignmentData.h"],
default_value: "StyleContentAlignmentData(kContentPositionNormal, kContentDistributionDefault, kOverflowAlignmentDefault)",
type_name: "StyleContentAlignmentData",
converter: "ConvertContentAlignmentData",
},
{
name: "justify-items",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleSelfAlignmentData.h"],
default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignmentDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "justify-self",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleSelfAlignmentData.h"],
default_value: "StyleSelfAlignmentData(kItemPositionAuto, kOverflowAlignmentDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "left",
api_class: "CSSPropertyAPIOffset",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthOrAuto",
},
{
name: "letter-spacing",
api_class: "CSSPropertyAPILetterAndWordSpacing",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
initial: "InitialLetterWordSpacing",
converter: "ConvertSpacing",
},
{
name: "lighting-color",
api_class: "CSSPropertyAPIColorNoQuirks",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertColor",
},
{
name: "line-height",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "inherited",
field_template: "<length>",
default_value: "Length(-100.0, kPercent)",
getter: "SpecifiedLineHeight",
computed_style_custom_functions: ["getter"],
converter: "ConvertLineHeight",
},
{
name: "line-height-step",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
runtime_flag: "CSSSnapSize",
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "uint8_t",
converter: "ConvertComputedLength<uint8_t>",
},
{
name: "list-style-image",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleImage.h"],
wrapper_pointer_name: "Persistent",
default_value: "nullptr",
typedom_types: ["Image"],
type_name: "StyleImage",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_value: true,
},
{
name: "list-style-position",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["outside", "inside"],
default_value: "outside",
},
{
name: "list-style-type",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_template: "keyword",
keywords: [
"disc", "circle", "square", "decimal", "decimal-leading-zero",
"arabic-indic", "bengali", "cambodian", "khmer", "devanagari",
"gujarati", "gurmukhi", "kannada", "lao", "malayalam", "mongolian",
"myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai",
"lower-roman", "upper-roman", "lower-greek", "lower-alpha",
"lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch",
"cjk-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am",
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "hangul",
"hangul-consonant", "korean-hangul-formal", "korean-hanja-formal",
"korean-hanja-informal", "hebrew", "armenian", "lower-armenian",
"upper-armenian", "georgian", "cjk-ideographic", "simp-chinese-formal",
"simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informal",
"hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none"
],
default_value: "disc",
},
{
name: "margin-bottom",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
},
{
name: "margin-left",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
},
{
name: "margin-right",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
},
{
name: "margin-top",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
},
{
name: "marker-end",
api_class: "CSSPropertyAPIMarker",
api_methods: ["ParseSingleValue"],
inherited: true,
svg: true,
name_for_methods: "MarkerEndResource",
converter: "ConvertFragmentIdentifier",
},
{
name: "marker-mid",
api_class: "CSSPropertyAPIMarker",
api_methods: ["ParseSingleValue"],
inherited: true,
svg: true,
name_for_methods: "MarkerMidResource",
converter: "ConvertFragmentIdentifier",
},
{
name: "marker-start",
api_class: "CSSPropertyAPIMarker",
api_methods: ["ParseSingleValue"],
inherited: true,
svg: true,
name_for_methods: "MarkerStartResource",
converter: "ConvertFragmentIdentifier",
},
{
name: "mask",
api_class: true,
api_methods: ["ParseSingleValue"],
svg: true,
name_for_methods: "MaskerResource",
converter: "ConvertFragmentIdentifier",
},
{
name: "mask-source-type",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSMaskSourceType",
api_custom_apply_functions_all: true,
},
{
name: "mask-type",
svg: true,
},
{
name: "max-height",
api_class: "CSSPropertyAPIMaxWidthOrHeight",
api_methods: ["ParseSingleValue"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length(kMaxSizeNone)",
converter: "ConvertLengthMaxSizing",
},
{
name: "max-width",
api_class: "CSSPropertyAPIMaxWidthOrHeight",
api_methods: ["ParseSingleValue"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length(kMaxSizeNone)",
converter: "ConvertLengthMaxSizing",
},
{
name: "min-height",
api_class: "CSSPropertyAPIMinWidthOrHeight",
api_methods: ["ParseSingleValue"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLengthSizing",
},
{
name: "min-width",
api_class: "CSSPropertyAPIMinWidthOrHeight",
api_methods: ["ParseSingleValue"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLengthSizing",
},
{
name: "mix-blend-mode",
field_group: "*",
field_template: "keyword",
include_paths: ["public/platform/WebBlendMode.h"],
keywords: [
"normal", "multiply", "screen", "overlay", "darken", "lighten",
"color-dodge", "color-burn", "hard-light", "soft-light", "difference",
"exclusion", "hue", "saturation", "color", "luminosity"
],
default_value: "normal",
name_for_methods: "BlendMode",
type_name: "WebBlendMode",
},
{
name: "object-fit",
field_group: "*",
field_template: "keyword",
keywords: ["fill", "contain", "cover", "none", "scale-down"],
default_value: "fill",
getter: "GetObjectFit",
},
{
name: "object-position",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/LengthPoint.h"],
default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent))",
type_name: "LengthPoint",
converter: "ConvertPosition",
},
{
name: "offset-anchor",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
runtime_flag: "CSSOffsetPositionAnchor",
field_group: "*",
field_template: "external",
include_paths: ["platform/LengthPoint.h"],
default_value: "LengthPoint(Length(kAuto), Length(kAuto))",
type_name: "LengthPoint",
converter: "ConvertPositionOrAuto",
},
{
name: "offset-distance",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(0, kFixed)",
converter: "ConvertLength",
},
{
name: "offset-path",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/BasicShapes.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "BasicShape",
converter: "ConvertOffsetPath",
},
{
name: "offset-position",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
runtime_flag: "CSSOffsetPositionAnchor",
field_group: "*",
field_template: "external",
include_paths: ["platform/LengthPoint.h"],
default_value: "LengthPoint(Length(kAuto), Length(kAuto))",
type_name: "LengthPoint",
converter: "ConvertPositionOrAuto",
},
{
name: "offset-rotate",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/StyleOffsetRotation.h"],
default_value: "StyleOffsetRotation(0, kOffsetRotationAuto)",
type_name: "StyleOffsetRotation",
converter: "ConvertOffsetRotate",
},
{
name: "opacity",
api_class: "CSSPropertyAPIOpacity",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "1.0",
type_name: "float",
computed_style_custom_functions: ["setter"],
},
{
name: "order",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "int",
computed_style_custom_functions: ["setter"],
},
{
name: "orphans",
api_class: "CSSPropertyAPIOrphansOrWidows",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "primitive",
default_value: "2",
type_name: "short",
},
{
name: "outline-color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "outline-offset",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "int",
computed_style_custom_functions: ["getter"],
converter: "ConvertComputedLength<int>",
},
{
name: "outline-style",
field_group: "*",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
type_name: "EBorderStyle",
api_custom_apply_functions_all: true,
},
{
name: "outline-width",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
default_value: "LayoutUnit(3)",
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertLineWidth<unsigned short>",
},
{
name: "overflow-anchor",
api_class: true,
inherited: false,
runtime_flag: "ScrollAnchoring",
field_template: "keyword",
keywords: [
"visible", "none", "auto"
],
default_value: "auto",
},
{
name: "overflow-wrap",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["normal", "break-word"],
default_value: "normal",
},
{
name: "overflow-x",
field_template: "keyword",
keywords: [
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x",
"-webkit-paged-y"
],
default_value: "visible",
type_name: "EOverflow",
},
{
name: "overflow-y",
field_template: "keyword",
keywords: [
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x",
"-webkit-paged-y"
],
default_value: "visible",
type_name: "EOverflow",
},
{
name: "padding-bottom",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "padding-left",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "padding-right",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "padding-top",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
},
{
name: "paint-order",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
svg: true,
converter: "ConvertPaintOrder",
},
{
name: "perspective",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0",
type_name: "float",
converter: "ConvertPerspective",
},
{
name: "perspective-origin",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/LengthPoint.h"],
default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent))",
type_name: "LengthPoint",
converter: "ConvertPosition",
},
{
name: "pointer-events",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: [
"none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke",
"visibleFill", "visiblePainted", "bounding-box", "all"
],
default_value: "auto",
},
{
name: "position",
field_template: "keyword",
keywords: [
"static", "relative", "absolute", "fixed", "sticky"
],
default_value: "static",
getter: "GetPosition",
api_custom_apply_functions_inherit: true,
},
{
name: "quotes",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/QuotesData.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "QuotesData",
converter: "ConvertQuotes",
},
{
name: "resize",
field_group: "*",
field_template: "keyword",
keywords: ["none", "both", "horizontal", "vertical"],
default_value: "none",
api_custom_apply_functions_value: true,
},
{
name: "right",
api_class: "CSSPropertyAPIOffset",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthOrAuto",
},
{
name: "r",
api_class: "CSSPropertyAPILength",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLength",
},
{
name: "rx",
api_class: "CSSPropertyAPIRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLengthOrAuto",
},
{
name: "ry",
api_class: "CSSPropertyAPIRadius",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLengthOrAuto",
},
{
name: "scroll-behavior",
api_class: true,
runtime_flag: "CSSOMSmoothScroll",
field_group: "*",
field_size: 2, // FIXME: Convert this to a keyword field
field_template: "primitive",
default_value: "kScrollBehaviorAuto",
type_name: "ScrollBehavior",
},
{
name: "scroll-boundary-behavior-x",
api_class: "CSSPropertyAPIScrollBoundaryBehavior",
runtime_flag: "CSSScrollBoundaryBehavior",
field_template: "keyword",
keywords: ["auto", "contain", "none"],
default_value: "auto",
type_name: "EScrollBoundaryBehavior",
},
{
name: "scroll-boundary-behavior-y",
api_class: "CSSPropertyAPIScrollBoundaryBehavior",
runtime_flag: "CSSScrollBoundaryBehavior",
field_template: "keyword",
keywords: ["auto", "contain", "none"],
default_value: "auto",
type_name: "EScrollBoundaryBehavior",
},
{
name: "scroll-snap-type",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "external",
include_paths: ["core/style/ScrollSnap.h"],
default_value: "ScrollSnapType()",
getter: "GetScrollSnapType",
type_name: "ScrollSnapType",
converter: "ConvertSnapType",
},
{
name: "scroll-snap-align",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "external",
include_paths: ["core/style/ScrollSnap.h"],
default_value: "ScrollSnapAlign()",
getter: "GetScrollSnapAlign",
type_name: "ScrollSnapAlign",
converter: "ConvertSnapAlign",
},
{
name: "scroll-snap-stop",
api_class: true,
runtime_flag: "CSSScrollSnapPoints",
field_template: "keyword",
keywords: ["normal", "always"],
default_value: "normal",
},
{
name: "scroll-padding-top",
api_class: "CSSPropertyAPIScrollPadding",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLength",
},
{
name: "scroll-padding-bottom",
api_class: "CSSPropertyAPIScrollPadding",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLength",
},
{
name: "scroll-padding-left",
api_class: "CSSPropertyAPIScrollPadding",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLength",
},
{
name: "scroll-padding-right",
api_class: "CSSPropertyAPIScrollPadding",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLength",
},
{
name: "scroll-padding-block-start",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
typedom_types: ["Length", "Percent"],
initial: "InitialScrollPadding",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "scrollPaddingShorthand",
},
},
{
name: "scroll-padding-block-end",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
typedom_types: ["Length", "Percent"],
initial: "InitialScrollPadding",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "scrollPaddingShorthand",
},
},
{
name: "scroll-padding-inline-start",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
typedom_types: ["Length", "Percent"],
initial: "InitialScrollPadding",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "scrollPaddingShorthand",
},
},
{
name: "scroll-padding-inline-end",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
typedom_types: ["Length", "Percent"],
initial: "InitialScrollPadding",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "scrollPaddingShorthand",
},
},
{
name: "scroll-snap-margin-top",
api_class: "CSSPropertyAPIScrollSnapMargin",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLength",
},
{
name: "scroll-snap-margin-bottom",
api_class: "CSSPropertyAPIScrollSnapMargin",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLength",
},
{
name: "scroll-snap-margin-left",
api_class: "CSSPropertyAPIScrollSnapMargin",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLength",
},
{
name: "scroll-snap-margin-right",
api_class: "CSSPropertyAPIScrollSnapMargin",
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
field_group: "*",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLength",
},
{
name: "scroll-snap-margin-block-start",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
initial: "InitialScrollSnapMargin",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "scrollSnapMarginShorthand",
},
},
{
name: "scroll-snap-margin-block-end",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
initial: "InitialScrollSnapMargin",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "scrollSnapMarginShorthand",
},
},
{
name: "scroll-snap-margin-inline-start",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
initial: "InitialScrollSnapMargin",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "scrollSnapMarginShorthand",
},
},
{
name: "scroll-snap-margin-inline-end",
api_class: true,
api_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
include_paths: ["platform/Length.h"],
initial: "InitialScrollSnapMargin",
type_name: "Length",
converter: "ConvertLength",
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "scrollSnapMarginShorthand",
},
},
{
name: "shape-image-threshold",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0",
type_name: "float",
computed_style_custom_functions: ["setter"],
},
{
name: "shape-margin",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(0, kFixed)",
converter: "ConvertLength",
},
{
name: "shape-outside",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/ShapeValue.h"],
wrapper_pointer_name: "Persistent",
default_value: "nullptr",
typedom_types: ["Image"],
type_name: "ShapeValue",
computed_style_custom_functions: ["getter"],
converter: "ConvertShapeValue",
},
{
name: "shape-rendering",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
},
{
name: "size",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "speak",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: [
"none", "normal", "spell-out", "digits", "literal-punctuation",
"no-punctuation"
],
default_value: "normal",
},
{
name: "stop-color",
api_class: "CSSPropertyAPIColorNoQuirks",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertColor",
},
{
name: "stop-opacity",
api_class: "CSSPropertyAPIOpacity",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertNumberOrPercentage",
},
{
name: "stroke",
api_class: "CSSPropertyAPIPaintStroke",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
setter: "SetStrokePaint",
api_custom_apply_functions_all: true,
},
{
name: "stroke-dasharray",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
name_for_methods: "StrokeDashArray",
converter: "ConvertStrokeDasharray",
},
{
name: "stroke-dashoffset",
api_class: "CSSPropertyAPIStrokeDashoffsetOrStrokeWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
name_for_methods: "StrokeDashOffset",
converter: "ConvertLength",
},
{
name: "stroke-linecap",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
name_for_methods: "CapStyle",
type_name: "LineCap",
},
{
name: "stroke-linejoin",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
name_for_methods: "JoinStyle",
type_name: "LineJoin",
},
{
name: "stroke-miterlimit",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
name_for_methods: "StrokeMiterLimit",
type_name: "float",
},
{
name: "stroke-opacity",
api_class: "CSSPropertyAPIFillOrStrokeOpacity",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
converter: "ConvertNumberOrPercentage",
},
{
name: "stroke-width",
api_class: "CSSPropertyAPIStrokeDashoffsetOrStrokeWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
svg: true,
converter: "ConvertUnzoomedLength",
},
{
name: "table-layout",
field_template: "keyword",
keywords: [
"auto", "fixed"
],
default_value: "auto",
},
{
name: "tab-size",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/text/TabSize.h"],
default_value: "TabSize(8)",
getter: "GetTabSize",
type_name: "TabSize",
converter: "ConvertLengthOrTabSpaces",
},
{
name: "text-align",
api_class: "CSSPropertyAPIInherited",
independent: false,
inherited: true,
field_template: "keyword",
keywords: [
"left", "right", "center", "justify", "-webkit-left", "-webkit-right",
"-webkit-center", "start", "end"
],
default_value: "start",
getter: "GetTextAlign",
api_custom_apply_functions_value: true,
},
{
name: "text-align-last",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["auto", "start", "end", "left", "right", "center", "justify"],
default_value: "auto",
},
{
name: "text-anchor",
api_class: "CSSPropertyAPIInherited",
inherited: true,
svg: true,
},
{
name: "text-combine-upright",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["none", "all"],
default_value: "none",
name_for_methods: "TextCombine",
},
{
name: "text-decoration-color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["core/css/StyleColor.h"],
default_value: "StyleColor::CurrentColor()",
type_name: "StyleColor",
api_custom_apply_functions_all: true,
},
{
name: "text-decoration-line",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "visual",
field_template: "multi_keyword",
keywords: ["none", "underline", "overline", "line-through", "blink"],
default_value: "none",
name_for_methods: "TextDecoration",
type_name: "TextDecoration",
converter: "ConvertFlags<TextDecoration>",
},
{
name: "text-decoration-skip",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_size: 3,
field_template: "primitive",
default_value: "TextDecorationSkip::kObjects",
type_name: "TextDecorationSkip",
converter: "ConvertFlags<TextDecorationSkip>",
},
{
name: "text-decoration-style",
api_class: true,
field_group: "*",
field_template: "keyword",
keywords: ["solid", "double", "dotted", "dashed", "wavy"],
default_value: "solid",
},
{
name: "text-indent",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(kFixed)",
api_custom_apply_functions_all: true,
},
{
name: "text-justify",
api_class: true,
inherited: true,
runtime_flag: "CSS3Text",
field_group: "*",
field_template: "keyword",
include_paths: ["platform/text/TextJustify.h"],
keywords: ["auto", "none", "inter-word", "distribute"],
default_value: "auto",
getter: "GetTextJustify",
type_name: "TextJustify",
},
{
name: "text-overflow",
field_group: "*",
field_template: "keyword",
keywords: ["clip", "ellipsis"],
default_value: "clip",
},
{
name: "text-shadow",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/ShadowList.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "ShadowList",
converter: "ConvertShadowList",
},
{
name: "text-size-adjust",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/TextSizeAdjust.h"],
default_value: "TextSizeAdjust::AdjustAuto()",
getter: "GetTextSizeAdjust",
type_name: "TextSizeAdjust",
converter: "ConvertTextSizeAdjust",
},
{
name: "text-transform",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["capitalize", "uppercase", "lowercase", "none"],
default_value: "none",
},
// FIXME: Implement support for 'under left' and 'under right' values.
{
name: "text-underline-position",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["auto", "under"],
default_value: "auto",
type_name: "TextUnderlinePosition",
},
{
name: "top",
api_class: "CSSPropertyAPIOffset",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthOrAuto",
},
{
name: "touch-action",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_size: 6, // TODO(shend): Make this use "kTouchActionBits".
field_template: "primitive",
include_paths: ["platform/graphics/TouchAction.h"],
default_value: "TouchAction::kTouchActionAuto",
type_name: "TouchAction",
converter: "ConvertFlags<TouchAction>",
},
{
name: "transform",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/transforms/TransformOperations.h"],
keywords: ["none"],
default_value: "EmptyTransformOperations()",
typedom_types: ["Transform"],
type_name: "TransformOperations",
converter: "ConvertTransformOperations",
},
{
name: "transform-box",
api_class: true,
runtime_flag: "CSSTransformBox",
field_template: "keyword",
keywords: ["fill-box", "view-box"],
default_value: "view-box",
},
{
name: "transform-origin",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["core/style/TransformOrigin.h"],
default_value: "TransformOrigin(Length(50.0, kPercent), Length(50.0, kPercent), 0)",
getter: "GetTransformOrigin",
type_name: "TransformOrigin",
converter: "ConvertTransformOrigin",
},
{
name: "transform-style",
field_group: "*",
field_template: "keyword",
keywords: ["flat", "preserve-3d"],
default_value: "flat",
name_for_methods: "TransformStyle3D",
},
{
name: "translate",
api_class: true,
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
interpolable: true,
runtime_flag: "CSSIndependentTransformProperties",
field_group: "*",
field_template: "pointer",
include_paths: ["platform/transforms/TranslateTransformOperation.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "TranslateTransformOperation",
converter: "ConvertTranslate",
},
{
name: "rotate",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
runtime_flag: "CSSIndependentTransformProperties",
field_group: "*",
field_template: "pointer",
include_paths: ["platform/transforms/RotateTransformOperation.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "RotateTransformOperation",
converter: "ConvertRotate",
},
{
name: "scale",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
runtime_flag: "CSSIndependentTransformProperties",
field_group: "*",
field_template: "pointer",
include_paths: ["platform/transforms/ScaleTransformOperation.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "ScaleTransformOperation",
converter: "ConvertScale",
},
{
name: "unicode-bidi",
api_class: true,
affected_by_all: false,
field_template: "keyword",
include_paths: ["platform/text/UnicodeBidi.h"],
keywords: [
"normal", "embed", "bidi-override", "isolate", "plaintext",
"isolate-override"
],
default_value: "normal",
type_name: "UnicodeBidi",
},
{
name: "vector-effect",
svg: true,
},
{
name: "vertical-align",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_inherit: true,
api_custom_apply_functions_value: true,
},
{
name: "visibility",
api_class: true,
independent: true,
interpolable: true,
inherited: true,
field_template: "keyword",
keywords: ["visible", "hidden", "collapse"],
default_value: "visible",
},
{
name: "x",
api_class: "CSSPropertyAPILength",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLength",
},
{
name: "y",
api_class: "CSSPropertyAPILength",
api_methods: ["ParseSingleValue"],
interpolable: true,
svg: true,
converter: "ConvertLength",
},
{
name: "-webkit-appearance",
field_group: "*",
field_size: 6,
field_template: "primitive",
default_value: "kNoControlPart",
type_name: "ControlPart",
},
{
name: "-webkit-app-region",
field_group: "*",
field_template: "keyword",
keywords: ["none", "drag", "no-drag"],
default_value: "none",
name_for_methods: "DraggableRegionMode",
api_custom_apply_functions_all: true,
},
{
name: "-webkit-background-clip",
api_class: "CSSPropertyAPIWebkitClip",
api_methods: ["ParseSingleValue"],
use_handlers_for: "CSSPropertyBackgroundClip",
},
{
name: "-webkit-background-origin",
api_class: "CSSPropertyAPIWebkitOrigin",
api_methods: ["ParseSingleValue"],
use_handlers_for: "CSSPropertyBackgroundOrigin",
},
{
name: "-webkit-border-horizontal-spacing",
api_class: "CSSPropertyAPIWebkitBorderSpacing",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "inherited",
field_template: "primitive",
default_value: "0",
name_for_methods: "HorizontalBorderSpacing",
type_name: "short",
converter: "ConvertComputedLength<short>",
},
{
name: "-webkit-border-image",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_value: true,
},
{
name: "-webkit-border-vertical-spacing",
api_class: "CSSPropertyAPIWebkitBorderSpacing",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "inherited",
field_template: "primitive",
default_value: "0",
name_for_methods: "VerticalBorderSpacing",
type_name: "short",
converter: "ConvertComputedLength<short>",
},
// For valid values of box-align see
// http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/#alignment
{
name: "-webkit-box-align",
field_group: "*",
field_template: "keyword",
keywords: ["stretch", "start", "center", "end", "baseline"],
default_value: "stretch",
type_name: "EBoxAlignment",
},
{
name: "-webkit-box-decoration-break",
field_group: "box",
field_template: "keyword",
keywords: ["slice", "clone"],
default_value: "slice",
},
{
name: "-webkit-box-direction",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["normal", "reverse"],
default_value: "normal",
},
{
name: "-webkit-box-flex",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "primitive",
default_value: "0.0f",
type_name: "float",
},
{
name: "-webkit-box-flex-group",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "primitive",
default_value: "1",
type_name: "unsigned",
},
{
name: "-webkit-box-lines",
field_group: "*",
field_template: "keyword",
keywords: ["single", "multiple"],
default_value: "single",
},
{
name: "-webkit-box-ordinal-group",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "primitive",
default_value: "1",
type_name: "unsigned",
computed_style_custom_functions: ["setter"],
},
{
name: "-webkit-box-orient",
field_group: "*",
field_template: "keyword",
keywords: ["horizontal", "vertical"],
default_value: "horizontal",
},
{
name: "-webkit-box-pack",
field_group: "*",
field_template: "keyword",
keywords: ["start", "center", "end", "justify"],
default_value: "start",
},
{
name: "-webkit-box-reflect",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "pointer",
include_paths: ["core/style/StyleReflection.h"],
wrapper_pointer_name: "RefPtr",
default_value: "nullptr",
type_name: "StyleReflection",
converter: "ConvertBoxReflect",
},
{
name: "column-count",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "1",
type_name: "unsigned short",
computed_style_custom_functions: ["setter"],
api_custom_apply_functions_all: true,
},
{
name: "column-gap",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0f",
type_name: "float",
computed_style_custom_functions: ["setter"],
converter: "ConvertComputedLength<float>",
api_custom_apply_functions_all: true,
},
{
name: "column-rule-color",
api_class: "CSSPropertyAPIColorNoQuirks",
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter","setter"],
api_custom_apply_functions_all: true,
},
{
name: "column-rule-style",
field_group: "*",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
default_value: "none",
type_name: "EBorderStyle",
},
{
name: "column-rule-width",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/LayoutUnit.h"],
default_value: "LayoutUnit(3)",
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertLineWidth<unsigned short>",
},
{
name: "column-span",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "keyword",
keywords: ["none", "all"],
default_value: "none",
getter: "GetColumnSpan",
},
{
name: "column-width",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0f",
type_name: "float",
computed_style_custom_functions: ["setter"],
converter: "ConvertComputedLength<float>",
api_custom_apply_functions_all: true,
},
{
name: "-webkit-highlight",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/text/AtomicString.h"],
default_value: "g_null_atom",
type_name: "AtomicString",
converter: "ConvertString<CSSValueNone>",
},
{
name: "-webkit-hyphenate-character",
api_class: "CSSPropertyAPIAutoOrString",
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/wtf/text/AtomicString.h"],
default_value: "AtomicString()",
name_for_methods: "HyphenationString",
type_name: "AtomicString",
converter: "ConvertString<CSSValueAuto>",
},
{
name: "-webkit-line-break",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["auto", "loose", "normal", "strict", "after-white-space"],
default_value: "auto",
type_name: "LineBreak",
},
{
name: "line-break",
api_class: "CSSPropertyAPIInherited",
inherited: true,
type_name: "LineBreak",
},
// An Apple extension.
{
name: "-webkit-line-clamp",
api_class: true,
api_methods: ["ParseSingleValue"],
field_group: "*",
field_template: "external",
include_paths: ["core/style/LineClampValue.h"],
default_value: "LineClampValue()",
type_name: "LineClampValue",
},
{
name: "-webkit-margin-after-collapse",
field_group: "*",
field_template: "keyword",
keywords: ["collapse", "separate", "discard"],
default_value: "collapse",
type_name: "EMarginCollapse",
},
{
name: "-webkit-margin-before-collapse",
field_group: "*",
field_template: "keyword",
keywords: ["collapse", "separate", "discard"],
default_value: "collapse",
type_name: "EMarginCollapse",
},
{
name: "-webkit-margin-bottom-collapse",
name_for_methods: "MarginAfterCollapse",
type_name: "EMarginCollapse",
},
{
name: "-webkit-margin-top-collapse",
name_for_methods: "MarginBeforeCollapse",
type_name: "EMarginCollapse",
},
{
name: "-webkit-mask-box-image-outset",
api_class: "CSSPropertyAPIBorderImageOutset",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-box-image-repeat",
api_class: "CSSPropertyAPIBorderImageRepeat",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-box-image-slice",
api_class: "CSSPropertyAPIBorderImageSlice",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-box-image-source",
api_class: "CSSPropertyAPIImageSource",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_value: true,
},
{
name: "-webkit-mask-box-image-width",
api_class: "CSSPropertyAPIBorderImageWidth",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-clip",
api_class: "CSSPropertyAPIWebkitClip",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-composite",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-image",
api_class: "CSSPropertyAPIBackgroundOrMaskImage",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-origin",
api_class: "CSSPropertyAPIWebkitOrigin",
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-position-x",
api_class: "CSSPropertyAPIPositionX",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-position-y",
api_class: "CSSPropertyAPIPositionY",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-repeat-x",
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-repeat-y",
api_custom_apply_functions_all: true,
},
{
name: "-webkit-mask-size",
api_class: "CSSPropertyAPIBackgroundOrMaskSize",
api_methods: ["ParseSingleValue"],
interpolable: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-perspective-origin-x",
api_class: "CSSPropertyAPIWebkitOriginX",
api_methods: ["ParseSingleValue"],
interpolable: true,
converter: "ConvertLength",
},
{
name: "-webkit-perspective-origin-y",
api_class: "CSSPropertyAPIWebkitOriginY",
api_methods: ["ParseSingleValue"],
interpolable: true,
converter: "ConvertLength",
},
{
name: "-webkit-print-color-adjust",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["economy", "exact"],
default_value: "economy",
},
{
name: "-webkit-rtl-ordering",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["logical", "visual"],
default_value: "logical",
setter: "SetRtlOrdering",
initial: "InitialRtlOrdering",
type_name: "EOrder",
},
{
name: "-webkit-ruby-position",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["before", "after"],
default_value: "before",
type_name: "RubyPosition",
},
{
name: "-webkit-tap-highlight-color",
api_class: "CSSPropertyAPIWebkitColorNoQuirks",
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "<color>",
default_value: "LayoutTheme::TapHighlightColor()",
converter: "ConvertColor",
},
{
name: "-webkit-text-combine",
api_class: "CSSPropertyAPIInherited",
inherited: true,
name_for_methods: "TextCombine",
},
{
name: "-webkit-text-emphasis-color",
api_class: "CSSPropertyAPIWebkitColorNoQuirks",
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "Color()",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-text-emphasis-position",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_size: 2,
field_template: "primitive",
default_value: "TextEmphasisPosition::kOverRight",
type_name: "TextEmphasisPosition",
converter: "ConvertTextTextEmphasisPosition",
},
{
name: "-webkit-text-emphasis-style",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
api_custom_apply_functions_all: true,
},
{
name: "-webkit-text-fill-color",
api_class: "CSSPropertyAPIWebkitColorNoQuirks",
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "Color()",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-text-security",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["none", "disc", "circle", "square"],
default_value: "none",
},
{
name: "-webkit-text-stroke-color",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["platform/graphics/Color.h"],
default_value: "Color()",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
api_custom_apply_functions_all: true,
},
{
name: "-webkit-text-stroke-width",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "float",
converter: "ConvertTextStrokeWidth",
},
{
name: "-webkit-transform-origin-x",
api_class: "CSSPropertyAPIWebkitOriginX",
api_methods: ["ParseSingleValue"],
interpolable: true,
converter: "ConvertLength",
},
{
name: "-webkit-transform-origin-y",
api_class: "CSSPropertyAPIWebkitOriginY",
api_methods: ["ParseSingleValue"],
interpolable: true,
converter: "ConvertLength",
},
{
name: "-webkit-transform-origin-z",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
converter: "ConvertComputedLength<float>",
},
{
name: "-webkit-user-drag",
field_group: "*",
field_template: "keyword",
keywords: ["auto", "none", "element"],
default_value: "auto",
},
{
name: "-webkit-user-modify",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["read-only", "read-write", "read-write-plaintext-only"],
default_value: "read-only",
},
{
name: "user-select",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["auto", "none", "text", "all"],
default_value: "auto",
},
{
name: "white-space",
api_class: "CSSPropertyAPIInherited",
independent: true,
inherited: true,
field_template: "keyword",
keywords: [
"normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-nowrap"
],
default_value: "normal",
},
{
name: "widows",
api_class: "CSSPropertyAPIOrphansOrWidows",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "primitive",
default_value: "2",
type_name: "short",
},
{
name: "width",
api_class: "CSSPropertyAPIWidthOrHeight",
api_methods: ["ParseSingleValue", "IsLayoutDependent"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
keywords: ["auto", "fit-content", "min-content", "max-content"],
default_value: "Length()",
typedom_types: ["Length", "Percent"],
converter: "ConvertLengthSizing",
},
{
name: "will-change",
api_class: true,
api_methods: ["ParseSingleValue"],
api_custom_apply_functions_all: true,
},
{
name: "word-break",
api_class: "CSSPropertyAPIInherited",
inherited: true,
field_group: "*",
field_template: "keyword",
// Word Break Values. Matches WinIE and CSS3
keywords: ["normal", "break-all", "keep-all", "break-word"],
default_value: "normal",
},
{
name: "word-spacing",
api_class: "CSSPropertyAPILetterAndWordSpacing",
api_methods: ["ParseSingleValue"],
interpolable: true,
inherited: true,
initial: "InitialLetterWordSpacing",
converter: "ConvertSpacing",
},
// UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap'
// property. So using the same handlers.
{
name: "word-wrap",
api_class: "CSSPropertyAPIInherited",
inherited: true,
name_for_methods: "OverflowWrap",
},
{
name: "z-index",
api_class: true,
api_methods: ["ParseSingleValue"],
interpolable: true,
field_group: "box",
field_template: "primitive",
default_value: "0",
type_name: "int",
computed_style_custom_functions: ["setter"],
api_custom_apply_functions_all: true,
},
// CSS logical props
{
name: "inline-size",
api_class: "CSSPropertyAPIInlineSizeOrLogicalWidth",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSProperty",
},
},
{
name: "block-size",
api_class: "CSSPropertyAPIBlockSizeOrLogicalHeight",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSProperty",
},
},
{
name: "min-inline-size",
api_class: "CSSPropertyAPIMinInlineSizeOrMinLogicalWidth",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSPropertyMin",
},
},
{
name: "min-block-size",
api_class: "CSSPropertyAPIMinBlockSizeOrMinLogicalHeight",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSPropertyMin",
},
},
{
name: "max-inline-size",
api_class: "CSSPropertyAPIMaxInlineSizeOrMaxLogicalWidth",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSPropertyMax",
},
},
{
name: "max-block-size",
api_class: "CSSPropertyAPIMaxBlockSizeOrMaxLogicalHeight",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSPropertyMax",
},
},
// Non-standard direction aware properties
{
name: "-webkit-border-end-color",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "borderColorShorthand",
},
},
{
name: "-webkit-border-end-style",
api_class: true,
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "borderStyleShorthand",
},
},
{
name: "-webkit-border-end-width",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "borderWidthShorthand",
},
},
{
name: "-webkit-border-start-color",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "borderColorShorthand",
},
},
{
name: "-webkit-border-start-style",
api_class: true,
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "borderStyleShorthand",
},
},
{
name: "-webkit-border-start-width",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "borderWidthShorthand",
},
},
{
name: "-webkit-border-before-color",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "borderColorShorthand",
},
},
{
name: "-webkit-border-before-style",
api_class: true,
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "borderStyleShorthand",
},
},
{
name: "-webkit-border-before-width",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "borderWidthShorthand",
},
},
{
name: "-webkit-border-after-color",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "borderColorShorthand",
},
},
{
name: "-webkit-border-after-style",
api_class: true,
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "borderStyleShorthand",
},
},
{
name: "-webkit-border-after-width",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "borderWidthShorthand",
},
},
{
name: "-webkit-margin-end",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "marginShorthand",
},
},
{
name: "-webkit-margin-start",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "marginShorthand",
},
},
{
name: "-webkit-margin-before",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "marginShorthand",
},
},
{
name: "-webkit-margin-after",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "marginShorthand",
},
},
{
name: "-webkit-padding-end",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "paddingShorthand",
},
},
{
name: "-webkit-padding-start",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "paddingShorthand",
},
},
{
name: "-webkit-padding-before",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "paddingShorthand",
},
},
{
name: "-webkit-padding-after",
api_class: true,
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "paddingShorthand",
},
},
{
name: "-webkit-logical-width",
api_class: "CSSPropertyAPIInlineSizeOrLogicalWidth",
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSProperty",
},
},
{
name: "-webkit-logical-height",
api_class: "CSSPropertyAPIBlockSizeOrLogicalHeight",
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSProperty",
},
},
{
name: "-webkit-min-logical-width",
api_class: "CSSPropertyAPIMinInlineSizeOrMinLogicalWidth",
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSPropertyMin",
},
},
{
name: "-webkit-min-logical-height",
api_class: "CSSPropertyAPIMinBlockSizeOrMinLogicalHeight",
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSPropertyMin",
},
},
{
name: "-webkit-max-logical-width",
api_class: "CSSPropertyAPIMaxInlineSizeOrMaxLogicalWidth",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "width",
shorthand_for_physical_side: "CSSPropertyMax",
},
},
{
name: "-webkit-max-logical-height",
api_class: "CSSPropertyAPIMaxBlockSizeOrMaxLogicalHeight",
api_methods: ["ParseSingleValue"],
direction_aware_options: {
logical_side: "height",
shorthand_for_physical_side: "CSSPropertyMax",
},
},
// Properties that we ignore in the StyleBuilder.
// TODO(timloh): This seems wrong, most of these shouldn't reach the
// StyleBuilder
{
name: "all",
api_class: true,
affected_by_all: false,
builder_skip: true,
},
{
name: "page",
api_class: true,
api_methods: ["ParseSingleValue"],
builder_skip: true,
},
{
name: "-webkit-font-size-delta",
api_class: true,
api_methods: ["ParseSingleValue"],
builder_skip: true,
},
{
name: "-webkit-text-decorations-in-effect",
api_class: true,
api_methods: ["ParseSingleValue"],
inherited: true,
builder_skip: true,
},
// Descriptor only names
{
name: "font-display",
api_class: true,
is_descriptor: true,
is_property: false,
},
{
name: "max-zoom",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
{
name: "min-zoom",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
{
name: "orientation",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
{
name: "src",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
{
name: "unicode-range",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
{
name: "user-zoom",
api_class: "CSSPropertyAPIDescriptorOnly",
is_descriptor: true,
is_property: false,
},
// Shorthands
{
name: "animation",
longhands: [
"animation-name", "animation-duration", "animation-timing-function",
"animation-delay", "animation-iteration-count", "animation-direction",
"animation-fill-mode", "animation-play-state"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "background",
longhands: [
"background-image", "background-position-x", "background-position-y",
"background-size", "background-repeat-x", "background-repeat-y",
"background-attachment", "background-origin", "background-clip",
"background-color"
],
api_class: "CSSShorthandPropertyAPIBackground",
api_methods: ["ParseShorthand"],
},
{
name: "background-position",
longhands: ["background-position-x", "background-position-y"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "background-repeat",
longhands: ["background-repeat-x", "background-repeat-y"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border",
longhands: [
"border-top-color", "border-top-style", "border-top-width",
"border-right-color", "border-right-style", "border-right-width",
"border-bottom-color", "border-bottom-style", "border-bottom-width",
"border-left-color", "border-left-style", "border-left-width",
"border-image-source", "border-image-slice", "border-image-width",
"border-image-outset", "border-image-repeat"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-bottom",
longhands: [
"border-bottom-width", "border-bottom-style", "border-bottom-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-color",
longhands: [
"border-top-color", "border-right-color", "border-bottom-color",
"border-left-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-image",
longhands: [
"border-image-source", "border-image-slice", "border-image-width",
"border-image-outset", "border-image-repeat"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-left",
longhands: [
"border-left-width", "border-left-style", "border-left-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-radius",
longhands: [
"border-top-left-radius", "border-top-right-radius",
"border-bottom-right-radius", "border-bottom-left-radius"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-right",
longhands: [
"border-right-width", "border-right-style", "border-right-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-spacing",
longhands: [
"-webkit-border-horizontal-spacing", "-webkit-border-vertical-spacing"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-style",
longhands: [
"border-top-style", "border-right-style", "border-bottom-style",
"border-left-style"
],
api_class: true,
api_methods: ["ParseShorthand"],
keywords: ["none"],
typedom_types: ["Image"],
},
{
name: "border-top",
longhands: ["border-top-width", "border-top-style", "border-top-color"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "border-width",
longhands: [
"border-top-width", "border-right-width", "border-bottom-width",
"border-left-width"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "flex",
longhands: ["flex-grow", "flex-shrink", "flex-basis"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "flex-flow",
longhands: ["flex-direction", "flex-wrap"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "font",
longhands: [
"font-style", "font-variant-ligatures", "font-variant-caps",
"font-variant-numeric", "font-variant-east-asian", "font-weight",
"font-stretch", "font-size", "line-height", "font-family"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "font-variant",
longhands: [
"font-variant-ligatures", "font-variant-caps",
"font-variant-numeric", "font-variant-east-asian"
],
api_class: true,
api_methods: ["ParseShorthand"],
is_descriptor: true,
},
{
name: "grid",
longhands: [
"grid-template-rows", "grid-template-columns", "grid-template-areas",
"grid-auto-flow", "grid-auto-rows", "grid-auto-columns"
],
api_class: true,
api_methods: ["ParseShorthand", "IsLayoutDependent"],
},
{
name: "place-content",
longhands: ["align-content", "justify-content"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "place-items",
longhands: ["align-items", "justify-items"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "place-self",
longhands: ["align-self", "justify-self"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "grid-area",
longhands: [
"grid-row-start", "grid-column-start", "grid-row-end",
"grid-column-end"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "grid-column",
longhands: ["grid-column-start", "grid-column-end"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "grid-gap",
longhands: ["grid-row-gap", "grid-column-gap"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "grid-row",
longhands: ["grid-row-start", "grid-row-end"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "grid-template",
longhands: [
"grid-template-rows", "grid-template-columns", "grid-template-areas"
],
api_class: true,
api_methods: ["ParseShorthand", "IsLayoutDependent"],
},
{
name: "list-style",
longhands: ["list-style-type", "list-style-position", "list-style-image"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "margin",
longhands: ["margin-top", "margin-right", "margin-bottom", "margin-left"],
api_class: true,
api_methods: ["ParseShorthand", "IsLayoutDependent"],
},
{
name: "marker",
longhands: ["marker-start", "marker-mid", "marker-end"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "offset",
longhands: [
"offset-position", "offset-path", "offset-distance", "offset-rotate",
"offset-anchor"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "outline",
longhands: ["outline-color", "outline-style", "outline-width"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "overflow",
longhands: ["overflow-x", "overflow-y"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "scroll-boundary-behavior",
longhands: ["scroll-boundary-behavior-x", "scroll-boundary-behavior-y"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollBoundaryBehavior",
},
{
name: "padding",
longhands: [
"padding-top", "padding-right", "padding-bottom", "padding-left"
],
api_class: true,
api_methods: ["ParseShorthand", "IsLayoutDependent"],
},
{
name: "page-break-after",
longhands: ["break-after"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "page-break-before",
longhands: ["break-before"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "page-break-inside",
longhands: ["break-inside"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "scroll-padding",
longhands: [
"scroll-padding-top", "scroll-padding-right", "scroll-padding-bottom",
"scroll-padding-left"
],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "scroll-padding-block",
longhands: ["scroll-padding-block-start", "scroll-padding-block-end"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "scroll-padding-inline",
longhands: ["scroll-padding-inline-start", "scroll-padding-inline-end"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "scroll-snap-margin",
longhands: ["scroll-snap-margin-top", "scroll-snap-margin-right", "scroll-snap-margin-bottom", "scroll-snap-margin-left"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "scroll-snap-margin-block",
longhands: ["scroll-snap-margin-block-start", "scroll-snap-margin-block-end"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "scroll-snap-margin-inline",
longhands: ["scroll-snap-margin-inline-start", "scroll-snap-margin-inline-end"],
api_class: true,
api_methods: ["ParseShorthand"],
runtime_flag: "CSSScrollSnapPoints",
},
{
name: "text-decoration",
longhands: ["text-decoration-line", "text-decoration-style", "text-decoration-color"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "transition",
longhands: [
"transition-property", "transition-duration",
"transition-timing-function", "transition-delay"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-border-after",
longhands: [
"-webkit-border-after-width", "-webkit-border-after-style",
"-webkit-border-after-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "BorderDirections",
},
},
{
name: "-webkit-border-before",
longhands: [
"-webkit-border-before-width", "-webkit-border-before-style",
"-webkit-border-before-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "BorderDirections",
},
},
{
name: "-webkit-border-end",
longhands: [
"-webkit-border-end-width", "-webkit-border-end-style",
"-webkit-border-end-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
direction_aware_options: {
logical_side: "end",
shorthand_for_physical_side: "BorderDirections",
},
},
{
name: "-webkit-border-start",
longhands: [
"-webkit-border-start-width", "-webkit-border-start-style",
"-webkit-border-start-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
direction_aware_options: {
logical_side: "start",
shorthand_for_physical_side: "BorderDirections",
},
},
{
name: "-webkit-column-break-after",
longhands: ["break-after"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-column-break-before",
longhands: ["break-before"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-column-break-inside",
longhands: ["break-inside"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "column-rule",
longhands: [
"column-rule-width", "column-rule-style", "column-rule-color"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "columns",
longhands: ["column-width", "column-count"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-margin-collapse",
longhands: [
"-webkit-margin-before-collapse", "-webkit-margin-after-collapse"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-mask",
longhands: [
"-webkit-mask-image", "-webkit-mask-position-x",
"-webkit-mask-position-y", "-webkit-mask-size", "-webkit-mask-repeat-x",
"-webkit-mask-repeat-y", "-webkit-mask-origin", "-webkit-mask-clip"
],
api_class: "CSSShorthandPropertyAPIBackground",
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-mask-box-image",
longhands: [
"-webkit-mask-box-image-source", "-webkit-mask-box-image-slice",
"-webkit-mask-box-image-width", "-webkit-mask-box-image-outset",
"-webkit-mask-box-image-repeat"
],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-mask-position",
longhands: ["-webkit-mask-position-x", "-webkit-mask-position-y"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-mask-repeat",
longhands: ["-webkit-mask-repeat-x", "-webkit-mask-repeat-y"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-text-emphasis",
longhands: ["-webkit-text-emphasis-style", "-webkit-text-emphasis-color"],
api_class: true,
api_methods: ["ParseShorthand"],
},
{
name: "-webkit-text-stroke",
longhands: ["-webkit-text-stroke-width", "-webkit-text-stroke-color"],
api_class: true,
api_methods: ["ParseShorthand"],
},
// Aliases; these map to the same CSSPropertyID
{
name: "-epub-caption-side",
alias_for: "caption-side",
},
{
name: "-epub-text-combine",
alias_for: "-webkit-text-combine",
},
{
name: "-epub-text-emphasis",
alias_for: "-webkit-text-emphasis",
},
{
name: "-epub-text-emphasis-color",
alias_for: "-webkit-text-emphasis-color",
},
{
name: "-epub-text-emphasis-style",
alias_for: "-webkit-text-emphasis-style",
},
{
name: "-epub-text-orientation",
alias_for: "-webkit-text-orientation",
},
{
name: "-epub-text-transform",
alias_for: "text-transform",
},
{
name: "-epub-word-break",
alias_for: "word-break",
},
{
name: "-epub-writing-mode",
alias_for: "-webkit-writing-mode",
},
{
name: "-webkit-align-content",
alias_for: "align-content",
},
{
name: "-webkit-align-items",
alias_for: "align-items",
},
{
name: "-webkit-align-self",
alias_for: "align-self",
},
{
name: "-webkit-animation",
alias_for: "animation",
},
{
name: "-webkit-animation-delay",
alias_for: "animation-delay",
},
{
name: "-webkit-animation-direction",
alias_for: "animation-direction",
},
{
name: "-webkit-animation-duration",
alias_for: "animation-duration",
},
{
name: "-webkit-animation-fill-mode",
alias_for: "animation-fill-mode",
},
{
name: "-webkit-animation-iteration-count",
alias_for: "animation-iteration-count",
},
{
name: "-webkit-animation-name",
alias_for: "animation-name",
},
{
name: "-webkit-animation-play-state",
alias_for: "animation-play-state",
},
{
name: "-webkit-animation-timing-function",
alias_for: "animation-timing-function",
},
{
name: "-webkit-backface-visibility",
alias_for: "backface-visibility",
},
// "-webkit-background-size: 10px" behaves as "background-size: 10px 10px"
{
name: "-webkit-background-size",
alias_for: "background-size",
},
{
name: "-webkit-border-bottom-left-radius",
alias_for: "border-bottom-left-radius",
},
{
name: "-webkit-border-bottom-right-radius",
alias_for: "border-bottom-right-radius",
},
// "-webkit-border-radius: 1px 2px" behaves as "border-radius: 1px / 2px"
{
name: "-webkit-border-radius",
alias_for: "border-radius",
},
{
name: "-webkit-border-top-left-radius",
alias_for: "border-top-left-radius",
},
{
name: "-webkit-border-top-right-radius",
alias_for: "border-top-right-radius",
},
{
name: "-webkit-box-shadow",
alias_for: "box-shadow",
},
{
name: "-webkit-box-sizing",
alias_for: "box-sizing",
},
{
name: "-webkit-clip-path",
alias_for: "clip-path",
},
{
name: "-webkit-column-count",
alias_for: "column-count",
},
{
name: "-webkit-column-gap",
alias_for: "column-gap",
},
{
name: "-webkit-column-rule",
alias_for: "column-rule",
},
{
name: "-webkit-column-rule-color",
alias_for: "column-rule-color",
},
{
name: "-webkit-column-rule-style",
alias_for: "column-rule-style",
},
{
name: "-webkit-column-rule-width",
alias_for: "column-rule-width",
},
{
name: "-webkit-column-span",
alias_for: "column-span",
},
{
name: "-webkit-column-width",
alias_for: "column-width",
},
{
name: "-webkit-columns",
alias_for: "columns",
},
{
name: "-webkit-filter",
alias_for: "filter",
},
{
name: "-webkit-flex",
alias_for: "flex",
},
{
name: "-webkit-flex-basis",
alias_for: "flex-basis",
},
{
name: "-webkit-flex-direction",
alias_for: "flex-direction",
},
{
name: "-webkit-flex-flow",
alias_for: "flex-flow",
},
{
name: "-webkit-flex-grow",
alias_for: "flex-grow",
},
{
name: "-webkit-flex-shrink",
alias_for: "flex-shrink",
},
{
name: "-webkit-flex-wrap",
alias_for: "flex-wrap",
},
{
name: "-webkit-font-feature-settings",
alias_for: "font-feature-settings",
},
{
name: "-webkit-justify-content",
alias_for: "justify-content",
},
{
name: "-webkit-opacity",
alias_for: "opacity",
},
{
name: "-webkit-order",
alias_for: "order",
},
{
name: "-webkit-perspective",
alias_for: "perspective",
},
{
name: "-webkit-perspective-origin",
alias_for: "perspective-origin",
},
{
name: "-webkit-shape-image-threshold",
alias_for: "shape-image-threshold",
},
{
name: "-webkit-shape-margin",
alias_for: "shape-margin",
},
{
name: "-webkit-shape-outside",
alias_for: "shape-outside",
},
{
name: "-webkit-text-size-adjust",
alias_for: "text-size-adjust",
},
{
name: "-webkit-transform",
alias_for: "transform",
},
{
name: "-webkit-transform-origin",
alias_for: "transform-origin",
},
{
name: "-webkit-transform-style",
alias_for: "transform-style",
},
{
name: "-webkit-transition",
alias_for: "transition",
},
{
name: "-webkit-transition-delay",
alias_for: "transition-delay",
},
{
name: "-webkit-transition-duration",
alias_for: "transition-duration",
},
{
name: "-webkit-transition-property",
alias_for: "transition-property",
},
{
name: "-webkit-transition-timing-function",
alias_for: "transition-timing-function",
},
{
name: "-webkit-user-select",
alias_for: "user-select",
},
],
}