blob: 2153f56dae5104bbbc41d647b889695f74abced7 [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: {
},
// - property_methods: ["method1", "method2"]
// List of methods that are implemented in the CSSProperty for this
// property.
property_methods: {
default: [],
valid_type: "list",
valid_values: [
"ParseSingleValue",
"ParseShorthand",
"CSSValueFromComputedStyleInternal",
"ColorIncludingFallback",
"InitialValue"
],
},
// Suppresses code generation for the specified style builder functions.
// This allows us to provide hand-written style builder functions in cases
// where it's needed.
style_builder_custom_functions: {
default: [],
valid_type: "list",
valid_values: [
"initial",
"inherit",
"value",
],
},
// Affects how the style building functions are generated.
//
// Several property groups (e.g. color properties) deviate from the default
// style builder application, yet there are enough of these properties that
// we want to generate code for them rather than having manually written
// style builder functions.
style_builder_template: {
valid_values: [
"animation",
"auto",
"background_layer",
"border_image",
"color",
"counter",
"empty",
"grid",
// The legacy template means that regular code generation should not be
// be performed, and that the property is hard-coded in
// style_builder_functions.cc.tmpl.
"legacy",
"mask_box",
"mask_layer",
"svg_paint",
"transition",
],
},
// Additional arguments to 'style_builder_template' may be provided here.
style_builder_template_args: {
default: {},
valid_type: "dict"
},
// - 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. https://drafts.csswg.org/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",
},
// - compositable
// The property can be animated by the compositor
compositable: {
default: false,
valid_type: "bool",
},
// - runtime_flag
// The name of the flag on RuntimeEnabledFeatures
// (e.g. "CSSOverscrollBehavior") 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
// ["third_party/blink/renderer/platform/wtf/vector.h",
// "third_party/blink/renderer/platform/wtf/text/wtf_string.h"]
include_paths: {
default: [],
},
// Name of the pointer type that wraps this field (e.g. scoped_refptr).
wrapper_pointer_name: {
valid_type: "str",
valid_values: ["scoped_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: ["Keyword", "Type", "OtherType"]
// The property can take types specified in typedom_types for CSS Typed OM.
// - 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",
"Keyword",
"Length",
"Number",
"Percentage",
"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 CSSProperty subclasses. We should only
// use style_builder_functions.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
// - 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: {
},
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: ["initial", "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: {
},
// - 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"],
},
// - layout_dependent
// The resolved value used for getComputedStyle() depends on layout for this
// property, which means we may need to update layout to return the correct
// value from getComputedStyle(). Setting this to true will override
// IsLayoutDependentProperty() to return true and require a custom
// IsLayoutDependent() which typically checks for LayoutObject existence and
// type.
layout_dependent: {
default: false,
valid_type: "bool",
},
// - valid_for_visited_link
// Most CSS properties do not apply to :visited and :link for privacy
// reasons. Mark properties which apply to :visited and :link by setting
// this flag to true.
valid_for_visited_link: {
default: false,
valid_type: "bool",
},
},
// 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",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "animation",
style_builder_template_args: {
attribute: "Delay",
},
priority: "Animation",
typedom_types: ["Time"],
separator: ",",
},
{
name: "animation-direction",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
keywords: ["normal", "reverse", "alternate", "alternate-reverse"],
typedom_types: ["Keyword"],
separator: ",",
style_builder_template: "animation",
style_builder_template_args: {
attribute: "Direction",
},
priority: "Animation",
separator: ",",
},
{
name: "animation-duration",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
separator: ",",
style_builder_template: "animation",
style_builder_template_args: {
attribute: "Duration",
},
priority: "Animation",
typedom_types: ["Time"],
separator: ",",
},
{
name: "animation-fill-mode",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "animation",
style_builder_template_args: {
attribute: "FillMode",
},
priority: "Animation",
keywords: ["none", "forwards", "backwards", "both"],
typedom_types: ["Keyword"],
separator: ",",
},
{
name: "animation-iteration-count",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
keywords: ["infinite"],
separator: ",",
style_builder_template: "animation",
style_builder_template_args: {
attribute: "IterationCount",
},
priority: "Animation",
keywords: ["infinite"],
typedom_types: ["Keyword", "Number"],
separator: ",",
},
{
name: "animation-name",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "animation",
style_builder_template_args: {
attribute: "Name",
},
priority: "Animation",
keywords: ["none"],
typedom_types: ["Keyword"],
separator: ","
},
{
name: "animation-play-state",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "animation",
style_builder_template_args: {
attribute: "PlayState",
},
priority: "Animation",
keywords: ["running", "paused"],
typedom_types: ["Keyword"],
separator: ",",
},
{
name: "animation-timing-function",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "animation",
style_builder_template_args: {
attribute: "TimingFunction",
},
priority: "Animation",
keywords: ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"],
typedom_types: ["Keyword"],
separator: ",",
},
{
name: "transition-delay",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "transition",
style_builder_template_args: {
attribute: "Delay",
},
priority: "Animation",
typedom_types: ["Time"],
separator: ",",
},
{
name: "transition-duration",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
typedom_types: ["Keyword", "Time"],
separator: ",",
style_builder_template: "transition",
style_builder_template_args: {
attribute: "Duration",
},
priority: "Animation",
},
{
name: "transition-property",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "transition",
style_builder_template_args: {
attribute: "Property",
},
priority: "Animation",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "transition-timing-function",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
style_builder_template: "transition",
style_builder_template_args: {
attribute: "TimingFunction",
},
priority: "Animation",
keywords: ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"],
typedom_types: ["Keyword"],
separator: ",",
},
// High Priority and all other font properties.
// Other properties can depend upon high priority properties
// (e.g. font-size / ems)
{
name: "color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
inherited: true,
field_group: "inherited",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "Color::kBlack",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
style_builder_custom_functions: ["initial", "inherit", "value"],
priority: "High",
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
valid_for_visited_link: true,
},
{
name: "direction",
property_methods: ["CSSValueFromComputedStyleInternal"],
affected_by_all: false,
inherited: true,
field_template: "keyword",
include_paths: ["third_party/blink/renderer/platform/text/text_direction.h"],
keywords: ["ltr", "rtl"],
typedom_types: ["Keyword"],
default_value: "ltr",
type_name: "TextDirection",
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "font-family",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "FamilyDescription",
type_name: "FontDescription::FamilyDescription",
converter: "ConvertFontFamily",
priority: "High",
},
{
name: "font-kerning",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
name_for_methods: "Kerning",
type_name: "FontDescription::Kerning",
priority: "High",
keywords: ["auto", "normal", "none"],
typedom_types: ["Keyword"],
},
{
name: "font-size",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
font: true,
name_for_methods: "Size",
getter: "GetSize",
converter: "ConvertFontSize",
priority: "High",
keywords: ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "font-size-adjust",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
runtime_flag: "CSSFontSizeAdjust",
font: true,
name_for_methods: "SizeAdjust",
converter: "ConvertFontSizeAdjust",
priority: "High",
keywords: ["none"],
typedom_types: ["Keyword", "Number"]
},
{
name: "font-stretch",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "Stretch",
converter: "ConvertFontStretch",
priority: "High",
keywords: [
"normal", "ultra-condensed", "extra-condensed", "condensed",
"semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"
],
typedom_types: ["Keyword", "Percentage"]
},
{
name: "font-style",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "Style",
converter: "ConvertFontStyle",
priority: "High",
keywords: ["normal", "italic", "oblique"],
typedom_types: ["Keyword"],
},
{
name: "font-variant-ligatures",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
name_for_methods: "VariantLigatures",
type_name: "VariantLigatures",
converter: "ConvertFontVariantLigatures",
priority: "High",
keywords: [
"normal", "none", "common-ligatures", "no-common-ligatures",
"discretionary-ligatures", "no-discretionary-ligatures",
"historical-ligatures", "no-historical-ligatures", "contextual",
"no-contextual"
],
typedom_types: ["Keyword"],
},
{
name: "font-variant-caps",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
name_for_methods: "VariantCaps",
converter: "ConvertFontVariantCaps",
priority: "High",
keywords: [
"normal", "small-caps", "all-small-caps", "petite-caps",
"all-petite-caps", "unicase", "titling-caps"
],
typedom_types: ["Keyword"],
},
{
name: "font-variant-east-asian",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
name_for_methods: "VariantEastAsian",
converter: "ConvertFontVariantEastAsian",
priority: "High",
keywords: [
"normal", "jis78", "jis83", "jis90", "jis04", "simplified",
"traditional", "full-width", "proportional-width", "ruby"
],
typedom_types: ["Keyword"],
},
{
name: "font-variant-numeric",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
name_for_methods: "VariantNumeric",
converter: "ConvertFontVariantNumeric",
priority: "High",
keywords: [
"normal", "lining-nums", "oldstyle-nums", "proportional-nums",
"tabular-nums", "diagonal-fractions", "stacked-fractions", "ordinal",
"slashed-zero"
],
typedom_types: ["Keyword"],
},
{
name: "font-weight",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
inherited: true,
font: true,
name_for_methods: "Weight",
converter: "ConvertFontWeight",
priority: "High",
keywords: ["normal", "bold", "bolder", "lighter"],
typedom_types: ["Keyword", "Number"]
},
{
name: "font-feature-settings",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
inherited: true,
font: true,
name_for_methods: "FeatureSettings",
converter: "ConvertFontFeatureSettings",
priority: "High",
keywords: ["normal"],
typedom_types: ["Keyword"],
},
{
name: "font-variation-settings",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
font: true,
name_for_methods: "VariationSettings",
converter: "ConvertFontVariationSettings",
priority: "High",
keywords: ["normal"],
typedom_types: ["Keyword"]
},
{
name: "-webkit-font-smoothing",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
type_name: "FontSmoothingMode",
priority: "High",
},
{
name: "-webkit-locale",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "text-orientation",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["sideways", "mixed", "upright"],
typedom_types: ["Keyword"],
default_value: "mixed",
getter: "GetTextOrientation",
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "-webkit-text-orientation",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
type_name: "TextOrientation",
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "writing-mode",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
field_template: "keyword",
include_paths: ["third_party/blink/renderer/platform/text/writing_mode.h"],
keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"],
typedom_types: ["Keyword"],
default_value: "horizontal-tb",
type_name: "WritingMode",
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "-webkit-writing-mode",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
type_name: "WritingMode",
style_builder_custom_functions: ["value"],
priority: "High",
},
{
name: "text-rendering",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
font: true,
type_name: "TextRenderingMode",
keywords: ["auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision"],
typedom_types: ["Keyword"],
priority: "High",
},
{
name: "zoom",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
field_group: "visual",
field_template: "primitive",
default_value: "1.0",
type_name: "float",
style_builder_custom_functions: ["initial", "inherit", "value"],
priority: "High",
},
{
name: "align-content",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_content_alignment_data.h"],
default_value: "StyleContentAlignmentData(ContentPosition::kNormal, ContentDistributionType::kDefault, OverflowAlignment::kDefault)",
type_name: "StyleContentAlignmentData",
converter: "ConvertContentAlignmentData",
},
{
name: "align-items",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_self_alignment_data.h"],
default_value: "StyleSelfAlignmentData(ItemPosition::kNormal, OverflowAlignment::kDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "alignment-baseline",
property_methods: ["CSSValueFromComputedStyleInternal"],
svg: true,
keywords: ["baseline", "alphabetic", "ideographic", "middle", "central", "mathematical"],
typedom_types: ["Keyword"]
},
{
name: "align-self",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_self_alignment_data.h"],
default_value: "StyleSelfAlignmentData(ItemPosition::kAuto, OverflowAlignment::kDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "backdrop-filter",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
compositable: true,
runtime_flag: "CSSBackdropFilter",
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_filter_data.h"],
wrapper_pointer_name: "Persistent",
default_value: "StyleFilterData::Create()",
type_name: "StyleFilterData",
computed_style_custom_functions: ["initial", "getter","setter"],
converter: "ConvertFilterOperations",
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "backface-visibility",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: ["visible", "hidden"],
typedom_types: ["Keyword"],
default_value: "visible",
},
{
name: "background-attachment",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
keywords: ["scroll", "fixed", "local"],
typedom_types: ["Keyword"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "Attachment",
},
},
{
name: "background-blend-mode",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
keywords: [
"normal", "multiply", "screen", "overlay", "darken", "lighten",
"color-dodge", "color-burn", "hard-light", "soft-light", "difference",
"exclusion", "hue", "saturation", "color", "luminosity"
],
typedom_types: ["Keyword"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "BlendMode",
fill_type_getter: "GetBlendMode",
},
},
{
name: "background-clip",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
keywords: ["border-box", "padding-box", "content-box"],
typedom_types: ["Keyword"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "Clip",
},
},
{
name: "background-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "background",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/css/style_color.h"],
default_value: "StyleColor(Color::kTransparent)",
type_name: "StyleColor",
computed_style_custom_functions: ["getter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
style_builder_template_args: {
initial_color: "ComputedStyleInitialValues::InitialBackgroundColor",
},
valid_for_visited_link: true,
},
{
name: "background-image",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
keywords: ["auto", "none"],
typedom_types: ["Keyword", "Image"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "Image",
fill_type_getter: "GetImage",
},
},
{
name: "background-origin",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
keywords: ["border-box", "padding-box", "content-box"],
typedom_types: ["Keyword"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "Origin",
},
},
{
name: "background-position-x",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "PositionX",
},
},
{
name: "background-position-y",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "PositionY",
},
},
{
name: "background-repeat-x",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "RepeatX",
},
},
{
name: "background-repeat-y",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "RepeatY",
},
},
{
name: "background-size",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
keywords: ["auto", "cover", "contain"],
typedom_types: ["Keyword", "Length", "Percentage"],
separator: " ",
style_builder_template: "background_layer",
style_builder_template_args: {
fill_type: "Size",
},
},
{
name: "baseline-shift",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
style_builder_custom_functions: ["inherit", "value"],
keywords: ["sub", "super"],
typedom_types: ["Keyword", "Percentage", "Length"]
},
{
name: "border-bottom-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-bottom-left-radius",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_size.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
typedom_types: ["Length", "Percentage"],
},
{
name: "border-bottom-right-radius",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_size.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
typedom_types: ["Length", "Percentage"],
},
{
name: "border-bottom-style",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
typedom_types: ["Keyword"],
default_value: "none",
type_name: "EBorderStyle",
},
{
name: "border-bottom-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/layout_unit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Keyword", "Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-collapse",
property_methods: ["CSSValueFromComputedStyleInternal"],
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["separate", "collapse"],
typedom_types: ["Keyword"],
default_value: "separate",
},
{
name: "border-image-outset",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
interpolable: true,
typedom_types: ["Length", "Number"],
style_builder_template: "border_image",
style_builder_template_args: {
modifier_type: "Outset",
},
},
{
name: "border-image-repeat",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
keywords: ["stretch", "repeat", "round", "space"],
typedom_types: ["Keyword"],
style_builder_template: "border_image",
style_builder_template_args: {
modifier_type: "Repeat",
},
},
{
name: "border-image-slice",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
interpolable: true,
typedom_types: ["Number", "Percentage"],
style_builder_template: "border_image",
style_builder_template_args: {
modifier_type: "Slice",
},
},
{
name: "border-image-source",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
interpolable: true,
keywords: ["none"],
typedom_types: ["Keyword", "Image"],
style_builder_custom_functions: ["value"],
},
{
name: "border-image-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "InitialValue"],
interpolable: true,
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage", "Number"],
style_builder_template: "border_image",
style_builder_template_args: {
modifier_type: "Width",
},
},
{
name: "border-left-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-left-style",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
typedom_types: ["Keyword"],
default_value: "none",
type_name: "EBorderStyle",
},
{
name: "border-left-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/layout_unit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Keyword", "Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-right-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-right-style",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
typedom_types: ["Keyword"],
default_value: "none",
type_name: "EBorderStyle",
},
{
name: "border-right-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/layout_unit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Keyword", "Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "border-top-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "border-top-left-radius",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_size.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
typedom_types: ["Length", "Percentage"],
},
{
name: "border-top-right-radius",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_size.h"],
default_value: "LengthSize(Length(0, kFixed), Length(0, kFixed))",
type_name: "LengthSize",
converter: "ConvertRadius",
typedom_types: ["Length", "Percentage"],
},
{
name: "border-top-style",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "surround",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
typedom_types: ["Keyword"],
default_value: "none",
type_name: "EBorderStyle",
},
{
name: "border-top-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "surround",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/layout_unit.h"],
keywords: ["thin", "medium", "thick"],
default_value: "LayoutUnit(3)",
typedom_types: ["Keyword", "Length"],
type_name: "LayoutUnit",
computed_style_custom_functions: ["getter", "setter"],
converter: "ConvertBorderWidth",
},
{
name: "bottom",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthOrAuto",
},
{
name: "box-shadow",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["third_party/blink/renderer/core/style/shadow_list.h"],
wrapper_pointer_name: "scoped_refptr",
default_value: "nullptr",
type_name: "ShadowList",
converter: "ConvertShadowList",
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "box-sizing",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "box",
field_template: "keyword",
keywords: ["content-box", "border-box"],
typedom_types: ["Keyword"],
default_value: "content-box",
},
{
name: "break-after",
property_methods: ["CSSValueFromComputedStyleInternal"],
// 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"
],
typedom_types: ["Keyword"],
default_value: "auto",
type_name: "EBreakBetween",
},
{
name: "break-before",
property_methods: ["CSSValueFromComputedStyleInternal"],
// 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"
],
typedom_types: ["Keyword"],
default_value: "auto",
type_name: "EBreakBetween",
},
{
name: "break-inside",
property_methods: ["CSSValueFromComputedStyleInternal"],
// 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"],
typedom_types: ["Keyword"],
default_value: "auto",
},
{
name: "buffered-rendering",
property_methods: ["CSSValueFromComputedStyleInternal"],
svg: true,
},
{
name: "caption-side",
property_methods: ["CSSValueFromComputedStyleInternal"],
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["top", "bottom"],
typedom_types: ["Keyword"],
default_value: "top",
},
{
name: "caret-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "Color()",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
style_builder_custom_functions: ["initial", "inherit", "value"],
keywords: ["auto", "currentcolor"],
typedom_types: ["Keyword"],
valid_for_visited_link: true,
},
{
name: "clear",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_template: "keyword",
keywords: ["none", "left", "right", "both"],
typedom_types: ["Keyword"],
default_value: "none",
},
{
name: "clip",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "visual",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_box.h"],
default_value: "LengthBox()",
type_name: "LengthBox",
computed_style_custom_functions: ["setter"],
style_builder_template: "auto",
converter: "ConvertClip",
keywords: ["auto"],
typedom_types: ["Keyword"],
},
{
name: "clip-path",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["third_party/blink/renderer/core/style/clip_path_operation.h"],
wrapper_pointer_name: "scoped_refptr",
default_value: "nullptr",
type_name: "ClipPathOperation",
converter: "ConvertClipPath",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "clip-rule",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
type_name: "WindRule",
keywords: ["nonzero", "evenodd"],
typedom_types: ["Keyword"]
},
{
name: "color-interpolation",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
keywords: ["auto", "sRGB", "linearRGB"],
typedom_types: ["Keyword"],
},
{
name: "color-interpolation-filters",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
type_name: "EColorInterpolation",
},
{
name: "color-rendering",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
keywords: ["auto", "optimizeSpeed", "optimizeQuality"],
typedom_types: ["Keyword"],
},
{
name: "column-fill",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: ["balance", "auto"],
default_value: "balance",
getter: "GetColumnFill",
typedom_types: ["Keyword"]
},
{
name: "contain",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_size: 4,
field_template: "primitive",
default_value: "kContainsNone",
name_for_methods: "Contain",
type_name: "unsigned",
converter: "ConvertFlags<Containment>",
keywords: ["none", "strict", "content", "size", "layout", "style", "paint"],
typedom_types: ["Keyword"],
},
{
name: "content",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/content_data.h"],
wrapper_pointer_name: "Persistent",
default_value: "nullptr",
separator: ",",
type_name: "ContentData",
computed_style_custom_functions: ["getter", "setter"],
style_builder_custom_functions: ["initial", "inherit", "value"],
},
{
name: "counter-increment",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
style_builder_template: "counter",
style_builder_template_args: {
action: "Increment",
},
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "counter-reset",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
style_builder_template: "counter",
style_builder_template_args: {
action: "Reset",
},
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "cursor",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
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", "grab", "grabbing"
],
default_value: "auto",
style_builder_custom_functions: ["initial", "inherit", "value"],
typedom_types: ["Keyword"]
},
{
name: "cx",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
typedom_types: ["Length", "Percentage"],
converter: "ConvertLength",
},
{
name: "cy",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
typedom_types: ["Length", "Percentage"],
converter: "ConvertLength",
},
{
name: "d",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
converter: "ConvertPathOrNone",
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "display",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
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"
],
typedom_types: ["Keyword"],
style_builder_custom_functions: ["initial", "inherit", "value"],
},
{
name: "dominant-baseline",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
keywords: ["auto", "alphabetic", "ideographic", "middle", "central", "mathematical", "hanging"],
typedom_types: ["Keyword"]
},
{
name: "empty-cells",
property_methods: ["CSSValueFromComputedStyleInternal"],
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["show", "hide"],
typedom_types: ["Keyword"],
default_value: "show",
},
{
name: "fill",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
svg: true,
setter: "SetFillPaint",
converter: "ConvertSVGPaint",
style_builder_template: "svg_paint",
style_builder_template_args: {
paint_type: "FillPaint",
},
valid_for_visited_link: true,
},
{
name: "fill-opacity",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
svg: true,
converter: "ConvertNumberOrPercentage",
typedom_types: ["Number"],
},
{
name: "fill-rule",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
type_name: "WindRule",
keywords: ["nonzero", "evenodd"],
typedom_types: ["Keyword"]
},
{
name: "filter",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
compositable: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_filter_data.h"],
wrapper_pointer_name: "Persistent",
default_value: "StyleFilterData::Create()",
type_name: "StyleFilterData",
computed_style_custom_functions: ["initial", "getter", "setter"],
converter: "ConvertFilterOperations",
keywords: ["none"],
typedom_types: ["Keyword"],
},
{
name: "flex-basis",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(kAuto)",
converter: "ConvertLengthOrAuto",
typedom_types: ["Keyword", "Length", "Percentage"],
keywords: ["auto"]
},
{
name: "flex-direction",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
typedom_types: ["Keyword"],
keywords: ["row", "row-reverse", "column", "column-reverse"],
default_value: "row",
},
{
name: "flex-grow",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0f",
type_name: "float",
typedom_types: ["Number"],
},
{
name: "flex-shrink",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "1.0f",
type_name: "float",
typedom_types: ["Number"],
},
{
name: "flex-wrap",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
typedom_types: ["Keyword"],
keywords: ["nowrap", "wrap", "wrap-reverse"],
default_value: "nowrap",
},
{
name: "float",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_template: "keyword",
keywords: ["none", "left", "right"],
typedom_types: ["Keyword"],
default_value: "none",
name_for_methods: "Floating",
type_name: "EFloat",
},
{
name: "flood-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
svg: true,
converter: "ConvertColor",
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
},
{
name: "flood-opacity",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
converter: "ConvertNumberOrPercentage",
typedom_types: ["Number"]
},
{
name: "grid-auto-columns",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/wtf/vector.h",
"third_party/blink/renderer/core/style/grid_track_size.h"],
default_value: "Vector<GridTrackSize>(1, GridTrackSize(Length(kAuto)))",
type_name: "Vector<GridTrackSize>",
converter: "ConvertGridTrackSizeList",
keywords: ["auto", "min-content", "max-content"],
typedom_types: ["Keyword", "Length", "Percentage", "Flex"],
separator: " "
},
{
name: "grid-auto-flow",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_size: 4, // FIXME: Make this use "kGridAutoFlowBits".
field_template: "primitive",
default_value: "kAutoFlowRow",
type_name: "GridAutoFlow",
computed_style_custom_functions: ["getter"],
converter: "ConvertGridAutoFlow",
keywords: ["row", "column"],
typedom_types: ["Keyword"]
},
{
name: "grid-auto-rows",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/wtf/vector.h",
"third_party/blink/renderer/core/style/grid_track_size.h"],
default_value: "Vector<GridTrackSize>(1, GridTrackSize(Length(kAuto)))",
type_name: "Vector<GridTrackSize>",
converter: "ConvertGridTrackSizeList",
keywords: ["auto", "min-content", "max-content"],
typedom_types: ["Keyword", "Length", "Percentage", "Flex"],
separator: " "
},
{
name: "grid-column-end",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/grid_position.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
keywords: ["auto"],
typedom_types: ["Keyword"],
converter: "ConvertGridPosition",
},
{
name: "grid-column-start",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/grid_position.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
keywords: ["auto"],
typedom_types: ["Keyword"],
converter: "ConvertGridPosition",
},
{
name: "grid-row-end",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/grid_position.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
keywords: ["auto"],
typedom_types: ["Keyword"],
converter: "ConvertGridPosition",
},
{
name: "grid-row-start",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/grid_position.h"],
default_value: "GridPosition()",
type_name: "GridPosition",
keywords: ["auto"],
typedom_types: ["Keyword"],
converter: "ConvertGridPosition",
},
{
name: "grid-template-areas",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
style_builder_custom_functions: ["initial", "inherit", "value"],
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "grid-template-columns",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
layout_dependent: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/wtf/vector.h",
"third_party/blink/renderer/core/style/grid_track_size.h"],
default_value: "Vector<GridTrackSize>()",
type_name: "Vector<GridTrackSize>",
style_builder_template: "grid",
style_builder_template_args: {
type: "Column",
},
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "grid-template-rows",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
layout_dependent: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/wtf/vector.h",
"third_party/blink/renderer/core/style/grid_track_size.h"],
default_value: "Vector<GridTrackSize>()",
type_name: "Vector<GridTrackSize>",
style_builder_template: "grid",
style_builder_template_args: {
type: "Row",
},
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "height",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
layout_dependent: true,
field_group: "box",
field_template: "<length>",
keywords: ["auto", "fit-content", "min-content", "max-content"],
default_value: "Length()",
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthSizing",
},
{
name: "hyphens",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["none", "manual", "auto"],
default_value: "manual",
type_name: "Hyphens",
typedom_types: ["Keyword"]
},
{
name: "image-rendering",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: [
"auto", "optimizeSpeed", "optimizeQuality",
"-webkit-optimize-contrast", "pixelated"
],
typedom_types: ["Keyword"],
default_value: "auto",
},
{
name: "image-orientation",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
runtime_flag: "ImageOrientation",
field_group: "*",
field_template: "primitive",
default_value: "false",
name_for_methods: "RespectImageOrientation",
type_name: "bool",
converter: "ConvertImageOrientation",
},
{
name: "isolation",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: ["auto", "isolate"],
typedom_types: ["Keyword"],
default_value: "auto",
},
{
name: "justify-content",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_content_alignment_data.h"],
default_value: "StyleContentAlignmentData(ContentPosition::kNormal, ContentDistributionType::kDefault, OverflowAlignment::kDefault)",
type_name: "StyleContentAlignmentData",
converter: "ConvertContentAlignmentData",
},
{
name: "justify-items",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_self_alignment_data.h"],
default_value: "StyleSelfAlignmentData(ItemPosition::kLegacy, OverflowAlignment::kDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "justify-self",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_self_alignment_data.h"],
default_value: "StyleSelfAlignmentData(ItemPosition::kAuto, OverflowAlignment::kDefault)",
type_name: "StyleSelfAlignmentData",
converter: "ConvertSelfOrDefaultAlignmentData",
},
{
name: "left",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthOrAuto",
},
{
name: "letter-spacing",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
converter: "ConvertSpacing",
keywords: ["normal"],
typedom_types: ["Keyword", "Length"]
},
{
name: "lighting-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
svg: true,
converter: "ConvertColor",
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
},
{
name: "line-height",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
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",
keywords: ["normal"],
typedom_types: ["Keyword", "Length", "Number", "Percentage"]
},
{
name: "line-height-step",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
runtime_flag: "CSSSnapSize",
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "uint8_t",
converter: "ConvertComputedLength<uint8_t>",
typedom_types: ["Length"],
},
{
name: "list-style-image",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_image.h"],
wrapper_pointer_name: "Persistent",
default_value: "nullptr",
typedom_types: ["Keyword", "Image"],
type_name: "StyleImage",
computed_style_custom_functions: ["getter", "setter"],
style_builder_custom_functions: ["value"],
keywords: ["none"]
},
{
name: "list-style-position",
property_methods: ["CSSValueFromComputedStyleInternal"],
independent: true,
inherited: true,
field_template: "keyword",
keywords: ["outside", "inside"],
typedom_types: ["Keyword"],
default_value: "outside",
},
{
name: "list-style-type",
property_methods: ["CSSValueFromComputedStyleInternal"],
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",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "margin-left",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "margin-right",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "margin-top",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertQuirkyLength",
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "marker-end",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
name_for_methods: "MarkerEndResource",
converter: "ConvertElementReference",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "marker-mid",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
name_for_methods: "MarkerMidResource",
converter: "ConvertElementReference",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "marker-start",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
name_for_methods: "MarkerStartResource",
converter: "ConvertElementReference",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "mask",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
svg: true,
name_for_methods: "MaskerResource",
converter: "ConvertElementReference",
},
{
name: "mask-source-type",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
runtime_flag: "CSSMaskSourceType",
style_builder_template: "mask_layer",
style_builder_template_args: {
fill_type: "MaskSourceType",
},
},
{
name: "mask-type",
property_methods: ["CSSValueFromComputedStyleInternal"],
svg: true,
keywords: ["luminance", "alpha"],
typedom_types: ["Keyword"]
},
{
name: "max-height",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length(kMaxSizeNone)",
converter: "ConvertLengthMaxSizing",
keywords: ["none"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "max-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length(kMaxSizeNone)",
converter: "ConvertLengthMaxSizing",
keywords: ["none"],
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "min-height",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLengthSizing",
typedom_types: ["Length", "Percentage"]
},
{
name: "min-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
is_descriptor: true,
interpolable: true,
field_group: "box",
field_template: "<length>",
default_value: "Length()",
converter: "ConvertLengthSizing",
typedom_types: ["Length", "Percentage"]
},
{
name: "mix-blend-mode",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
include_paths: ["third_party/blink/renderer/platform/graphics/graphics_types.h"],
keywords: [
"normal", "multiply", "screen", "overlay", "darken", "lighten",
"color-dodge", "color-burn", "hard-light", "soft-light", "difference",
"exclusion", "hue", "saturation", "color", "luminosity"
],
typedom_types: ["Keyword"],
default_value: "normal",
name_for_methods: "BlendMode",
type_name: "BlendMode",
},
{
name: "object-fit",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: ["fill", "contain", "cover", "none", "scale-down"],
typedom_types: ["Keyword"],
default_value: "fill",
getter: "GetObjectFit",
},
{
name: "object-position",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_point.h"],
default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent))",
type_name: "LengthPoint",
converter: "ConvertPosition",
typedom_types: ["Keyword", "Position"],
},
{
name: "offset-anchor",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
runtime_flag: "CSSOffsetPositionAnchor",
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_point.h"],
default_value: "LengthPoint(Length(kAuto), Length(kAuto))",
type_name: "LengthPoint",
converter: "ConvertPositionOrAuto",
keywords: ["auto"],
typedom_types: ["Keyword", "Position"]
},
{
name: "offset-distance",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "<length>",
default_value: "Length(0, kFixed)",
converter: "ConvertLength",
typedom_types: ["Length", "Percentage"]
},
{
name: "offset-path",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "pointer",
include_paths: ["third_party/blink/renderer/core/style/basic_shapes.h"],
wrapper_pointer_name: "scoped_refptr",
default_value: "nullptr",
type_name: "BasicShape",
converter: "ConvertOffsetPath",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "offset-position",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
runtime_flag: "CSSOffsetPositionAnchor",
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_point.h"],
default_value: "LengthPoint(Length(kAuto), Length(kAuto))",
type_name: "LengthPoint",
converter: "ConvertPositionOrAuto",
keywords: ["auto"],
typedom_types: ["Keyword", "Position"]
},
{
name: "offset-rotate",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/core/style/style_offset_rotation.h"],
default_value: "StyleOffsetRotation(0, OffsetRotationType::kAuto)",
type_name: "StyleOffsetRotation",
converter: "ConvertOffsetRotate",
keywords: ["auto", "reverse"],
typedom_types: ["Keyword", "Angle"]
},
{
name: "opacity",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
compositable: true,
field_group: "*",
field_template: "primitive",
default_value: "1.0",
type_name: "float",
computed_style_custom_functions: ["setter"],
typedom_types: ["Keyword", "Number"]
},
{
name: "order",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "int",
computed_style_custom_functions: ["setter"],
typedom_types: ["Number"]
},
{
name: "orphans",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
inherited: true,
field_group: "*",
field_template: "primitive",
computed_style_custom_functions: ["setter"],
default_value: "2",
type_name: "short",
typedom_types: ["Number"]
},
{
name: "outline-color",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal", "ColorIncludingFallback"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/graphics/color.h"],
default_value: "0",
type_name: "Color",
computed_style_custom_functions: ["getter", "setter"],
keywords: ["currentcolor"],
typedom_types: ["Keyword"],
converter: "ConvertStyleColor",
style_builder_template: "color",
valid_for_visited_link: true,
},
{
name: "outline-offset",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0",
type_name: "int",
computed_style_custom_functions: ["getter"],
converter: "ConvertComputedLength<int>",
typedom_types: ["Length"],
},
{
name: "outline-style",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: [
"none", "hidden", "inset", "groove", "outset", "ridge", "dotted",
"dashed", "solid", "double"
],
typedom_types: ["Keyword"],
default_value: "none",
type_name: "EBorderStyle",
style_builder_custom_functions: ["initial", "inherit", "value"],
},
{
name: "outline-width",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/layout_unit.h"],
default_value: "LayoutUnit(3)",
type_name: "LayoutUnit",
computed_style_custom_functions: ["initial", "getter", "setter"],
converter: "ConvertLineWidth<unsigned short>",
keywords: ["thin", "medium", "thick"],
typedom_types: ["Keyword", "Length"],
},
{
name: "overflow-anchor",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: false,
field_template: "keyword",
keywords: [
"visible", "none", "auto"
],
typedom_types: ["Keyword"],
default_value: "auto",
},
{
name: "overflow-wrap",
property_methods: ["CSSValueFromComputedStyleInternal"],
inherited: true,
field_group: "*",
field_template: "keyword",
keywords: ["normal", "break-word"],
default_value: "normal",
typedom_types: ["Keyword"]
},
{
name: "overflow-x",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_template: "keyword",
keywords: [
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x",
"-webkit-paged-y"
],
typedom_types: ["Keyword"],
default_value: "visible",
type_name: "EOverflow",
},
{
name: "overflow-y",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_template: "keyword",
keywords: [
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x",
"-webkit-paged-y"
],
typedom_types: ["Keyword"],
default_value: "visible",
type_name: "EOverflow",
},
{
name: "overscroll-behavior-x",
property_methods: ["CSSValueFromComputedStyleInternal"],
runtime_flag: "CSSOverscrollBehavior",
field_template: "keyword",
keywords: ["auto", "contain", "none"],
default_value: "auto",
type_name: "EOverscrollBehavior",
typedom_types: ["Keyword"]
},
{
name: "overscroll-behavior-y",
property_methods: ["CSSValueFromComputedStyleInternal"],
runtime_flag: "CSSOverscrollBehavior",
field_template: "keyword",
keywords: ["auto", "contain", "none"],
default_value: "auto",
type_name: "EOverscrollBehavior",
typedom_types: ["Keyword"]
},
{
name: "padding-bottom",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "padding-left",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "padding-right",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "padding-top",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
default_value: "Length(kFixed)",
converter: "ConvertLength",
typedom_types: ["Keyword", "Length", "Percentage"]
},
{
name: "paint-order",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
svg: true,
converter: "ConvertPaintOrder",
keywords: ["normal", "fill", "stroke", "markers"],
typedom_types: ["Keyword"]
},
{
name: "perspective",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
field_group: "*",
field_template: "primitive",
default_value: "0.0",
type_name: "float",
converter: "ConvertPerspective",
keywords: ["none"],
typedom_types: ["Keyword", "Length"]
},
{
name: "perspective-origin",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "*",
field_template: "external",
include_paths: ["third_party/blink/renderer/platform/length_point.h"],
default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent))",
type_name: "LengthPoint",
converter: "ConvertPosition",
typedom_types: ["Position"]
},
{
name: "pointer-events",
property_methods: ["CSSValueFromComputedStyleInternal"],
independent: true,
inherited: true,
field_template: "keyword",
keywords: [
"none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke",
"visibleFill", "visiblePainted", "bounding-box", "all"
],
typedom_types: ["Keyword"],
default_value: "auto",
},
{
name: "position",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_template: "keyword",
keywords: [
"static", "relative", "absolute", "fixed", "sticky"
],
typedom_types: ["Keyword"],
default_value: "static",
getter: "GetPosition",
style_builder_custom_functions: ["inherit"],
},
{
name: "quotes",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
inherited: true,
field_group: "*",
field_template: "pointer",
include_paths: ["third_party/blink/renderer/core/style/quotes_data.h"],
wrapper_pointer_name: "scoped_refptr",
default_value: "nullptr",
type_name: "QuotesData",
converter: "ConvertQuotes",
keywords: ["none"],
typedom_types: ["Keyword"]
},
{
name: "resize",
property_methods: ["CSSValueFromComputedStyleInternal"],
field_group: "*",
field_template: "keyword",
keywords: ["none", "both", "horizontal", "vertical"],
typedom_types: ["Keyword"],
default_value: "none",
style_builder_custom_functions: ["value"],
},
{
name: "right",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
layout_dependent: true,
field_group: "surround",
field_template: "<length>",
keywords: ["auto"],
default_value: "Length()",
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthOrAuto",
},
{
name: "r",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
typedom_types: ["Length", "Percentage"],
converter: "ConvertLength",
},
{
name: "rx",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthOrAuto",
},
{
name: "ry",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
interpolable: true,
svg: true,
keywords: ["auto"],
typedom_types: ["Keyword", "Length", "Percentage"],
converter: "ConvertLengthOrAuto",
},
{
name: "scroll-behavior",
property_methods: ["CSSValueFromComputedStyleInternal"],
runtime_flag: "CSSOMSmoothScroll",
field_group: "*",
field_size: 2, // FIXME: Convert this to a keyword field
field_template: "primitive",
default_value: "kScrollBehaviorAuto",
type_name: "ScrollBehavior",
keywords: ["auto", "smooth"],
typedom_types: ["Keyword"],
},
{
name: "scroll-margin-block-end",
property_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
direction_aware_options: {
logical_side: "after",
shorthand_for_physical_side: "scrollMarginShorthand",
},
typedom_types: ["Keyword", "Length"]
},
{
name: "scroll-customization",
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
converter: "ConvertFlags<blink::ScrollCustomization::ScrollDirection>",
type_name: "ScrollCustomization::ScrollDirection",
field_group: "*",
field_size: 4,
field_template: "primitive",
default_value: "ScrollCustomization::kScrollDirectionNone",
include_paths: ["third_party/blink/renderer/platform/scroll/scroll_customization.h"],
runtime_flag: "ScrollCustomization",
},
{
name: "scroll-margin-block-start",
property_methods: ["ParseSingleValue"],
runtime_flag: "CSSScrollSnapPoints",
direction_aware_options: {
logical_side: "before",
shorthand_for_physical_side: "scrollMarginShorthand",
},
typedom_types: ["Keyword", "Length"]
},