dymokomi/luce-browser-css
Source of release 0.5.1
0.5.1 / src / css_data / generated_property_id_3.lucb
#==============================================================================================
#
# generated_property_id_3 - the CSS properties: shorthands and logical properties
#
# DESCRIPTION:
# Generated by tools/gen_css from data/css; do not edit. The C++ it stands for, at
# Ladybird 47c82b38d0, is written by Meta/Generators/generate_libweb_css_property_id.py
# from Properties.json, Enums.json and LogicalPropertyGroups.json:
#
# Build/Libraries/LibWeb/CSS/PropertyID.cpp
#
# Shorthands and their longhands, the computation order and the logical property mappings;
# continued from generated_property_id_2. The `static Vector<PropertyID>`s are built on first
# use in the C heap.
#
# Copyright (c) 2018-2026, the Ladybird developers.
# Copyright (c) 2026 the luce-browser authors.
# SPDX-License-Identifier: BSD-2-Clause (see LICENSE)
#
#==============================================================================================
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_is_shorthand.
pub func property_is_shorthand(property_id: PropertyId) -> bool:
match property_id:
.all: return true
.animation: return true
.background: return true
.background_position: return true
.border: return true
.border_block: return true
.border_block_color: return true
.border_block_end: return true
.border_block_start: return true
.border_block_style: return true
.border_block_width: return true
.border_bottom: return true
.border_color: return true
.border_image: return true
.border_inline: return true
.border_inline_color: return true
.border_inline_end: return true
.border_inline_start: return true
.border_inline_style: return true
.border_inline_width: return true
.border_left: return true
.border_radius: return true
.border_right: return true
.border_style: return true
.border_top: return true
.border_width: return true
.columns: return true
.corner_block_end_shape: return true
.corner_block_start_shape: return true
.corner_bottom_shape: return true
.corner_inline_end_shape: return true
.corner_inline_start_shape: return true
.corner_left_shape: return true
.corner_right_shape: return true
.corner_shape: return true
.corner_top_shape: return true
.flex: return true
.flex_flow: return true
.font: return true
.font_variant: return true
.gap: return true
.grid: return true
.grid_area: return true
.grid_column: return true
.grid_row: return true
.grid_template: return true
.inset: return true
.inset_block: return true
.inset_inline: return true
.list_style: return true
.margin: return true
.margin_block: return true
.margin_inline: return true
.mask: return true
.outline: return true
.overflow: return true
.overflow_clip_margin: return true
.overflow_clip_margin_block: return true
.overflow_clip_margin_inline: return true
.padding: return true
.padding_block: return true
.padding_inline: return true
.place_content: return true
.place_items: return true
.place_self: return true
.scroll_timeline: return true
.text_decoration: return true
.text_wrap: return true
.transition: return true
.view_timeline: return true
.white_space: return true
_: return false
# The `static Vector<PropertyID> longhands` of longhands_for_shorthand, one per case.
var longhands_for_shorthand_longhands: StaticPropertyIds[71]
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::longhands_for_shorthand.
pub func longhands_for_shorthand(property_id: PropertyId) -> ak.Vector[PropertyId]:
match property_id:
.all:
return static_property_ids(&longhands_for_shorthand_longhands[0], [
PropertyId.webkit_text_fill_color,
PropertyId.accent_color,
PropertyId.align_content,
PropertyId.align_items,
PropertyId.align_self,
PropertyId.anchor_name,
PropertyId.anchor_scope,
PropertyId.animation_composition,
PropertyId.animation_delay,
PropertyId.animation_direction,
PropertyId.animation_duration,
PropertyId.animation_fill_mode,
PropertyId.animation_iteration_count,
PropertyId.animation_name,
PropertyId.animation_play_state,
PropertyId.animation_timeline,
PropertyId.animation_timing_function,
PropertyId.appearance,
PropertyId.aspect_ratio,
PropertyId.backdrop_filter,
PropertyId.background_attachment,
PropertyId.background_blend_mode,
PropertyId.background_clip,
PropertyId.background_color,
PropertyId.background_image,
PropertyId.background_origin,
PropertyId.background_position_x,
PropertyId.background_position_y,
PropertyId.background_repeat,
PropertyId.background_size,
PropertyId.block_size,
PropertyId.border_block_end_color,
PropertyId.border_block_end_style,
PropertyId.border_block_end_width,
PropertyId.border_block_start_color,
PropertyId.border_block_start_style,
PropertyId.border_block_start_width,
PropertyId.border_bottom_color,
PropertyId.border_bottom_left_radius,
PropertyId.border_bottom_right_radius,
PropertyId.border_bottom_style,
PropertyId.border_bottom_width,
PropertyId.border_collapse,
PropertyId.border_end_end_radius,
PropertyId.border_end_start_radius,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
PropertyId.border_image_slice,
PropertyId.border_image_source,
PropertyId.border_image_width,
PropertyId.border_inline_end_color,
PropertyId.border_inline_end_style,
PropertyId.border_inline_end_width,
PropertyId.border_inline_start_color,
PropertyId.border_inline_start_style,
PropertyId.border_inline_start_width,
PropertyId.border_left_color,
PropertyId.border_left_style,
PropertyId.border_left_width,
PropertyId.border_right_color,
PropertyId.border_right_style,
PropertyId.border_right_width,
PropertyId.border_spacing,
PropertyId.border_start_end_radius,
PropertyId.border_start_start_radius,
PropertyId.border_top_color,
PropertyId.border_top_left_radius,
PropertyId.border_top_right_radius,
PropertyId.border_top_style,
PropertyId.border_top_width,
PropertyId.bottom,
PropertyId.box_shadow,
PropertyId.box_sizing,
PropertyId.caption_side,
PropertyId.caret_color,
PropertyId.clear,
PropertyId.clip,
PropertyId.clip_path,
PropertyId.clip_rule,
PropertyId.color,
PropertyId.color_interpolation,
PropertyId.color_scheme,
PropertyId.column_count,
PropertyId.column_gap,
PropertyId.column_height,
PropertyId.column_span,
PropertyId.column_width,
PropertyId.contain,
PropertyId.container_type,
PropertyId.content,
PropertyId.content_visibility,
PropertyId.corner_bottom_left_shape,
PropertyId.corner_bottom_right_shape,
PropertyId.corner_end_end_shape,
PropertyId.corner_end_start_shape,
PropertyId.corner_start_end_shape,
PropertyId.corner_start_start_shape,
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
PropertyId.counter_increment,
PropertyId.counter_reset,
PropertyId.counter_set,
PropertyId.cursor,
PropertyId.cx,
PropertyId.cy,
PropertyId.display,
PropertyId.dominant_baseline,
PropertyId.empty_cells,
PropertyId.fill,
PropertyId.fill_opacity,
PropertyId.fill_rule,
PropertyId.filter,
PropertyId.flex_basis,
PropertyId.flex_direction,
PropertyId.flex_grow,
PropertyId.flex_shrink,
PropertyId.flex_wrap,
PropertyId.float,
PropertyId.flood_color,
PropertyId.flood_opacity,
PropertyId.font_family,
PropertyId.font_feature_settings,
PropertyId.font_kerning,
PropertyId.font_language_override,
PropertyId.font_optical_sizing,
PropertyId.font_size,
PropertyId.font_style,
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
PropertyId.font_variation_settings,
PropertyId.font_weight,
PropertyId.font_width,
PropertyId.grid_auto_columns,
PropertyId.grid_auto_flow,
PropertyId.grid_auto_rows,
PropertyId.grid_column_end,
PropertyId.grid_column_start,
PropertyId.grid_row_end,
PropertyId.grid_row_start,
PropertyId.grid_template_areas,
PropertyId.grid_template_columns,
PropertyId.grid_template_rows,
PropertyId.height,
PropertyId.image_rendering,
PropertyId.inline_size,
PropertyId.inset_block_end,
PropertyId.inset_block_start,
PropertyId.inset_inline_end,
PropertyId.inset_inline_start,
PropertyId.isolation,
PropertyId.justify_content,
PropertyId.justify_items,
PropertyId.justify_self,
PropertyId.left,
PropertyId.letter_spacing,
PropertyId.line_height,
PropertyId.list_style_image,
PropertyId.list_style_position,
PropertyId.list_style_type,
PropertyId.margin_block_end,
PropertyId.margin_block_start,
PropertyId.margin_bottom,
PropertyId.margin_inline_end,
PropertyId.margin_inline_start,
PropertyId.margin_left,
PropertyId.margin_right,
PropertyId.margin_top,
PropertyId.mask_clip,
PropertyId.mask_composite,
PropertyId.mask_image,
PropertyId.mask_mode,
PropertyId.mask_origin,
PropertyId.mask_position,
PropertyId.mask_repeat,
PropertyId.mask_size,
PropertyId.mask_type,
PropertyId.math_depth,
PropertyId.math_shift,
PropertyId.math_style,
PropertyId.max_block_size,
PropertyId.max_height,
PropertyId.max_inline_size,
PropertyId.max_width,
PropertyId.min_block_size,
PropertyId.min_height,
PropertyId.min_inline_size,
PropertyId.min_width,
PropertyId.mix_blend_mode,
PropertyId.object_fit,
PropertyId.object_position,
PropertyId.opacity,
PropertyId.order,
PropertyId.orphans,
PropertyId.outline_color,
PropertyId.outline_offset,
PropertyId.outline_style,
PropertyId.outline_width,
PropertyId.overflow_block,
PropertyId.overflow_clip_margin_block_end,
PropertyId.overflow_clip_margin_block_start,
PropertyId.overflow_clip_margin_bottom,
PropertyId.overflow_clip_margin_inline_end,
PropertyId.overflow_clip_margin_inline_start,
PropertyId.overflow_clip_margin_left,
PropertyId.overflow_clip_margin_right,
PropertyId.overflow_clip_margin_top,
PropertyId.overflow_inline,
PropertyId.overflow_wrap,
PropertyId.overflow_x,
PropertyId.overflow_y,
PropertyId.padding_block_end,
PropertyId.padding_block_start,
PropertyId.padding_bottom,
PropertyId.padding_inline_end,
PropertyId.padding_inline_start,
PropertyId.padding_left,
PropertyId.padding_right,
PropertyId.padding_top,
PropertyId.paint_order,
PropertyId.perspective,
PropertyId.perspective_origin,
PropertyId.pointer_events,
PropertyId.position,
PropertyId.position_anchor,
PropertyId.position_area,
PropertyId.position_try_fallbacks,
PropertyId.position_try_order,
PropertyId.position_visibility,
PropertyId.quotes,
PropertyId.r,
PropertyId.resize,
PropertyId.right,
PropertyId.rotate,
PropertyId.row_gap,
PropertyId.rx,
PropertyId.ry,
PropertyId.scale,
PropertyId.scroll_behavior,
PropertyId.scroll_timeline_axis,
PropertyId.scroll_timeline_name,
PropertyId.scrollbar_color,
PropertyId.scrollbar_gutter,
PropertyId.scrollbar_width,
PropertyId.shape_image_threshold,
PropertyId.shape_margin,
PropertyId.shape_outside,
PropertyId.shape_rendering,
PropertyId.stop_color,
PropertyId.stop_opacity,
PropertyId.stroke,
PropertyId.stroke_dasharray,
PropertyId.stroke_dashoffset,
PropertyId.stroke_linecap,
PropertyId.stroke_linejoin,
PropertyId.stroke_miterlimit,
PropertyId.stroke_opacity,
PropertyId.stroke_width,
PropertyId.tab_size,
PropertyId.table_layout,
PropertyId.text_align,
PropertyId.text_anchor,
PropertyId.text_decoration_color,
PropertyId.text_decoration_line,
PropertyId.text_decoration_skip_ink,
PropertyId.text_decoration_style,
PropertyId.text_decoration_thickness,
PropertyId.text_indent,
PropertyId.text_justify,
PropertyId.text_overflow,
PropertyId.text_rendering,
PropertyId.text_shadow,
PropertyId.text_transform,
PropertyId.text_underline_offset,
PropertyId.text_underline_position,
PropertyId.text_wrap_mode,
PropertyId.text_wrap_style,
PropertyId.timeline_scope,
PropertyId.top,
PropertyId.touch_action,
PropertyId.transform,
PropertyId.transform_box,
PropertyId.transform_origin,
PropertyId.transform_style,
PropertyId.transition_behavior,
PropertyId.transition_delay,
PropertyId.transition_duration,
PropertyId.transition_property,
PropertyId.transition_timing_function,
PropertyId.translate,
PropertyId.user_select,
PropertyId.vertical_align,
PropertyId.view_timeline_axis,
PropertyId.view_timeline_inset,
PropertyId.view_timeline_name,
PropertyId.view_transition_name,
PropertyId.visibility,
PropertyId.white_space_collapse,
PropertyId.white_space_trim,
PropertyId.widows,
PropertyId.width,
PropertyId.will_change,
PropertyId.word_break,
PropertyId.word_spacing,
PropertyId.writing_mode,
PropertyId.x,
PropertyId.y,
PropertyId.z_index,
])
.animation:
return static_property_ids(&longhands_for_shorthand_longhands[1], [
PropertyId.animation_duration,
PropertyId.animation_timing_function,
PropertyId.animation_delay,
PropertyId.animation_iteration_count,
PropertyId.animation_direction,
PropertyId.animation_fill_mode,
PropertyId.animation_play_state,
PropertyId.animation_name,
PropertyId.animation_timeline,
])
.background:
return static_property_ids(&longhands_for_shorthand_longhands[2], [
PropertyId.background_attachment,
PropertyId.background_clip,
PropertyId.background_color,
PropertyId.background_image,
PropertyId.background_origin,
PropertyId.background_position,
PropertyId.background_repeat,
PropertyId.background_size,
])
.background_position:
return static_property_ids(&longhands_for_shorthand_longhands[3], [
PropertyId.background_position_x,
PropertyId.background_position_y,
])
.border:
return static_property_ids(&longhands_for_shorthand_longhands[4], [
PropertyId.border_width,
PropertyId.border_style,
PropertyId.border_color,
PropertyId.border_image,
])
.border_block:
return static_property_ids(&longhands_for_shorthand_longhands[5], [
PropertyId.border_block_width,
PropertyId.border_block_style,
PropertyId.border_block_color,
])
.border_block_color:
return static_property_ids(&longhands_for_shorthand_longhands[6], [
PropertyId.border_block_start_color,
PropertyId.border_block_end_color,
])
.border_block_end:
return static_property_ids(&longhands_for_shorthand_longhands[7], [
PropertyId.border_block_end_width,
PropertyId.border_block_end_style,
PropertyId.border_block_end_color,
])
.border_block_start:
return static_property_ids(&longhands_for_shorthand_longhands[8], [
PropertyId.border_block_start_width,
PropertyId.border_block_start_style,
PropertyId.border_block_start_color,
])
.border_block_style:
return static_property_ids(&longhands_for_shorthand_longhands[9], [
PropertyId.border_block_start_style,
PropertyId.border_block_end_style,
])
.border_block_width:
return static_property_ids(&longhands_for_shorthand_longhands[10], [
PropertyId.border_block_start_width,
PropertyId.border_block_end_width,
])
.border_bottom:
return static_property_ids(&longhands_for_shorthand_longhands[11], [
PropertyId.border_bottom_width,
PropertyId.border_bottom_style,
PropertyId.border_bottom_color,
])
.border_color:
return static_property_ids(&longhands_for_shorthand_longhands[12], [
PropertyId.border_top_color,
PropertyId.border_right_color,
PropertyId.border_bottom_color,
PropertyId.border_left_color,
])
.border_image:
return static_property_ids(&longhands_for_shorthand_longhands[13], [
PropertyId.border_image_source,
PropertyId.border_image_slice,
PropertyId.border_image_width,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
])
.border_inline:
return static_property_ids(&longhands_for_shorthand_longhands[14], [
PropertyId.border_inline_width,
PropertyId.border_inline_style,
PropertyId.border_inline_color,
])
.border_inline_color:
return static_property_ids(&longhands_for_shorthand_longhands[15], [
PropertyId.border_inline_start_color,
PropertyId.border_inline_end_color,
])
.border_inline_end:
return static_property_ids(&longhands_for_shorthand_longhands[16], [
PropertyId.border_inline_end_width,
PropertyId.border_inline_end_style,
PropertyId.border_inline_end_color,
])
.border_inline_start:
return static_property_ids(&longhands_for_shorthand_longhands[17], [
PropertyId.border_inline_start_width,
PropertyId.border_inline_start_style,
PropertyId.border_inline_start_color,
])
.border_inline_style:
return static_property_ids(&longhands_for_shorthand_longhands[18], [
PropertyId.border_inline_start_style,
PropertyId.border_inline_end_style,
])
.border_inline_width:
return static_property_ids(&longhands_for_shorthand_longhands[19], [
PropertyId.border_inline_start_width,
PropertyId.border_inline_end_width,
])
.border_left:
return static_property_ids(&longhands_for_shorthand_longhands[20], [
PropertyId.border_left_width,
PropertyId.border_left_style,
PropertyId.border_left_color,
])
.border_radius:
return static_property_ids(&longhands_for_shorthand_longhands[21], [
PropertyId.border_top_left_radius,
PropertyId.border_top_right_radius,
PropertyId.border_bottom_left_radius,
PropertyId.border_bottom_right_radius,
])
.border_right:
return static_property_ids(&longhands_for_shorthand_longhands[22], [
PropertyId.border_right_width,
PropertyId.border_right_style,
PropertyId.border_right_color,
])
.border_style:
return static_property_ids(&longhands_for_shorthand_longhands[23], [
PropertyId.border_top_style,
PropertyId.border_right_style,
PropertyId.border_bottom_style,
PropertyId.border_left_style,
])
.border_top:
return static_property_ids(&longhands_for_shorthand_longhands[24], [
PropertyId.border_top_width,
PropertyId.border_top_style,
PropertyId.border_top_color,
])
.border_width:
return static_property_ids(&longhands_for_shorthand_longhands[25], [
PropertyId.border_top_width,
PropertyId.border_right_width,
PropertyId.border_bottom_width,
PropertyId.border_left_width,
])
.columns:
return static_property_ids(&longhands_for_shorthand_longhands[26], [
PropertyId.column_width,
PropertyId.column_count,
PropertyId.column_height,
])
.corner_block_end_shape:
return static_property_ids(&longhands_for_shorthand_longhands[27], [
PropertyId.corner_end_start_shape,
PropertyId.corner_end_end_shape,
])
.corner_block_start_shape:
return static_property_ids(&longhands_for_shorthand_longhands[28], [
PropertyId.corner_start_start_shape,
PropertyId.corner_start_end_shape,
])
.corner_bottom_shape:
return static_property_ids(&longhands_for_shorthand_longhands[29], [
PropertyId.corner_bottom_left_shape,
PropertyId.corner_bottom_right_shape,
])
.corner_inline_end_shape:
return static_property_ids(&longhands_for_shorthand_longhands[30], [
PropertyId.corner_start_end_shape,
PropertyId.corner_end_end_shape,
])
.corner_inline_start_shape:
return static_property_ids(&longhands_for_shorthand_longhands[31], [
PropertyId.corner_start_start_shape,
PropertyId.corner_end_start_shape,
])
.corner_left_shape:
return static_property_ids(&longhands_for_shorthand_longhands[32], [
PropertyId.corner_top_left_shape,
PropertyId.corner_bottom_left_shape,
])
.corner_right_shape:
return static_property_ids(&longhands_for_shorthand_longhands[33], [
PropertyId.corner_top_right_shape,
PropertyId.corner_bottom_right_shape,
])
.corner_shape:
return static_property_ids(&longhands_for_shorthand_longhands[34], [
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
PropertyId.corner_bottom_right_shape,
PropertyId.corner_bottom_left_shape,
])
.corner_top_shape:
return static_property_ids(&longhands_for_shorthand_longhands[35], [
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
])
.flex:
return static_property_ids(&longhands_for_shorthand_longhands[36], [
PropertyId.flex_grow,
PropertyId.flex_shrink,
PropertyId.flex_basis,
])
.flex_flow:
return static_property_ids(&longhands_for_shorthand_longhands[37], [
PropertyId.flex_direction,
PropertyId.flex_wrap,
])
.font:
return static_property_ids(&longhands_for_shorthand_longhands[38], [
PropertyId.font_family,
PropertyId.font_size,
PropertyId.font_width,
PropertyId.font_style,
PropertyId.font_variant,
PropertyId.font_weight,
PropertyId.line_height,
PropertyId.font_feature_settings,
PropertyId.font_kerning,
PropertyId.font_language_override,
PropertyId.font_optical_sizing,
PropertyId.font_variation_settings,
])
.font_variant:
return static_property_ids(&longhands_for_shorthand_longhands[39], [
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
])
.gap:
return static_property_ids(&longhands_for_shorthand_longhands[40], [
PropertyId.row_gap,
PropertyId.column_gap,
])
.grid:
return static_property_ids(&longhands_for_shorthand_longhands[41], [
PropertyId.grid_auto_flow,
PropertyId.grid_auto_rows,
PropertyId.grid_auto_columns,
PropertyId.grid_template_areas,
PropertyId.grid_template_rows,
PropertyId.grid_template_columns,
])
.grid_area:
return static_property_ids(&longhands_for_shorthand_longhands[42], [
PropertyId.grid_column_end,
PropertyId.grid_column_start,
PropertyId.grid_row_end,
PropertyId.grid_row_start,
])
.grid_column:
return static_property_ids(&longhands_for_shorthand_longhands[43], [
PropertyId.grid_column_end,
PropertyId.grid_column_start,
])
.grid_row:
return static_property_ids(&longhands_for_shorthand_longhands[44], [
PropertyId.grid_row_end,
PropertyId.grid_row_start,
])
.grid_template:
return static_property_ids(&longhands_for_shorthand_longhands[45], [
PropertyId.grid_template_areas,
PropertyId.grid_template_rows,
PropertyId.grid_template_columns,
])
.inset:
return static_property_ids(&longhands_for_shorthand_longhands[46], [
PropertyId.top,
PropertyId.right,
PropertyId.bottom,
PropertyId.left,
])
.inset_block:
return static_property_ids(&longhands_for_shorthand_longhands[47], [
PropertyId.inset_block_start,
PropertyId.inset_block_end,
])
.inset_inline:
return static_property_ids(&longhands_for_shorthand_longhands[48], [
PropertyId.inset_inline_start,
PropertyId.inset_inline_end,
])
.list_style:
return static_property_ids(&longhands_for_shorthand_longhands[49], [
PropertyId.list_style_position,
PropertyId.list_style_image,
PropertyId.list_style_type,
])
.margin:
return static_property_ids(&longhands_for_shorthand_longhands[50], [
PropertyId.margin_top,
PropertyId.margin_right,
PropertyId.margin_bottom,
PropertyId.margin_left,
])
.margin_block:
return static_property_ids(&longhands_for_shorthand_longhands[51], [
PropertyId.margin_block_start,
PropertyId.margin_block_end,
])
.margin_inline:
return static_property_ids(&longhands_for_shorthand_longhands[52], [
PropertyId.margin_inline_start,
PropertyId.margin_inline_end,
])
.mask:
return static_property_ids(&longhands_for_shorthand_longhands[53], [
PropertyId.mask_clip,
PropertyId.mask_composite,
PropertyId.mask_image,
PropertyId.mask_mode,
PropertyId.mask_origin,
PropertyId.mask_position,
PropertyId.mask_repeat,
PropertyId.mask_size,
])
.outline:
return static_property_ids(&longhands_for_shorthand_longhands[54], [
PropertyId.outline_color,
PropertyId.outline_style,
PropertyId.outline_width,
])
.overflow:
return static_property_ids(&longhands_for_shorthand_longhands[55], [
PropertyId.overflow_x,
PropertyId.overflow_y,
])
.overflow_clip_margin:
return static_property_ids(&longhands_for_shorthand_longhands[56], [
PropertyId.overflow_clip_margin_top,
PropertyId.overflow_clip_margin_right,
PropertyId.overflow_clip_margin_bottom,
PropertyId.overflow_clip_margin_left,
])
.overflow_clip_margin_block:
return static_property_ids(&longhands_for_shorthand_longhands[57], [
PropertyId.overflow_clip_margin_block_start,
PropertyId.overflow_clip_margin_block_end,
])
.overflow_clip_margin_inline:
return static_property_ids(&longhands_for_shorthand_longhands[58], [
PropertyId.overflow_clip_margin_inline_start,
PropertyId.overflow_clip_margin_inline_end,
])
.padding:
return static_property_ids(&longhands_for_shorthand_longhands[59], [
PropertyId.padding_top,
PropertyId.padding_right,
PropertyId.padding_bottom,
PropertyId.padding_left,
])
.padding_block:
return static_property_ids(&longhands_for_shorthand_longhands[60], [
PropertyId.padding_block_start,
PropertyId.padding_block_end,
])
.padding_inline:
return static_property_ids(&longhands_for_shorthand_longhands[61], [
PropertyId.padding_inline_start,
PropertyId.padding_inline_end,
])
.place_content:
return static_property_ids(&longhands_for_shorthand_longhands[62], [
PropertyId.align_content,
PropertyId.justify_content,
])
.place_items:
return static_property_ids(&longhands_for_shorthand_longhands[63], [
PropertyId.align_items,
PropertyId.justify_items,
])
.place_self:
return static_property_ids(&longhands_for_shorthand_longhands[64], [
PropertyId.align_self,
PropertyId.justify_self,
])
.scroll_timeline:
return static_property_ids(&longhands_for_shorthand_longhands[65], [
PropertyId.scroll_timeline_name,
PropertyId.scroll_timeline_axis,
])
.text_decoration:
return static_property_ids(&longhands_for_shorthand_longhands[66], [
PropertyId.text_decoration_color,
PropertyId.text_decoration_line,
PropertyId.text_decoration_style,
PropertyId.text_decoration_thickness,
])
.text_wrap:
return static_property_ids(&longhands_for_shorthand_longhands[67], [
PropertyId.text_wrap_mode,
PropertyId.text_wrap_style,
])
.transition:
return static_property_ids(&longhands_for_shorthand_longhands[68], [
PropertyId.transition_property,
PropertyId.transition_duration,
PropertyId.transition_timing_function,
PropertyId.transition_delay,
PropertyId.transition_behavior,
])
.view_timeline:
return static_property_ids(&longhands_for_shorthand_longhands[69], [
PropertyId.view_timeline_name,
PropertyId.view_timeline_axis,
PropertyId.view_timeline_inset,
])
.white_space:
return static_property_ids(&longhands_for_shorthand_longhands[70], [
PropertyId.white_space_collapse,
PropertyId.text_wrap_mode,
PropertyId.white_space_trim,
])
_: return empty_property_ids()
# The `static Vector<PropertyID> longhands` of expanded_longhands_for_shorthand, one per case.
var expanded_longhands_for_shorthand_longhands: StaticPropertyIds[71]
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::expanded_longhands_for_shorthand.
pub func expanded_longhands_for_shorthand(property_id: PropertyId) -> ak.Vector[PropertyId]:
match property_id:
.all:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[0], [
PropertyId.webkit_text_fill_color,
PropertyId.accent_color,
PropertyId.align_content,
PropertyId.align_items,
PropertyId.align_self,
PropertyId.anchor_name,
PropertyId.anchor_scope,
PropertyId.animation_composition,
PropertyId.animation_delay,
PropertyId.animation_direction,
PropertyId.animation_duration,
PropertyId.animation_fill_mode,
PropertyId.animation_iteration_count,
PropertyId.animation_name,
PropertyId.animation_play_state,
PropertyId.animation_timeline,
PropertyId.animation_timing_function,
PropertyId.appearance,
PropertyId.aspect_ratio,
PropertyId.backdrop_filter,
PropertyId.background_attachment,
PropertyId.background_blend_mode,
PropertyId.background_clip,
PropertyId.background_color,
PropertyId.background_image,
PropertyId.background_origin,
PropertyId.background_position_x,
PropertyId.background_position_y,
PropertyId.background_repeat,
PropertyId.background_size,
PropertyId.block_size,
PropertyId.border_block_end_color,
PropertyId.border_block_end_style,
PropertyId.border_block_end_width,
PropertyId.border_block_start_color,
PropertyId.border_block_start_style,
PropertyId.border_block_start_width,
PropertyId.border_bottom_color,
PropertyId.border_bottom_left_radius,
PropertyId.border_bottom_right_radius,
PropertyId.border_bottom_style,
PropertyId.border_bottom_width,
PropertyId.border_collapse,
PropertyId.border_end_end_radius,
PropertyId.border_end_start_radius,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
PropertyId.border_image_slice,
PropertyId.border_image_source,
PropertyId.border_image_width,
PropertyId.border_inline_end_color,
PropertyId.border_inline_end_style,
PropertyId.border_inline_end_width,
PropertyId.border_inline_start_color,
PropertyId.border_inline_start_style,
PropertyId.border_inline_start_width,
PropertyId.border_left_color,
PropertyId.border_left_style,
PropertyId.border_left_width,
PropertyId.border_right_color,
PropertyId.border_right_style,
PropertyId.border_right_width,
PropertyId.border_spacing,
PropertyId.border_start_end_radius,
PropertyId.border_start_start_radius,
PropertyId.border_top_color,
PropertyId.border_top_left_radius,
PropertyId.border_top_right_radius,
PropertyId.border_top_style,
PropertyId.border_top_width,
PropertyId.bottom,
PropertyId.box_shadow,
PropertyId.box_sizing,
PropertyId.caption_side,
PropertyId.caret_color,
PropertyId.clear,
PropertyId.clip,
PropertyId.clip_path,
PropertyId.clip_rule,
PropertyId.color,
PropertyId.color_interpolation,
PropertyId.color_scheme,
PropertyId.column_count,
PropertyId.column_gap,
PropertyId.column_height,
PropertyId.column_span,
PropertyId.column_width,
PropertyId.contain,
PropertyId.container_type,
PropertyId.content,
PropertyId.content_visibility,
PropertyId.corner_bottom_left_shape,
PropertyId.corner_bottom_right_shape,
PropertyId.corner_end_end_shape,
PropertyId.corner_end_start_shape,
PropertyId.corner_start_end_shape,
PropertyId.corner_start_start_shape,
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
PropertyId.counter_increment,
PropertyId.counter_reset,
PropertyId.counter_set,
PropertyId.cursor,
PropertyId.cx,
PropertyId.cy,
PropertyId.display,
PropertyId.dominant_baseline,
PropertyId.empty_cells,
PropertyId.fill,
PropertyId.fill_opacity,
PropertyId.fill_rule,
PropertyId.filter,
PropertyId.flex_basis,
PropertyId.flex_direction,
PropertyId.flex_grow,
PropertyId.flex_shrink,
PropertyId.flex_wrap,
PropertyId.float,
PropertyId.flood_color,
PropertyId.flood_opacity,
PropertyId.font_family,
PropertyId.font_feature_settings,
PropertyId.font_kerning,
PropertyId.font_language_override,
PropertyId.font_optical_sizing,
PropertyId.font_size,
PropertyId.font_style,
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
PropertyId.font_variation_settings,
PropertyId.font_weight,
PropertyId.font_width,
PropertyId.grid_auto_columns,
PropertyId.grid_auto_flow,
PropertyId.grid_auto_rows,
PropertyId.grid_column_end,
PropertyId.grid_column_start,
PropertyId.grid_row_end,
PropertyId.grid_row_start,
PropertyId.grid_template_areas,
PropertyId.grid_template_columns,
PropertyId.grid_template_rows,
PropertyId.height,
PropertyId.image_rendering,
PropertyId.inline_size,
PropertyId.inset_block_end,
PropertyId.inset_block_start,
PropertyId.inset_inline_end,
PropertyId.inset_inline_start,
PropertyId.isolation,
PropertyId.justify_content,
PropertyId.justify_items,
PropertyId.justify_self,
PropertyId.left,
PropertyId.letter_spacing,
PropertyId.line_height,
PropertyId.list_style_image,
PropertyId.list_style_position,
PropertyId.list_style_type,
PropertyId.margin_block_end,
PropertyId.margin_block_start,
PropertyId.margin_bottom,
PropertyId.margin_inline_end,
PropertyId.margin_inline_start,
PropertyId.margin_left,
PropertyId.margin_right,
PropertyId.margin_top,
PropertyId.mask_clip,
PropertyId.mask_composite,
PropertyId.mask_image,
PropertyId.mask_mode,
PropertyId.mask_origin,
PropertyId.mask_position,
PropertyId.mask_repeat,
PropertyId.mask_size,
PropertyId.mask_type,
PropertyId.math_depth,
PropertyId.math_shift,
PropertyId.math_style,
PropertyId.max_block_size,
PropertyId.max_height,
PropertyId.max_inline_size,
PropertyId.max_width,
PropertyId.min_block_size,
PropertyId.min_height,
PropertyId.min_inline_size,
PropertyId.min_width,
PropertyId.mix_blend_mode,
PropertyId.object_fit,
PropertyId.object_position,
PropertyId.opacity,
PropertyId.order,
PropertyId.orphans,
PropertyId.outline_color,
PropertyId.outline_offset,
PropertyId.outline_style,
PropertyId.outline_width,
PropertyId.overflow_block,
PropertyId.overflow_clip_margin_block_end,
PropertyId.overflow_clip_margin_block_start,
PropertyId.overflow_clip_margin_bottom,
PropertyId.overflow_clip_margin_inline_end,
PropertyId.overflow_clip_margin_inline_start,
PropertyId.overflow_clip_margin_left,
PropertyId.overflow_clip_margin_right,
PropertyId.overflow_clip_margin_top,
PropertyId.overflow_inline,
PropertyId.overflow_wrap,
PropertyId.overflow_x,
PropertyId.overflow_y,
PropertyId.padding_block_end,
PropertyId.padding_block_start,
PropertyId.padding_bottom,
PropertyId.padding_inline_end,
PropertyId.padding_inline_start,
PropertyId.padding_left,
PropertyId.padding_right,
PropertyId.padding_top,
PropertyId.paint_order,
PropertyId.perspective,
PropertyId.perspective_origin,
PropertyId.pointer_events,
PropertyId.position,
PropertyId.position_anchor,
PropertyId.position_area,
PropertyId.position_try_fallbacks,
PropertyId.position_try_order,
PropertyId.position_visibility,
PropertyId.quotes,
PropertyId.r,
PropertyId.resize,
PropertyId.right,
PropertyId.rotate,
PropertyId.row_gap,
PropertyId.rx,
PropertyId.ry,
PropertyId.scale,
PropertyId.scroll_behavior,
PropertyId.scroll_timeline_axis,
PropertyId.scroll_timeline_name,
PropertyId.scrollbar_color,
PropertyId.scrollbar_gutter,
PropertyId.scrollbar_width,
PropertyId.shape_image_threshold,
PropertyId.shape_margin,
PropertyId.shape_outside,
PropertyId.shape_rendering,
PropertyId.stop_color,
PropertyId.stop_opacity,
PropertyId.stroke,
PropertyId.stroke_dasharray,
PropertyId.stroke_dashoffset,
PropertyId.stroke_linecap,
PropertyId.stroke_linejoin,
PropertyId.stroke_miterlimit,
PropertyId.stroke_opacity,
PropertyId.stroke_width,
PropertyId.tab_size,
PropertyId.table_layout,
PropertyId.text_align,
PropertyId.text_anchor,
PropertyId.text_decoration_color,
PropertyId.text_decoration_line,
PropertyId.text_decoration_skip_ink,
PropertyId.text_decoration_style,
PropertyId.text_decoration_thickness,
PropertyId.text_indent,
PropertyId.text_justify,
PropertyId.text_overflow,
PropertyId.text_rendering,
PropertyId.text_shadow,
PropertyId.text_transform,
PropertyId.text_underline_offset,
PropertyId.text_underline_position,
PropertyId.text_wrap_mode,
PropertyId.text_wrap_style,
PropertyId.timeline_scope,
PropertyId.top,
PropertyId.touch_action,
PropertyId.transform,
PropertyId.transform_box,
PropertyId.transform_origin,
PropertyId.transform_style,
PropertyId.transition_behavior,
PropertyId.transition_delay,
PropertyId.transition_duration,
PropertyId.transition_property,
PropertyId.transition_timing_function,
PropertyId.translate,
PropertyId.user_select,
PropertyId.vertical_align,
PropertyId.view_timeline_axis,
PropertyId.view_timeline_inset,
PropertyId.view_timeline_name,
PropertyId.view_transition_name,
PropertyId.visibility,
PropertyId.white_space_collapse,
PropertyId.white_space_trim,
PropertyId.widows,
PropertyId.width,
PropertyId.will_change,
PropertyId.word_break,
PropertyId.word_spacing,
PropertyId.writing_mode,
PropertyId.x,
PropertyId.y,
PropertyId.z_index,
])
.animation:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[1], [
PropertyId.animation_duration,
PropertyId.animation_timing_function,
PropertyId.animation_delay,
PropertyId.animation_iteration_count,
PropertyId.animation_direction,
PropertyId.animation_fill_mode,
PropertyId.animation_play_state,
PropertyId.animation_name,
PropertyId.animation_timeline,
])
.background:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[2], [
PropertyId.background_attachment,
PropertyId.background_clip,
PropertyId.background_color,
PropertyId.background_image,
PropertyId.background_origin,
PropertyId.background_position_x,
PropertyId.background_position_y,
PropertyId.background_repeat,
PropertyId.background_size,
])
.background_position:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[3], [
PropertyId.background_position_x,
PropertyId.background_position_y,
])
.border:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[4], [
PropertyId.border_top_width,
PropertyId.border_right_width,
PropertyId.border_bottom_width,
PropertyId.border_left_width,
PropertyId.border_top_style,
PropertyId.border_right_style,
PropertyId.border_bottom_style,
PropertyId.border_left_style,
PropertyId.border_top_color,
PropertyId.border_right_color,
PropertyId.border_bottom_color,
PropertyId.border_left_color,
PropertyId.border_image_source,
PropertyId.border_image_slice,
PropertyId.border_image_width,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
])
.border_block:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[5], [
PropertyId.border_block_start_width,
PropertyId.border_block_end_width,
PropertyId.border_block_start_style,
PropertyId.border_block_end_style,
PropertyId.border_block_start_color,
PropertyId.border_block_end_color,
])
.border_block_color:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[6], [
PropertyId.border_block_start_color,
PropertyId.border_block_end_color,
])
.border_block_end:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[7], [
PropertyId.border_block_end_width,
PropertyId.border_block_end_style,
PropertyId.border_block_end_color,
])
.border_block_start:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[8], [
PropertyId.border_block_start_width,
PropertyId.border_block_start_style,
PropertyId.border_block_start_color,
])
.border_block_style:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[9], [
PropertyId.border_block_start_style,
PropertyId.border_block_end_style,
])
.border_block_width:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[10], [
PropertyId.border_block_start_width,
PropertyId.border_block_end_width,
])
.border_bottom:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[11], [
PropertyId.border_bottom_width,
PropertyId.border_bottom_style,
PropertyId.border_bottom_color,
])
.border_color:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[12], [
PropertyId.border_top_color,
PropertyId.border_right_color,
PropertyId.border_bottom_color,
PropertyId.border_left_color,
])
.border_image:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[13], [
PropertyId.border_image_source,
PropertyId.border_image_slice,
PropertyId.border_image_width,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
])
.border_inline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[14], [
PropertyId.border_inline_start_width,
PropertyId.border_inline_end_width,
PropertyId.border_inline_start_style,
PropertyId.border_inline_end_style,
PropertyId.border_inline_start_color,
PropertyId.border_inline_end_color,
])
.border_inline_color:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[15], [
PropertyId.border_inline_start_color,
PropertyId.border_inline_end_color,
])
.border_inline_end:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[16], [
PropertyId.border_inline_end_width,
PropertyId.border_inline_end_style,
PropertyId.border_inline_end_color,
])
.border_inline_start:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[17], [
PropertyId.border_inline_start_width,
PropertyId.border_inline_start_style,
PropertyId.border_inline_start_color,
])
.border_inline_style:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[18], [
PropertyId.border_inline_start_style,
PropertyId.border_inline_end_style,
])
.border_inline_width:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[19], [
PropertyId.border_inline_start_width,
PropertyId.border_inline_end_width,
])
.border_left:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[20], [
PropertyId.border_left_width,
PropertyId.border_left_style,
PropertyId.border_left_color,
])
.border_radius:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[21], [
PropertyId.border_top_left_radius,
PropertyId.border_top_right_radius,
PropertyId.border_bottom_left_radius,
PropertyId.border_bottom_right_radius,
])
.border_right:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[22], [
PropertyId.border_right_width,
PropertyId.border_right_style,
PropertyId.border_right_color,
])
.border_style:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[23], [
PropertyId.border_top_style,
PropertyId.border_right_style,
PropertyId.border_bottom_style,
PropertyId.border_left_style,
])
.border_top:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[24], [
PropertyId.border_top_width,
PropertyId.border_top_style,
PropertyId.border_top_color,
])
.border_width:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[25], [
PropertyId.border_top_width,
PropertyId.border_right_width,
PropertyId.border_bottom_width,
PropertyId.border_left_width,
])
.columns:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[26], [
PropertyId.column_width,
PropertyId.column_count,
PropertyId.column_height,
])
.corner_block_end_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[27], [
PropertyId.corner_end_start_shape,
PropertyId.corner_end_end_shape,
])
.corner_block_start_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[28], [
PropertyId.corner_start_start_shape,
PropertyId.corner_start_end_shape,
])
.corner_bottom_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[29], [
PropertyId.corner_bottom_left_shape,
PropertyId.corner_bottom_right_shape,
])
.corner_inline_end_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[30], [
PropertyId.corner_start_end_shape,
PropertyId.corner_end_end_shape,
])
.corner_inline_start_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[31], [
PropertyId.corner_start_start_shape,
PropertyId.corner_end_start_shape,
])
.corner_left_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[32], [
PropertyId.corner_top_left_shape,
PropertyId.corner_bottom_left_shape,
])
.corner_right_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[33], [
PropertyId.corner_top_right_shape,
PropertyId.corner_bottom_right_shape,
])
.corner_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[34], [
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
PropertyId.corner_bottom_right_shape,
PropertyId.corner_bottom_left_shape,
])
.corner_top_shape:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[35], [
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
])
.flex:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[36], [
PropertyId.flex_grow,
PropertyId.flex_shrink,
PropertyId.flex_basis,
])
.flex_flow:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[37], [
PropertyId.flex_direction,
PropertyId.flex_wrap,
])
.font:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[38], [
PropertyId.font_family,
PropertyId.font_size,
PropertyId.font_width,
PropertyId.font_style,
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
PropertyId.font_weight,
PropertyId.line_height,
PropertyId.font_feature_settings,
PropertyId.font_kerning,
PropertyId.font_language_override,
PropertyId.font_optical_sizing,
PropertyId.font_variation_settings,
])
.font_variant:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[39], [
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
])
.gap:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[40], [
PropertyId.row_gap,
PropertyId.column_gap,
])
.grid:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[41], [
PropertyId.grid_auto_flow,
PropertyId.grid_auto_rows,
PropertyId.grid_auto_columns,
PropertyId.grid_template_areas,
PropertyId.grid_template_rows,
PropertyId.grid_template_columns,
])
.grid_area:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[42], [
PropertyId.grid_column_end,
PropertyId.grid_column_start,
PropertyId.grid_row_end,
PropertyId.grid_row_start,
])
.grid_column:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[43], [
PropertyId.grid_column_end,
PropertyId.grid_column_start,
])
.grid_row:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[44], [
PropertyId.grid_row_end,
PropertyId.grid_row_start,
])
.grid_template:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[45], [
PropertyId.grid_template_areas,
PropertyId.grid_template_rows,
PropertyId.grid_template_columns,
])
.inset:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[46], [
PropertyId.top,
PropertyId.right,
PropertyId.bottom,
PropertyId.left,
])
.inset_block:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[47], [
PropertyId.inset_block_start,
PropertyId.inset_block_end,
])
.inset_inline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[48], [
PropertyId.inset_inline_start,
PropertyId.inset_inline_end,
])
.list_style:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[49], [
PropertyId.list_style_position,
PropertyId.list_style_image,
PropertyId.list_style_type,
])
.margin:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[50], [
PropertyId.margin_top,
PropertyId.margin_right,
PropertyId.margin_bottom,
PropertyId.margin_left,
])
.margin_block:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[51], [
PropertyId.margin_block_start,
PropertyId.margin_block_end,
])
.margin_inline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[52], [
PropertyId.margin_inline_start,
PropertyId.margin_inline_end,
])
.mask:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[53], [
PropertyId.mask_clip,
PropertyId.mask_composite,
PropertyId.mask_image,
PropertyId.mask_mode,
PropertyId.mask_origin,
PropertyId.mask_position,
PropertyId.mask_repeat,
PropertyId.mask_size,
])
.outline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[54], [
PropertyId.outline_color,
PropertyId.outline_style,
PropertyId.outline_width,
])
.overflow:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[55], [
PropertyId.overflow_x,
PropertyId.overflow_y,
])
.overflow_clip_margin:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[56], [
PropertyId.overflow_clip_margin_top,
PropertyId.overflow_clip_margin_right,
PropertyId.overflow_clip_margin_bottom,
PropertyId.overflow_clip_margin_left,
])
.overflow_clip_margin_block:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[57], [
PropertyId.overflow_clip_margin_block_start,
PropertyId.overflow_clip_margin_block_end,
])
.overflow_clip_margin_inline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[58], [
PropertyId.overflow_clip_margin_inline_start,
PropertyId.overflow_clip_margin_inline_end,
])
.padding:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[59], [
PropertyId.padding_top,
PropertyId.padding_right,
PropertyId.padding_bottom,
PropertyId.padding_left,
])
.padding_block:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[60], [
PropertyId.padding_block_start,
PropertyId.padding_block_end,
])
.padding_inline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[61], [
PropertyId.padding_inline_start,
PropertyId.padding_inline_end,
])
.place_content:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[62], [
PropertyId.align_content,
PropertyId.justify_content,
])
.place_items:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[63], [
PropertyId.align_items,
PropertyId.justify_items,
])
.place_self:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[64], [
PropertyId.align_self,
PropertyId.justify_self,
])
.scroll_timeline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[65], [
PropertyId.scroll_timeline_name,
PropertyId.scroll_timeline_axis,
])
.text_decoration:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[66], [
PropertyId.text_decoration_color,
PropertyId.text_decoration_line,
PropertyId.text_decoration_style,
PropertyId.text_decoration_thickness,
])
.text_wrap:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[67], [
PropertyId.text_wrap_mode,
PropertyId.text_wrap_style,
])
.transition:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[68], [
PropertyId.transition_property,
PropertyId.transition_duration,
PropertyId.transition_timing_function,
PropertyId.transition_delay,
PropertyId.transition_behavior,
])
.view_timeline:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[69], [
PropertyId.view_timeline_name,
PropertyId.view_timeline_axis,
PropertyId.view_timeline_inset,
])
.white_space:
return static_property_ids(&expanded_longhands_for_shorthand_longhands[70], [
PropertyId.white_space_collapse,
PropertyId.text_wrap_mode,
PropertyId.white_space_trim,
])
_: return empty_property_ids()
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_maps_to_shorthand.
pub func property_maps_to_shorthand(property_id: PropertyId) -> bool:
match property_id:
.webkit_text_fill_color: return true
.accent_color: return true
.align_content: return true
.align_items: return true
.align_self: return true
.anchor_name: return true
.anchor_scope: return true
.animation_composition: return true
.animation_delay: return true
.animation_direction: return true
.animation_duration: return true
.animation_fill_mode: return true
.animation_iteration_count: return true
.animation_name: return true
.animation_play_state: return true
.animation_timeline: return true
.animation_timing_function: return true
.appearance: return true
.aspect_ratio: return true
.backdrop_filter: return true
.background_attachment: return true
.background_blend_mode: return true
.background_clip: return true
.background_color: return true
.background_image: return true
.background_origin: return true
.background_position_x: return true
.background_position_y: return true
.background_repeat: return true
.background_size: return true
.block_size: return true
.border_block_end_color: return true
.border_block_end_style: return true
.border_block_end_width: return true
.border_block_start_color: return true
.border_block_start_style: return true
.border_block_start_width: return true
.border_bottom_color: return true
.border_bottom_left_radius: return true
.border_bottom_right_radius: return true
.border_bottom_style: return true
.border_bottom_width: return true
.border_collapse: return true
.border_end_end_radius: return true
.border_end_start_radius: return true
.border_image_outset: return true
.border_image_repeat: return true
.border_image_slice: return true
.border_image_source: return true
.border_image_width: return true
.border_inline_end_color: return true
.border_inline_end_style: return true
.border_inline_end_width: return true
.border_inline_start_color: return true
.border_inline_start_style: return true
.border_inline_start_width: return true
.border_left_color: return true
.border_left_style: return true
.border_left_width: return true
.border_right_color: return true
.border_right_style: return true
.border_right_width: return true
.border_spacing: return true
.border_start_end_radius: return true
.border_start_start_radius: return true
.border_top_color: return true
.border_top_left_radius: return true
.border_top_right_radius: return true
.border_top_style: return true
.border_top_width: return true
.bottom: return true
.box_shadow: return true
.box_sizing: return true
.caption_side: return true
.caret_color: return true
.clear: return true
.clip: return true
.clip_path: return true
.clip_rule: return true
.color: return true
.color_interpolation: return true
.color_scheme: return true
.column_count: return true
.column_gap: return true
.column_height: return true
.column_span: return true
.column_width: return true
.contain: return true
.container_type: return true
.content: return true
.content_visibility: return true
.corner_bottom_left_shape: return true
.corner_bottom_right_shape: return true
.corner_end_end_shape: return true
.corner_end_start_shape: return true
.corner_start_end_shape: return true
.corner_start_start_shape: return true
.corner_top_left_shape: return true
.corner_top_right_shape: return true
.counter_increment: return true
.counter_reset: return true
.counter_set: return true
.cursor: return true
.cx: return true
.cy: return true
.display: return true
.dominant_baseline: return true
.empty_cells: return true
.fill: return true
.fill_opacity: return true
.fill_rule: return true
.filter: return true
.flex_basis: return true
.flex_direction: return true
.flex_grow: return true
.flex_shrink: return true
.flex_wrap: return true
.float: return true
.flood_color: return true
.flood_opacity: return true
.font_family: return true
.font_feature_settings: return true
.font_kerning: return true
.font_language_override: return true
.font_optical_sizing: return true
.font_size: return true
.font_style: return true
.font_variant_alternates: return true
.font_variant_caps: return true
.font_variant_east_asian: return true
.font_variant_emoji: return true
.font_variant_ligatures: return true
.font_variant_numeric: return true
.font_variant_position: return true
.font_variation_settings: return true
.font_weight: return true
.font_width: return true
.grid_auto_columns: return true
.grid_auto_flow: return true
.grid_auto_rows: return true
.grid_column_end: return true
.grid_column_start: return true
.grid_row_end: return true
.grid_row_start: return true
.grid_template_areas: return true
.grid_template_columns: return true
.grid_template_rows: return true
.height: return true
.image_rendering: return true
.inline_size: return true
.inset_block_end: return true
.inset_block_start: return true
.inset_inline_end: return true
.inset_inline_start: return true
.isolation: return true
.justify_content: return true
.justify_items: return true
.justify_self: return true
.left: return true
.letter_spacing: return true
.line_height: return true
.list_style_image: return true
.list_style_position: return true
.list_style_type: return true
.margin_block_end: return true
.margin_block_start: return true
.margin_bottom: return true
.margin_inline_end: return true
.margin_inline_start: return true
.margin_left: return true
.margin_right: return true
.margin_top: return true
.mask_clip: return true
.mask_composite: return true
.mask_image: return true
.mask_mode: return true
.mask_origin: return true
.mask_position: return true
.mask_repeat: return true
.mask_size: return true
.mask_type: return true
.math_depth: return true
.math_shift: return true
.math_style: return true
.max_block_size: return true
.max_height: return true
.max_inline_size: return true
.max_width: return true
.min_block_size: return true
.min_height: return true
.min_inline_size: return true
.min_width: return true
.mix_blend_mode: return true
.object_fit: return true
.object_position: return true
.opacity: return true
.order: return true
.orphans: return true
.outline_color: return true
.outline_offset: return true
.outline_style: return true
.outline_width: return true
.overflow_block: return true
.overflow_clip_margin_block_end: return true
.overflow_clip_margin_block_start: return true
.overflow_clip_margin_bottom: return true
.overflow_clip_margin_inline_end: return true
.overflow_clip_margin_inline_start: return true
.overflow_clip_margin_left: return true
.overflow_clip_margin_right: return true
.overflow_clip_margin_top: return true
.overflow_inline: return true
.overflow_wrap: return true
.overflow_x: return true
.overflow_y: return true
.padding_block_end: return true
.padding_block_start: return true
.padding_bottom: return true
.padding_inline_end: return true
.padding_inline_start: return true
.padding_left: return true
.padding_right: return true
.padding_top: return true
.paint_order: return true
.perspective: return true
.perspective_origin: return true
.pointer_events: return true
.position: return true
.position_anchor: return true
.position_area: return true
.position_try_fallbacks: return true
.position_try_order: return true
.position_visibility: return true
.quotes: return true
.r: return true
.resize: return true
.right: return true
.rotate: return true
.row_gap: return true
.rx: return true
.ry: return true
.scale: return true
.scroll_behavior: return true
.scroll_timeline_axis: return true
.scroll_timeline_name: return true
.scrollbar_color: return true
.scrollbar_gutter: return true
.scrollbar_width: return true
.shape_image_threshold: return true
.shape_margin: return true
.shape_outside: return true
.shape_rendering: return true
.stop_color: return true
.stop_opacity: return true
.stroke: return true
.stroke_dasharray: return true
.stroke_dashoffset: return true
.stroke_linecap: return true
.stroke_linejoin: return true
.stroke_miterlimit: return true
.stroke_opacity: return true
.stroke_width: return true
.tab_size: return true
.table_layout: return true
.text_align: return true
.text_anchor: return true
.text_decoration_color: return true
.text_decoration_line: return true
.text_decoration_skip_ink: return true
.text_decoration_style: return true
.text_decoration_thickness: return true
.text_indent: return true
.text_justify: return true
.text_overflow: return true
.text_rendering: return true
.text_shadow: return true
.text_transform: return true
.text_underline_offset: return true
.text_underline_position: return true
.text_wrap_mode: return true
.text_wrap_style: return true
.timeline_scope: return true
.top: return true
.touch_action: return true
.transform: return true
.transform_box: return true
.transform_origin: return true
.transform_style: return true
.transition_behavior: return true
.transition_delay: return true
.transition_duration: return true
.transition_property: return true
.transition_timing_function: return true
.translate: return true
.user_select: return true
.vertical_align: return true
.view_timeline_axis: return true
.view_timeline_inset: return true
.view_timeline_name: return true
.view_transition_name: return true
.visibility: return true
.white_space_collapse: return true
.white_space_trim: return true
.widows: return true
.width: return true
.will_change: return true
.word_break: return true
.word_spacing: return true
.writing_mode: return true
.x: return true
.y: return true
.z_index: return true
.background_position: return true
.border_width: return true
.border_style: return true
.border_color: return true
.border_image: return true
.border_block_width: return true
.border_block_style: return true
.border_block_color: return true
.border_inline_width: return true
.border_inline_style: return true
.border_inline_color: return true
.font_variant: return true
_: return false
# The `static Vector<PropertyID> shorthands` of shorthands_for_longhand, one per case.
var shorthands_for_longhand_shorthands: StaticPropertyIds[324]
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::shorthands_for_longhand.
pub func shorthands_for_longhand(property_id: PropertyId) -> ak.Vector[PropertyId]:
match property_id:
.webkit_text_fill_color:
return static_property_ids(&shorthands_for_longhand_shorthands[0], [
PropertyId.all,
])
.accent_color:
return static_property_ids(&shorthands_for_longhand_shorthands[1], [
PropertyId.all,
])
.align_content:
return static_property_ids(&shorthands_for_longhand_shorthands[2], [
PropertyId.all,
PropertyId.place_content,
])
.align_items:
return static_property_ids(&shorthands_for_longhand_shorthands[3], [
PropertyId.all,
PropertyId.place_items,
])
.align_self:
return static_property_ids(&shorthands_for_longhand_shorthands[4], [
PropertyId.all,
PropertyId.place_self,
])
.anchor_name:
return static_property_ids(&shorthands_for_longhand_shorthands[5], [
PropertyId.all,
])
.anchor_scope:
return static_property_ids(&shorthands_for_longhand_shorthands[6], [
PropertyId.all,
])
.animation_composition:
return static_property_ids(&shorthands_for_longhand_shorthands[7], [
PropertyId.all,
])
.animation_delay:
return static_property_ids(&shorthands_for_longhand_shorthands[8], [
PropertyId.all,
PropertyId.animation,
])
.animation_direction:
return static_property_ids(&shorthands_for_longhand_shorthands[9], [
PropertyId.all,
PropertyId.animation,
])
.animation_duration:
return static_property_ids(&shorthands_for_longhand_shorthands[10], [
PropertyId.all,
PropertyId.animation,
])
.animation_fill_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[11], [
PropertyId.all,
PropertyId.animation,
])
.animation_iteration_count:
return static_property_ids(&shorthands_for_longhand_shorthands[12], [
PropertyId.all,
PropertyId.animation,
])
.animation_name:
return static_property_ids(&shorthands_for_longhand_shorthands[13], [
PropertyId.all,
PropertyId.animation,
])
.animation_play_state:
return static_property_ids(&shorthands_for_longhand_shorthands[14], [
PropertyId.all,
PropertyId.animation,
])
.animation_timeline:
return static_property_ids(&shorthands_for_longhand_shorthands[15], [
PropertyId.all,
PropertyId.animation,
])
.animation_timing_function:
return static_property_ids(&shorthands_for_longhand_shorthands[16], [
PropertyId.all,
PropertyId.animation,
])
.appearance:
return static_property_ids(&shorthands_for_longhand_shorthands[17], [
PropertyId.all,
])
.aspect_ratio:
return static_property_ids(&shorthands_for_longhand_shorthands[18], [
PropertyId.all,
])
.backdrop_filter:
return static_property_ids(&shorthands_for_longhand_shorthands[19], [
PropertyId.all,
])
.background_attachment:
return static_property_ids(&shorthands_for_longhand_shorthands[20], [
PropertyId.all,
PropertyId.background,
])
.background_blend_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[21], [
PropertyId.all,
])
.background_clip:
return static_property_ids(&shorthands_for_longhand_shorthands[22], [
PropertyId.all,
PropertyId.background,
])
.background_color:
return static_property_ids(&shorthands_for_longhand_shorthands[23], [
PropertyId.all,
PropertyId.background,
])
.background_image:
return static_property_ids(&shorthands_for_longhand_shorthands[24], [
PropertyId.all,
PropertyId.background,
])
.background_origin:
return static_property_ids(&shorthands_for_longhand_shorthands[25], [
PropertyId.all,
PropertyId.background,
])
.background_position_x:
return static_property_ids(&shorthands_for_longhand_shorthands[26], [
PropertyId.all,
PropertyId.background,
PropertyId.background_position,
])
.background_position_y:
return static_property_ids(&shorthands_for_longhand_shorthands[27], [
PropertyId.all,
PropertyId.background,
PropertyId.background_position,
])
.background_repeat:
return static_property_ids(&shorthands_for_longhand_shorthands[28], [
PropertyId.all,
PropertyId.background,
])
.background_size:
return static_property_ids(&shorthands_for_longhand_shorthands[29], [
PropertyId.all,
PropertyId.background,
])
.block_size:
return static_property_ids(&shorthands_for_longhand_shorthands[30], [
PropertyId.all,
])
.border_block_end_color:
return static_property_ids(&shorthands_for_longhand_shorthands[31], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_end,
PropertyId.border_block_color,
])
.border_block_end_style:
return static_property_ids(&shorthands_for_longhand_shorthands[32], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_end,
PropertyId.border_block_style,
])
.border_block_end_width:
return static_property_ids(&shorthands_for_longhand_shorthands[33], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_end,
PropertyId.border_block_width,
])
.border_block_start_color:
return static_property_ids(&shorthands_for_longhand_shorthands[34], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_start,
PropertyId.border_block_color,
])
.border_block_start_style:
return static_property_ids(&shorthands_for_longhand_shorthands[35], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_start,
PropertyId.border_block_style,
])
.border_block_start_width:
return static_property_ids(&shorthands_for_longhand_shorthands[36], [
PropertyId.all,
PropertyId.border_block,
PropertyId.border_block_start,
PropertyId.border_block_width,
])
.border_bottom_color:
return static_property_ids(&shorthands_for_longhand_shorthands[37], [
PropertyId.all,
PropertyId.border,
PropertyId.border_color,
PropertyId.border_bottom,
])
.border_bottom_left_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[38], [
PropertyId.all,
PropertyId.border_radius,
])
.border_bottom_right_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[39], [
PropertyId.all,
PropertyId.border_radius,
])
.border_bottom_style:
return static_property_ids(&shorthands_for_longhand_shorthands[40], [
PropertyId.all,
PropertyId.border,
PropertyId.border_style,
PropertyId.border_bottom,
])
.border_bottom_width:
return static_property_ids(&shorthands_for_longhand_shorthands[41], [
PropertyId.all,
PropertyId.border,
PropertyId.border_width,
PropertyId.border_bottom,
])
.border_collapse:
return static_property_ids(&shorthands_for_longhand_shorthands[42], [
PropertyId.all,
])
.border_end_end_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[43], [
PropertyId.all,
])
.border_end_start_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[44], [
PropertyId.all,
])
.border_image_outset:
return static_property_ids(&shorthands_for_longhand_shorthands[45], [
PropertyId.all,
PropertyId.border,
PropertyId.border_image,
])
.border_image_repeat:
return static_property_ids(&shorthands_for_longhand_shorthands[46], [
PropertyId.all,
PropertyId.border,
PropertyId.border_image,
])
.border_image_slice:
return static_property_ids(&shorthands_for_longhand_shorthands[47], [
PropertyId.all,
PropertyId.border,
PropertyId.border_image,
])
.border_image_source:
return static_property_ids(&shorthands_for_longhand_shorthands[48], [
PropertyId.all,
PropertyId.border,
PropertyId.border_image,
])
.border_image_width:
return static_property_ids(&shorthands_for_longhand_shorthands[49], [
PropertyId.all,
PropertyId.border,
PropertyId.border_image,
])
.border_inline_end_color:
return static_property_ids(&shorthands_for_longhand_shorthands[50], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_end,
PropertyId.border_inline_color,
])
.border_inline_end_style:
return static_property_ids(&shorthands_for_longhand_shorthands[51], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_end,
PropertyId.border_inline_style,
])
.border_inline_end_width:
return static_property_ids(&shorthands_for_longhand_shorthands[52], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_end,
PropertyId.border_inline_width,
])
.border_inline_start_color:
return static_property_ids(&shorthands_for_longhand_shorthands[53], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_start,
PropertyId.border_inline_color,
])
.border_inline_start_style:
return static_property_ids(&shorthands_for_longhand_shorthands[54], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_start,
PropertyId.border_inline_style,
])
.border_inline_start_width:
return static_property_ids(&shorthands_for_longhand_shorthands[55], [
PropertyId.all,
PropertyId.border_inline,
PropertyId.border_inline_start,
PropertyId.border_inline_width,
])
.border_left_color:
return static_property_ids(&shorthands_for_longhand_shorthands[56], [
PropertyId.all,
PropertyId.border,
PropertyId.border_color,
PropertyId.border_left,
])
.border_left_style:
return static_property_ids(&shorthands_for_longhand_shorthands[57], [
PropertyId.all,
PropertyId.border,
PropertyId.border_style,
PropertyId.border_left,
])
.border_left_width:
return static_property_ids(&shorthands_for_longhand_shorthands[58], [
PropertyId.all,
PropertyId.border,
PropertyId.border_width,
PropertyId.border_left,
])
.border_right_color:
return static_property_ids(&shorthands_for_longhand_shorthands[59], [
PropertyId.all,
PropertyId.border,
PropertyId.border_color,
PropertyId.border_right,
])
.border_right_style:
return static_property_ids(&shorthands_for_longhand_shorthands[60], [
PropertyId.all,
PropertyId.border,
PropertyId.border_style,
PropertyId.border_right,
])
.border_right_width:
return static_property_ids(&shorthands_for_longhand_shorthands[61], [
PropertyId.all,
PropertyId.border,
PropertyId.border_width,
PropertyId.border_right,
])
.border_spacing:
return static_property_ids(&shorthands_for_longhand_shorthands[62], [
PropertyId.all,
])
.border_start_end_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[63], [
PropertyId.all,
])
.border_start_start_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[64], [
PropertyId.all,
])
.border_top_color:
return static_property_ids(&shorthands_for_longhand_shorthands[65], [
PropertyId.all,
PropertyId.border,
PropertyId.border_color,
PropertyId.border_top,
])
.border_top_left_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[66], [
PropertyId.all,
PropertyId.border_radius,
])
.border_top_right_radius:
return static_property_ids(&shorthands_for_longhand_shorthands[67], [
PropertyId.all,
PropertyId.border_radius,
])
.border_top_style:
return static_property_ids(&shorthands_for_longhand_shorthands[68], [
PropertyId.all,
PropertyId.border,
PropertyId.border_style,
PropertyId.border_top,
])
.border_top_width:
return static_property_ids(&shorthands_for_longhand_shorthands[69], [
PropertyId.all,
PropertyId.border,
PropertyId.border_width,
PropertyId.border_top,
])
.bottom:
return static_property_ids(&shorthands_for_longhand_shorthands[70], [
PropertyId.all,
PropertyId.inset,
])
.box_shadow:
return static_property_ids(&shorthands_for_longhand_shorthands[71], [
PropertyId.all,
])
.box_sizing:
return static_property_ids(&shorthands_for_longhand_shorthands[72], [
PropertyId.all,
])
.caption_side:
return static_property_ids(&shorthands_for_longhand_shorthands[73], [
PropertyId.all,
])
.caret_color:
return static_property_ids(&shorthands_for_longhand_shorthands[74], [
PropertyId.all,
])
.clear:
return static_property_ids(&shorthands_for_longhand_shorthands[75], [
PropertyId.all,
])
.clip:
return static_property_ids(&shorthands_for_longhand_shorthands[76], [
PropertyId.all,
])
.clip_path:
return static_property_ids(&shorthands_for_longhand_shorthands[77], [
PropertyId.all,
])
.clip_rule:
return static_property_ids(&shorthands_for_longhand_shorthands[78], [
PropertyId.all,
])
.color:
return static_property_ids(&shorthands_for_longhand_shorthands[79], [
PropertyId.all,
])
.color_interpolation:
return static_property_ids(&shorthands_for_longhand_shorthands[80], [
PropertyId.all,
])
.color_scheme:
return static_property_ids(&shorthands_for_longhand_shorthands[81], [
PropertyId.all,
])
.column_count:
return static_property_ids(&shorthands_for_longhand_shorthands[82], [
PropertyId.all,
PropertyId.columns,
])
.column_gap:
return static_property_ids(&shorthands_for_longhand_shorthands[83], [
PropertyId.all,
PropertyId.gap,
])
.column_height:
return static_property_ids(&shorthands_for_longhand_shorthands[84], [
PropertyId.all,
PropertyId.columns,
])
.column_span:
return static_property_ids(&shorthands_for_longhand_shorthands[85], [
PropertyId.all,
])
.column_width:
return static_property_ids(&shorthands_for_longhand_shorthands[86], [
PropertyId.all,
PropertyId.columns,
])
.contain:
return static_property_ids(&shorthands_for_longhand_shorthands[87], [
PropertyId.all,
])
.container_type:
return static_property_ids(&shorthands_for_longhand_shorthands[88], [
PropertyId.all,
])
.content:
return static_property_ids(&shorthands_for_longhand_shorthands[89], [
PropertyId.all,
])
.content_visibility:
return static_property_ids(&shorthands_for_longhand_shorthands[90], [
PropertyId.all,
])
.corner_bottom_left_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[91], [
PropertyId.all,
PropertyId.corner_shape,
PropertyId.corner_bottom_shape,
PropertyId.corner_left_shape,
])
.corner_bottom_right_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[92], [
PropertyId.all,
PropertyId.corner_shape,
PropertyId.corner_bottom_shape,
PropertyId.corner_right_shape,
])
.corner_end_end_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[93], [
PropertyId.all,
PropertyId.corner_block_end_shape,
PropertyId.corner_inline_end_shape,
])
.corner_end_start_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[94], [
PropertyId.all,
PropertyId.corner_block_end_shape,
PropertyId.corner_inline_start_shape,
])
.corner_start_end_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[95], [
PropertyId.all,
PropertyId.corner_block_start_shape,
PropertyId.corner_inline_end_shape,
])
.corner_start_start_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[96], [
PropertyId.all,
PropertyId.corner_block_start_shape,
PropertyId.corner_inline_start_shape,
])
.corner_top_left_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[97], [
PropertyId.all,
PropertyId.corner_shape,
PropertyId.corner_left_shape,
PropertyId.corner_top_shape,
])
.corner_top_right_shape:
return static_property_ids(&shorthands_for_longhand_shorthands[98], [
PropertyId.all,
PropertyId.corner_shape,
PropertyId.corner_right_shape,
PropertyId.corner_top_shape,
])
.counter_increment:
return static_property_ids(&shorthands_for_longhand_shorthands[99], [
PropertyId.all,
])
.counter_reset:
return static_property_ids(&shorthands_for_longhand_shorthands[100], [
PropertyId.all,
])
.counter_set:
return static_property_ids(&shorthands_for_longhand_shorthands[101], [
PropertyId.all,
])
.cursor:
return static_property_ids(&shorthands_for_longhand_shorthands[102], [
PropertyId.all,
])
.cx:
return static_property_ids(&shorthands_for_longhand_shorthands[103], [
PropertyId.all,
])
.cy:
return static_property_ids(&shorthands_for_longhand_shorthands[104], [
PropertyId.all,
])
.display:
return static_property_ids(&shorthands_for_longhand_shorthands[105], [
PropertyId.all,
])
.dominant_baseline:
return static_property_ids(&shorthands_for_longhand_shorthands[106], [
PropertyId.all,
])
.empty_cells:
return static_property_ids(&shorthands_for_longhand_shorthands[107], [
PropertyId.all,
])
.fill:
return static_property_ids(&shorthands_for_longhand_shorthands[108], [
PropertyId.all,
])
.fill_opacity:
return static_property_ids(&shorthands_for_longhand_shorthands[109], [
PropertyId.all,
])
.fill_rule:
return static_property_ids(&shorthands_for_longhand_shorthands[110], [
PropertyId.all,
])
.filter:
return static_property_ids(&shorthands_for_longhand_shorthands[111], [
PropertyId.all,
])
.flex_basis:
return static_property_ids(&shorthands_for_longhand_shorthands[112], [
PropertyId.all,
PropertyId.flex,
])
.flex_direction:
return static_property_ids(&shorthands_for_longhand_shorthands[113], [
PropertyId.all,
PropertyId.flex_flow,
])
.flex_grow:
return static_property_ids(&shorthands_for_longhand_shorthands[114], [
PropertyId.all,
PropertyId.flex,
])
.flex_shrink:
return static_property_ids(&shorthands_for_longhand_shorthands[115], [
PropertyId.all,
PropertyId.flex,
])
.flex_wrap:
return static_property_ids(&shorthands_for_longhand_shorthands[116], [
PropertyId.all,
PropertyId.flex_flow,
])
.float:
return static_property_ids(&shorthands_for_longhand_shorthands[117], [
PropertyId.all,
])
.flood_color:
return static_property_ids(&shorthands_for_longhand_shorthands[118], [
PropertyId.all,
])
.flood_opacity:
return static_property_ids(&shorthands_for_longhand_shorthands[119], [
PropertyId.all,
])
.font_family:
return static_property_ids(&shorthands_for_longhand_shorthands[120], [
PropertyId.all,
PropertyId.font,
])
.font_feature_settings:
return static_property_ids(&shorthands_for_longhand_shorthands[121], [
PropertyId.all,
PropertyId.font,
])
.font_kerning:
return static_property_ids(&shorthands_for_longhand_shorthands[122], [
PropertyId.all,
PropertyId.font,
])
.font_language_override:
return static_property_ids(&shorthands_for_longhand_shorthands[123], [
PropertyId.all,
PropertyId.font,
])
.font_optical_sizing:
return static_property_ids(&shorthands_for_longhand_shorthands[124], [
PropertyId.all,
PropertyId.font,
])
.font_size:
return static_property_ids(&shorthands_for_longhand_shorthands[125], [
PropertyId.all,
PropertyId.font,
])
.font_style:
return static_property_ids(&shorthands_for_longhand_shorthands[126], [
PropertyId.all,
PropertyId.font,
])
.font_variant_alternates:
return static_property_ids(&shorthands_for_longhand_shorthands[127], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_caps:
return static_property_ids(&shorthands_for_longhand_shorthands[128], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_east_asian:
return static_property_ids(&shorthands_for_longhand_shorthands[129], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_emoji:
return static_property_ids(&shorthands_for_longhand_shorthands[130], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_ligatures:
return static_property_ids(&shorthands_for_longhand_shorthands[131], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_numeric:
return static_property_ids(&shorthands_for_longhand_shorthands[132], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variant_position:
return static_property_ids(&shorthands_for_longhand_shorthands[133], [
PropertyId.all,
PropertyId.font,
PropertyId.font_variant,
])
.font_variation_settings:
return static_property_ids(&shorthands_for_longhand_shorthands[134], [
PropertyId.all,
PropertyId.font,
])
.font_weight:
return static_property_ids(&shorthands_for_longhand_shorthands[135], [
PropertyId.all,
PropertyId.font,
])
.font_width:
return static_property_ids(&shorthands_for_longhand_shorthands[136], [
PropertyId.all,
PropertyId.font,
])
.grid_auto_columns:
return static_property_ids(&shorthands_for_longhand_shorthands[137], [
PropertyId.all,
PropertyId.grid,
])
.grid_auto_flow:
return static_property_ids(&shorthands_for_longhand_shorthands[138], [
PropertyId.all,
PropertyId.grid,
])
.grid_auto_rows:
return static_property_ids(&shorthands_for_longhand_shorthands[139], [
PropertyId.all,
PropertyId.grid,
])
.grid_column_end:
return static_property_ids(&shorthands_for_longhand_shorthands[140], [
PropertyId.all,
PropertyId.grid_area,
PropertyId.grid_column,
])
.grid_column_start:
return static_property_ids(&shorthands_for_longhand_shorthands[141], [
PropertyId.all,
PropertyId.grid_area,
PropertyId.grid_column,
])
.grid_row_end:
return static_property_ids(&shorthands_for_longhand_shorthands[142], [
PropertyId.all,
PropertyId.grid_area,
PropertyId.grid_row,
])
.grid_row_start:
return static_property_ids(&shorthands_for_longhand_shorthands[143], [
PropertyId.all,
PropertyId.grid_area,
PropertyId.grid_row,
])
.grid_template_areas:
return static_property_ids(&shorthands_for_longhand_shorthands[144], [
PropertyId.all,
PropertyId.grid,
PropertyId.grid_template,
])
.grid_template_columns:
return static_property_ids(&shorthands_for_longhand_shorthands[145], [
PropertyId.all,
PropertyId.grid,
PropertyId.grid_template,
])
.grid_template_rows:
return static_property_ids(&shorthands_for_longhand_shorthands[146], [
PropertyId.all,
PropertyId.grid,
PropertyId.grid_template,
])
.height:
return static_property_ids(&shorthands_for_longhand_shorthands[147], [
PropertyId.all,
])
.image_rendering:
return static_property_ids(&shorthands_for_longhand_shorthands[148], [
PropertyId.all,
])
.inline_size:
return static_property_ids(&shorthands_for_longhand_shorthands[149], [
PropertyId.all,
])
.inset_block_end:
return static_property_ids(&shorthands_for_longhand_shorthands[150], [
PropertyId.all,
PropertyId.inset_block,
])
.inset_block_start:
return static_property_ids(&shorthands_for_longhand_shorthands[151], [
PropertyId.all,
PropertyId.inset_block,
])
.inset_inline_end:
return static_property_ids(&shorthands_for_longhand_shorthands[152], [
PropertyId.all,
PropertyId.inset_inline,
])
.inset_inline_start:
return static_property_ids(&shorthands_for_longhand_shorthands[153], [
PropertyId.all,
PropertyId.inset_inline,
])
.isolation:
return static_property_ids(&shorthands_for_longhand_shorthands[154], [
PropertyId.all,
])
.justify_content:
return static_property_ids(&shorthands_for_longhand_shorthands[155], [
PropertyId.all,
PropertyId.place_content,
])
.justify_items:
return static_property_ids(&shorthands_for_longhand_shorthands[156], [
PropertyId.all,
PropertyId.place_items,
])
.justify_self:
return static_property_ids(&shorthands_for_longhand_shorthands[157], [
PropertyId.all,
PropertyId.place_self,
])
.left:
return static_property_ids(&shorthands_for_longhand_shorthands[158], [
PropertyId.all,
PropertyId.inset,
])
.letter_spacing:
return static_property_ids(&shorthands_for_longhand_shorthands[159], [
PropertyId.all,
])
.line_height:
return static_property_ids(&shorthands_for_longhand_shorthands[160], [
PropertyId.all,
PropertyId.font,
])
.list_style_image:
return static_property_ids(&shorthands_for_longhand_shorthands[161], [
PropertyId.all,
PropertyId.list_style,
])
.list_style_position:
return static_property_ids(&shorthands_for_longhand_shorthands[162], [
PropertyId.all,
PropertyId.list_style,
])
.list_style_type:
return static_property_ids(&shorthands_for_longhand_shorthands[163], [
PropertyId.all,
PropertyId.list_style,
])
.margin_block_end:
return static_property_ids(&shorthands_for_longhand_shorthands[164], [
PropertyId.all,
PropertyId.margin_block,
])
.margin_block_start:
return static_property_ids(&shorthands_for_longhand_shorthands[165], [
PropertyId.all,
PropertyId.margin_block,
])
.margin_bottom:
return static_property_ids(&shorthands_for_longhand_shorthands[166], [
PropertyId.all,
PropertyId.margin,
])
.margin_inline_end:
return static_property_ids(&shorthands_for_longhand_shorthands[167], [
PropertyId.all,
PropertyId.margin_inline,
])
.margin_inline_start:
return static_property_ids(&shorthands_for_longhand_shorthands[168], [
PropertyId.all,
PropertyId.margin_inline,
])
.margin_left:
return static_property_ids(&shorthands_for_longhand_shorthands[169], [
PropertyId.all,
PropertyId.margin,
])
.margin_right:
return static_property_ids(&shorthands_for_longhand_shorthands[170], [
PropertyId.all,
PropertyId.margin,
])
.margin_top:
return static_property_ids(&shorthands_for_longhand_shorthands[171], [
PropertyId.all,
PropertyId.margin,
])
.mask_clip:
return static_property_ids(&shorthands_for_longhand_shorthands[172], [
PropertyId.all,
PropertyId.mask,
])
.mask_composite:
return static_property_ids(&shorthands_for_longhand_shorthands[173], [
PropertyId.all,
PropertyId.mask,
])
.mask_image:
return static_property_ids(&shorthands_for_longhand_shorthands[174], [
PropertyId.all,
PropertyId.mask,
])
.mask_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[175], [
PropertyId.all,
PropertyId.mask,
])
.mask_origin:
return static_property_ids(&shorthands_for_longhand_shorthands[176], [
PropertyId.all,
PropertyId.mask,
])
.mask_position:
return static_property_ids(&shorthands_for_longhand_shorthands[177], [
PropertyId.all,
PropertyId.mask,
])
.mask_repeat:
return static_property_ids(&shorthands_for_longhand_shorthands[178], [
PropertyId.all,
PropertyId.mask,
])
.mask_size:
return static_property_ids(&shorthands_for_longhand_shorthands[179], [
PropertyId.all,
PropertyId.mask,
])
.mask_type:
return static_property_ids(&shorthands_for_longhand_shorthands[180], [
PropertyId.all,
])
.math_depth:
return static_property_ids(&shorthands_for_longhand_shorthands[181], [
PropertyId.all,
])
.math_shift:
return static_property_ids(&shorthands_for_longhand_shorthands[182], [
PropertyId.all,
])
.math_style:
return static_property_ids(&shorthands_for_longhand_shorthands[183], [
PropertyId.all,
])
.max_block_size:
return static_property_ids(&shorthands_for_longhand_shorthands[184], [
PropertyId.all,
])
.max_height:
return static_property_ids(&shorthands_for_longhand_shorthands[185], [
PropertyId.all,
])
.max_inline_size:
return static_property_ids(&shorthands_for_longhand_shorthands[186], [
PropertyId.all,
])
.max_width:
return static_property_ids(&shorthands_for_longhand_shorthands[187], [
PropertyId.all,
])
.min_block_size:
return static_property_ids(&shorthands_for_longhand_shorthands[188], [
PropertyId.all,
])
.min_height:
return static_property_ids(&shorthands_for_longhand_shorthands[189], [
PropertyId.all,
])
.min_inline_size:
return static_property_ids(&shorthands_for_longhand_shorthands[190], [
PropertyId.all,
])
.min_width:
return static_property_ids(&shorthands_for_longhand_shorthands[191], [
PropertyId.all,
])
.mix_blend_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[192], [
PropertyId.all,
])
.object_fit:
return static_property_ids(&shorthands_for_longhand_shorthands[193], [
PropertyId.all,
])
.object_position:
return static_property_ids(&shorthands_for_longhand_shorthands[194], [
PropertyId.all,
])
.opacity:
return static_property_ids(&shorthands_for_longhand_shorthands[195], [
PropertyId.all,
])
.order:
return static_property_ids(&shorthands_for_longhand_shorthands[196], [
PropertyId.all,
])
.orphans:
return static_property_ids(&shorthands_for_longhand_shorthands[197], [
PropertyId.all,
])
.outline_color:
return static_property_ids(&shorthands_for_longhand_shorthands[198], [
PropertyId.all,
PropertyId.outline,
])
.outline_offset:
return static_property_ids(&shorthands_for_longhand_shorthands[199], [
PropertyId.all,
])
.outline_style:
return static_property_ids(&shorthands_for_longhand_shorthands[200], [
PropertyId.all,
PropertyId.outline,
])
.outline_width:
return static_property_ids(&shorthands_for_longhand_shorthands[201], [
PropertyId.all,
PropertyId.outline,
])
.overflow_block:
return static_property_ids(&shorthands_for_longhand_shorthands[202], [
PropertyId.all,
])
.overflow_clip_margin_block_end:
return static_property_ids(&shorthands_for_longhand_shorthands[203], [
PropertyId.all,
PropertyId.overflow_clip_margin_block,
])
.overflow_clip_margin_block_start:
return static_property_ids(&shorthands_for_longhand_shorthands[204], [
PropertyId.all,
PropertyId.overflow_clip_margin_block,
])
.overflow_clip_margin_bottom:
return static_property_ids(&shorthands_for_longhand_shorthands[205], [
PropertyId.all,
PropertyId.overflow_clip_margin,
])
.overflow_clip_margin_inline_end:
return static_property_ids(&shorthands_for_longhand_shorthands[206], [
PropertyId.all,
PropertyId.overflow_clip_margin_inline,
])
.overflow_clip_margin_inline_start:
return static_property_ids(&shorthands_for_longhand_shorthands[207], [
PropertyId.all,
PropertyId.overflow_clip_margin_inline,
])
.overflow_clip_margin_left:
return static_property_ids(&shorthands_for_longhand_shorthands[208], [
PropertyId.all,
PropertyId.overflow_clip_margin,
])
.overflow_clip_margin_right:
return static_property_ids(&shorthands_for_longhand_shorthands[209], [
PropertyId.all,
PropertyId.overflow_clip_margin,
])
.overflow_clip_margin_top:
return static_property_ids(&shorthands_for_longhand_shorthands[210], [
PropertyId.all,
PropertyId.overflow_clip_margin,
])
.overflow_inline:
return static_property_ids(&shorthands_for_longhand_shorthands[211], [
PropertyId.all,
])
.overflow_wrap:
return static_property_ids(&shorthands_for_longhand_shorthands[212], [
PropertyId.all,
])
.overflow_x:
return static_property_ids(&shorthands_for_longhand_shorthands[213], [
PropertyId.all,
PropertyId.overflow,
])
.overflow_y:
return static_property_ids(&shorthands_for_longhand_shorthands[214], [
PropertyId.all,
PropertyId.overflow,
])
.padding_block_end:
return static_property_ids(&shorthands_for_longhand_shorthands[215], [
PropertyId.all,
PropertyId.padding_block,
])
.padding_block_start:
return static_property_ids(&shorthands_for_longhand_shorthands[216], [
PropertyId.all,
PropertyId.padding_block,
])
.padding_bottom:
return static_property_ids(&shorthands_for_longhand_shorthands[217], [
PropertyId.all,
PropertyId.padding,
])
.padding_inline_end:
return static_property_ids(&shorthands_for_longhand_shorthands[218], [
PropertyId.all,
PropertyId.padding_inline,
])
.padding_inline_start:
return static_property_ids(&shorthands_for_longhand_shorthands[219], [
PropertyId.all,
PropertyId.padding_inline,
])
.padding_left:
return static_property_ids(&shorthands_for_longhand_shorthands[220], [
PropertyId.all,
PropertyId.padding,
])
.padding_right:
return static_property_ids(&shorthands_for_longhand_shorthands[221], [
PropertyId.all,
PropertyId.padding,
])
.padding_top:
return static_property_ids(&shorthands_for_longhand_shorthands[222], [
PropertyId.all,
PropertyId.padding,
])
.paint_order:
return static_property_ids(&shorthands_for_longhand_shorthands[223], [
PropertyId.all,
])
.perspective:
return static_property_ids(&shorthands_for_longhand_shorthands[224], [
PropertyId.all,
])
.perspective_origin:
return static_property_ids(&shorthands_for_longhand_shorthands[225], [
PropertyId.all,
])
.pointer_events:
return static_property_ids(&shorthands_for_longhand_shorthands[226], [
PropertyId.all,
])
.position:
return static_property_ids(&shorthands_for_longhand_shorthands[227], [
PropertyId.all,
])
.position_anchor:
return static_property_ids(&shorthands_for_longhand_shorthands[228], [
PropertyId.all,
])
.position_area:
return static_property_ids(&shorthands_for_longhand_shorthands[229], [
PropertyId.all,
])
.position_try_fallbacks:
return static_property_ids(&shorthands_for_longhand_shorthands[230], [
PropertyId.all,
])
.position_try_order:
return static_property_ids(&shorthands_for_longhand_shorthands[231], [
PropertyId.all,
])
.position_visibility:
return static_property_ids(&shorthands_for_longhand_shorthands[232], [
PropertyId.all,
])
.quotes:
return static_property_ids(&shorthands_for_longhand_shorthands[233], [
PropertyId.all,
])
.r:
return static_property_ids(&shorthands_for_longhand_shorthands[234], [
PropertyId.all,
])
.resize:
return static_property_ids(&shorthands_for_longhand_shorthands[235], [
PropertyId.all,
])
.right:
return static_property_ids(&shorthands_for_longhand_shorthands[236], [
PropertyId.all,
PropertyId.inset,
])
.rotate:
return static_property_ids(&shorthands_for_longhand_shorthands[237], [
PropertyId.all,
])
.row_gap:
return static_property_ids(&shorthands_for_longhand_shorthands[238], [
PropertyId.all,
PropertyId.gap,
])
.rx:
return static_property_ids(&shorthands_for_longhand_shorthands[239], [
PropertyId.all,
])
.ry:
return static_property_ids(&shorthands_for_longhand_shorthands[240], [
PropertyId.all,
])
.scale:
return static_property_ids(&shorthands_for_longhand_shorthands[241], [
PropertyId.all,
])
.scroll_behavior:
return static_property_ids(&shorthands_for_longhand_shorthands[242], [
PropertyId.all,
])
.scroll_timeline_axis:
return static_property_ids(&shorthands_for_longhand_shorthands[243], [
PropertyId.all,
PropertyId.scroll_timeline,
])
.scroll_timeline_name:
return static_property_ids(&shorthands_for_longhand_shorthands[244], [
PropertyId.all,
PropertyId.scroll_timeline,
])
.scrollbar_color:
return static_property_ids(&shorthands_for_longhand_shorthands[245], [
PropertyId.all,
])
.scrollbar_gutter:
return static_property_ids(&shorthands_for_longhand_shorthands[246], [
PropertyId.all,
])
.scrollbar_width:
return static_property_ids(&shorthands_for_longhand_shorthands[247], [
PropertyId.all,
])
.shape_image_threshold:
return static_property_ids(&shorthands_for_longhand_shorthands[248], [
PropertyId.all,
])
.shape_margin:
return static_property_ids(&shorthands_for_longhand_shorthands[249], [
PropertyId.all,
])
.shape_outside:
return static_property_ids(&shorthands_for_longhand_shorthands[250], [
PropertyId.all,
])
.shape_rendering:
return static_property_ids(&shorthands_for_longhand_shorthands[251], [
PropertyId.all,
])
.stop_color:
return static_property_ids(&shorthands_for_longhand_shorthands[252], [
PropertyId.all,
])
.stop_opacity:
return static_property_ids(&shorthands_for_longhand_shorthands[253], [
PropertyId.all,
])
.stroke:
return static_property_ids(&shorthands_for_longhand_shorthands[254], [
PropertyId.all,
])
.stroke_dasharray:
return static_property_ids(&shorthands_for_longhand_shorthands[255], [
PropertyId.all,
])
.stroke_dashoffset:
return static_property_ids(&shorthands_for_longhand_shorthands[256], [
PropertyId.all,
])
.stroke_linecap:
return static_property_ids(&shorthands_for_longhand_shorthands[257], [
PropertyId.all,
])
.stroke_linejoin:
return static_property_ids(&shorthands_for_longhand_shorthands[258], [
PropertyId.all,
])
.stroke_miterlimit:
return static_property_ids(&shorthands_for_longhand_shorthands[259], [
PropertyId.all,
])
.stroke_opacity:
return static_property_ids(&shorthands_for_longhand_shorthands[260], [
PropertyId.all,
])
.stroke_width:
return static_property_ids(&shorthands_for_longhand_shorthands[261], [
PropertyId.all,
])
.tab_size:
return static_property_ids(&shorthands_for_longhand_shorthands[262], [
PropertyId.all,
])
.table_layout:
return static_property_ids(&shorthands_for_longhand_shorthands[263], [
PropertyId.all,
])
.text_align:
return static_property_ids(&shorthands_for_longhand_shorthands[264], [
PropertyId.all,
])
.text_anchor:
return static_property_ids(&shorthands_for_longhand_shorthands[265], [
PropertyId.all,
])
.text_decoration_color:
return static_property_ids(&shorthands_for_longhand_shorthands[266], [
PropertyId.all,
PropertyId.text_decoration,
])
.text_decoration_line:
return static_property_ids(&shorthands_for_longhand_shorthands[267], [
PropertyId.all,
PropertyId.text_decoration,
])
.text_decoration_skip_ink:
return static_property_ids(&shorthands_for_longhand_shorthands[268], [
PropertyId.all,
])
.text_decoration_style:
return static_property_ids(&shorthands_for_longhand_shorthands[269], [
PropertyId.all,
PropertyId.text_decoration,
])
.text_decoration_thickness:
return static_property_ids(&shorthands_for_longhand_shorthands[270], [
PropertyId.all,
PropertyId.text_decoration,
])
.text_indent:
return static_property_ids(&shorthands_for_longhand_shorthands[271], [
PropertyId.all,
])
.text_justify:
return static_property_ids(&shorthands_for_longhand_shorthands[272], [
PropertyId.all,
])
.text_overflow:
return static_property_ids(&shorthands_for_longhand_shorthands[273], [
PropertyId.all,
])
.text_rendering:
return static_property_ids(&shorthands_for_longhand_shorthands[274], [
PropertyId.all,
])
.text_shadow:
return static_property_ids(&shorthands_for_longhand_shorthands[275], [
PropertyId.all,
])
.text_transform:
return static_property_ids(&shorthands_for_longhand_shorthands[276], [
PropertyId.all,
])
.text_underline_offset:
return static_property_ids(&shorthands_for_longhand_shorthands[277], [
PropertyId.all,
])
.text_underline_position:
return static_property_ids(&shorthands_for_longhand_shorthands[278], [
PropertyId.all,
])
.text_wrap_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[279], [
PropertyId.all,
PropertyId.white_space,
PropertyId.text_wrap,
])
.text_wrap_style:
return static_property_ids(&shorthands_for_longhand_shorthands[280], [
PropertyId.all,
PropertyId.text_wrap,
])
.timeline_scope:
return static_property_ids(&shorthands_for_longhand_shorthands[281], [
PropertyId.all,
])
.top:
return static_property_ids(&shorthands_for_longhand_shorthands[282], [
PropertyId.all,
PropertyId.inset,
])
.touch_action:
return static_property_ids(&shorthands_for_longhand_shorthands[283], [
PropertyId.all,
])
.transform:
return static_property_ids(&shorthands_for_longhand_shorthands[284], [
PropertyId.all,
])
.transform_box:
return static_property_ids(&shorthands_for_longhand_shorthands[285], [
PropertyId.all,
])
.transform_origin:
return static_property_ids(&shorthands_for_longhand_shorthands[286], [
PropertyId.all,
])
.transform_style:
return static_property_ids(&shorthands_for_longhand_shorthands[287], [
PropertyId.all,
])
.transition_behavior:
return static_property_ids(&shorthands_for_longhand_shorthands[288], [
PropertyId.all,
PropertyId.transition,
])
.transition_delay:
return static_property_ids(&shorthands_for_longhand_shorthands[289], [
PropertyId.all,
PropertyId.transition,
])
.transition_duration:
return static_property_ids(&shorthands_for_longhand_shorthands[290], [
PropertyId.all,
PropertyId.transition,
])
.transition_property:
return static_property_ids(&shorthands_for_longhand_shorthands[291], [
PropertyId.all,
PropertyId.transition,
])
.transition_timing_function:
return static_property_ids(&shorthands_for_longhand_shorthands[292], [
PropertyId.all,
PropertyId.transition,
])
.translate:
return static_property_ids(&shorthands_for_longhand_shorthands[293], [
PropertyId.all,
])
.user_select:
return static_property_ids(&shorthands_for_longhand_shorthands[294], [
PropertyId.all,
])
.vertical_align:
return static_property_ids(&shorthands_for_longhand_shorthands[295], [
PropertyId.all,
])
.view_timeline_axis:
return static_property_ids(&shorthands_for_longhand_shorthands[296], [
PropertyId.all,
PropertyId.view_timeline,
])
.view_timeline_inset:
return static_property_ids(&shorthands_for_longhand_shorthands[297], [
PropertyId.all,
PropertyId.view_timeline,
])
.view_timeline_name:
return static_property_ids(&shorthands_for_longhand_shorthands[298], [
PropertyId.all,
PropertyId.view_timeline,
])
.view_transition_name:
return static_property_ids(&shorthands_for_longhand_shorthands[299], [
PropertyId.all,
])
.visibility:
return static_property_ids(&shorthands_for_longhand_shorthands[300], [
PropertyId.all,
])
.white_space_collapse:
return static_property_ids(&shorthands_for_longhand_shorthands[301], [
PropertyId.all,
PropertyId.white_space,
])
.white_space_trim:
return static_property_ids(&shorthands_for_longhand_shorthands[302], [
PropertyId.all,
PropertyId.white_space,
])
.widows:
return static_property_ids(&shorthands_for_longhand_shorthands[303], [
PropertyId.all,
])
.width:
return static_property_ids(&shorthands_for_longhand_shorthands[304], [
PropertyId.all,
])
.will_change:
return static_property_ids(&shorthands_for_longhand_shorthands[305], [
PropertyId.all,
])
.word_break:
return static_property_ids(&shorthands_for_longhand_shorthands[306], [
PropertyId.all,
])
.word_spacing:
return static_property_ids(&shorthands_for_longhand_shorthands[307], [
PropertyId.all,
])
.writing_mode:
return static_property_ids(&shorthands_for_longhand_shorthands[308], [
PropertyId.all,
])
.x:
return static_property_ids(&shorthands_for_longhand_shorthands[309], [
PropertyId.all,
])
.y:
return static_property_ids(&shorthands_for_longhand_shorthands[310], [
PropertyId.all,
])
.z_index:
return static_property_ids(&shorthands_for_longhand_shorthands[311], [
PropertyId.all,
])
.background_position:
return static_property_ids(&shorthands_for_longhand_shorthands[312], [
PropertyId.background,
])
.border_width:
return static_property_ids(&shorthands_for_longhand_shorthands[313], [
PropertyId.border,
])
.border_style:
return static_property_ids(&shorthands_for_longhand_shorthands[314], [
PropertyId.border,
])
.border_color:
return static_property_ids(&shorthands_for_longhand_shorthands[315], [
PropertyId.border,
])
.border_image:
return static_property_ids(&shorthands_for_longhand_shorthands[316], [
PropertyId.border,
])
.border_block_width:
return static_property_ids(&shorthands_for_longhand_shorthands[317], [
PropertyId.border_block,
])
.border_block_style:
return static_property_ids(&shorthands_for_longhand_shorthands[318], [
PropertyId.border_block,
])
.border_block_color:
return static_property_ids(&shorthands_for_longhand_shorthands[319], [
PropertyId.border_block,
])
.border_inline_width:
return static_property_ids(&shorthands_for_longhand_shorthands[320], [
PropertyId.border_inline,
])
.border_inline_style:
return static_property_ids(&shorthands_for_longhand_shorthands[321], [
PropertyId.border_inline,
])
.border_inline_color:
return static_property_ids(&shorthands_for_longhand_shorthands[322], [
PropertyId.border_inline,
])
.font_variant:
return static_property_ids(&shorthands_for_longhand_shorthands[323], [
PropertyId.font,
])
_: return empty_property_ids()
# The `static Vector<PropertyID> order` of property_computation_order.
var property_computation_order_order: StaticPropertyIds
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_computation_order.
pub func property_computation_order() -> ak.Vector[PropertyId]:
return static_property_ids(&property_computation_order_order, [
PropertyId.math_depth,
PropertyId.font_family,
PropertyId.font_feature_settings,
PropertyId.font_kerning,
PropertyId.font_optical_sizing,
PropertyId.font_size,
PropertyId.font_style,
PropertyId.font_variant_alternates,
PropertyId.font_variant_caps,
PropertyId.font_variant_east_asian,
PropertyId.font_variant_emoji,
PropertyId.font_variant_ligatures,
PropertyId.font_variant_numeric,
PropertyId.font_variant_position,
PropertyId.font_variation_settings,
PropertyId.font_weight,
PropertyId.font_width,
PropertyId.text_rendering,
PropertyId.line_height,
PropertyId.color_scheme,
PropertyId.background_image,
PropertyId.direction,
PropertyId.writing_mode,
PropertyId.webkit_text_fill_color,
PropertyId.accent_color,
PropertyId.align_content,
PropertyId.align_items,
PropertyId.align_self,
PropertyId.anchor_name,
PropertyId.anchor_scope,
PropertyId.animation_composition,
PropertyId.animation_delay,
PropertyId.animation_direction,
PropertyId.animation_duration,
PropertyId.animation_fill_mode,
PropertyId.animation_iteration_count,
PropertyId.animation_name,
PropertyId.animation_play_state,
PropertyId.animation_timeline,
PropertyId.animation_timing_function,
PropertyId.appearance,
PropertyId.aspect_ratio,
PropertyId.backdrop_filter,
PropertyId.background_attachment,
PropertyId.background_blend_mode,
PropertyId.background_clip,
PropertyId.background_color,
PropertyId.background_origin,
PropertyId.background_position_x,
PropertyId.background_position_y,
PropertyId.background_repeat,
PropertyId.background_size,
PropertyId.block_size,
PropertyId.border_block_end_color,
PropertyId.border_block_end_style,
PropertyId.border_block_end_width,
PropertyId.border_block_start_color,
PropertyId.border_block_start_style,
PropertyId.border_block_start_width,
PropertyId.border_bottom_color,
PropertyId.border_bottom_left_radius,
PropertyId.border_bottom_right_radius,
PropertyId.border_bottom_style,
PropertyId.border_bottom_width,
PropertyId.border_collapse,
PropertyId.border_end_end_radius,
PropertyId.border_end_start_radius,
PropertyId.border_image_outset,
PropertyId.border_image_repeat,
PropertyId.border_image_slice,
PropertyId.border_image_source,
PropertyId.border_image_width,
PropertyId.border_inline_end_color,
PropertyId.border_inline_end_style,
PropertyId.border_inline_end_width,
PropertyId.border_inline_start_color,
PropertyId.border_inline_start_style,
PropertyId.border_inline_start_width,
PropertyId.border_left_color,
PropertyId.border_left_style,
PropertyId.border_left_width,
PropertyId.border_right_color,
PropertyId.border_right_style,
PropertyId.border_right_width,
PropertyId.border_spacing,
PropertyId.border_start_end_radius,
PropertyId.border_start_start_radius,
PropertyId.border_top_color,
PropertyId.border_top_left_radius,
PropertyId.border_top_right_radius,
PropertyId.border_top_style,
PropertyId.border_top_width,
PropertyId.bottom,
PropertyId.box_shadow,
PropertyId.box_sizing,
PropertyId.caption_side,
PropertyId.caret_color,
PropertyId.clear,
PropertyId.clip,
PropertyId.clip_path,
PropertyId.clip_rule,
PropertyId.color,
PropertyId.color_interpolation,
PropertyId.column_count,
PropertyId.column_gap,
PropertyId.column_height,
PropertyId.column_span,
PropertyId.column_width,
PropertyId.contain,
PropertyId.container_type,
PropertyId.content,
PropertyId.content_visibility,
PropertyId.corner_bottom_left_shape,
PropertyId.corner_bottom_right_shape,
PropertyId.corner_end_end_shape,
PropertyId.corner_end_start_shape,
PropertyId.corner_start_end_shape,
PropertyId.corner_start_start_shape,
PropertyId.corner_top_left_shape,
PropertyId.corner_top_right_shape,
PropertyId.counter_increment,
PropertyId.counter_reset,
PropertyId.counter_set,
PropertyId.cursor,
PropertyId.cx,
PropertyId.cy,
PropertyId.display,
PropertyId.dominant_baseline,
PropertyId.empty_cells,
PropertyId.fill,
PropertyId.fill_opacity,
PropertyId.fill_rule,
PropertyId.filter,
PropertyId.flex_basis,
PropertyId.flex_direction,
PropertyId.flex_grow,
PropertyId.flex_shrink,
PropertyId.flex_wrap,
PropertyId.float,
PropertyId.flood_color,
PropertyId.flood_opacity,
PropertyId.font_language_override,
PropertyId.grid_auto_columns,
PropertyId.grid_auto_flow,
PropertyId.grid_auto_rows,
PropertyId.grid_column_end,
PropertyId.grid_column_start,
PropertyId.grid_row_end,
PropertyId.grid_row_start,
PropertyId.grid_template_areas,
PropertyId.grid_template_columns,
PropertyId.grid_template_rows,
PropertyId.height,
PropertyId.image_rendering,
PropertyId.inline_size,
PropertyId.inset_block_end,
PropertyId.inset_block_start,
PropertyId.inset_inline_end,
PropertyId.inset_inline_start,
PropertyId.isolation,
PropertyId.justify_content,
PropertyId.justify_items,
PropertyId.justify_self,
PropertyId.left,
PropertyId.letter_spacing,
PropertyId.list_style_image,
PropertyId.list_style_position,
PropertyId.list_style_type,
PropertyId.margin_block_end,
PropertyId.margin_block_start,
PropertyId.margin_bottom,
PropertyId.margin_inline_end,
PropertyId.margin_inline_start,
PropertyId.margin_left,
PropertyId.margin_right,
PropertyId.margin_top,
PropertyId.mask_clip,
PropertyId.mask_composite,
PropertyId.mask_image,
PropertyId.mask_mode,
PropertyId.mask_origin,
PropertyId.mask_position,
PropertyId.mask_repeat,
PropertyId.mask_size,
PropertyId.mask_type,
PropertyId.math_shift,
PropertyId.math_style,
PropertyId.max_block_size,
PropertyId.max_height,
PropertyId.max_inline_size,
PropertyId.max_width,
PropertyId.min_block_size,
PropertyId.min_height,
PropertyId.min_inline_size,
PropertyId.min_width,
PropertyId.mix_blend_mode,
PropertyId.object_fit,
PropertyId.object_position,
PropertyId.opacity,
PropertyId.order,
PropertyId.orphans,
PropertyId.outline_color,
PropertyId.outline_offset,
PropertyId.outline_style,
PropertyId.outline_width,
PropertyId.overflow_block,
PropertyId.overflow_clip_margin_block_end,
PropertyId.overflow_clip_margin_block_start,
PropertyId.overflow_clip_margin_bottom,
PropertyId.overflow_clip_margin_inline_end,
PropertyId.overflow_clip_margin_inline_start,
PropertyId.overflow_clip_margin_left,
PropertyId.overflow_clip_margin_right,
PropertyId.overflow_clip_margin_top,
PropertyId.overflow_inline,
PropertyId.overflow_wrap,
PropertyId.overflow_x,
PropertyId.overflow_y,
PropertyId.padding_block_end,
PropertyId.padding_block_start,
PropertyId.padding_bottom,
PropertyId.padding_inline_end,
PropertyId.padding_inline_start,
PropertyId.padding_left,
PropertyId.padding_right,
PropertyId.padding_top,
PropertyId.paint_order,
PropertyId.perspective,
PropertyId.perspective_origin,
PropertyId.pointer_events,
PropertyId.position,
PropertyId.position_anchor,
PropertyId.position_area,
PropertyId.position_try_fallbacks,
PropertyId.position_try_order,
PropertyId.position_visibility,
PropertyId.quotes,
PropertyId.r,
PropertyId.resize,
PropertyId.right,
PropertyId.rotate,
PropertyId.row_gap,
PropertyId.rx,
PropertyId.ry,
PropertyId.scale,
PropertyId.scroll_behavior,
PropertyId.scroll_timeline_axis,
PropertyId.scroll_timeline_name,
PropertyId.scrollbar_color,
PropertyId.scrollbar_gutter,
PropertyId.scrollbar_width,
PropertyId.shape_image_threshold,
PropertyId.shape_margin,
PropertyId.shape_outside,
PropertyId.shape_rendering,
PropertyId.stop_color,
PropertyId.stop_opacity,
PropertyId.stroke,
PropertyId.stroke_dasharray,
PropertyId.stroke_dashoffset,
PropertyId.stroke_linecap,
PropertyId.stroke_linejoin,
PropertyId.stroke_miterlimit,
PropertyId.stroke_opacity,
PropertyId.stroke_width,
PropertyId.tab_size,
PropertyId.table_layout,
PropertyId.text_align,
PropertyId.text_anchor,
PropertyId.text_decoration_color,
PropertyId.text_decoration_line,
PropertyId.text_decoration_skip_ink,
PropertyId.text_decoration_style,
PropertyId.text_decoration_thickness,
PropertyId.text_indent,
PropertyId.text_justify,
PropertyId.text_overflow,
PropertyId.text_shadow,
PropertyId.text_transform,
PropertyId.text_underline_offset,
PropertyId.text_underline_position,
PropertyId.text_wrap_mode,
PropertyId.text_wrap_style,
PropertyId.timeline_scope,
PropertyId.top,
PropertyId.touch_action,
PropertyId.transform,
PropertyId.transform_box,
PropertyId.transform_origin,
PropertyId.transform_style,
PropertyId.transition_behavior,
PropertyId.transition_delay,
PropertyId.transition_duration,
PropertyId.transition_property,
PropertyId.transition_timing_function,
PropertyId.translate,
PropertyId.unicode_bidi,
PropertyId.user_select,
PropertyId.vertical_align,
PropertyId.view_timeline_axis,
PropertyId.view_timeline_inset,
PropertyId.view_timeline_name,
PropertyId.view_transition_name,
PropertyId.visibility,
PropertyId.white_space_collapse,
PropertyId.white_space_trim,
PropertyId.widows,
PropertyId.width,
PropertyId.will_change,
PropertyId.word_break,
PropertyId.word_spacing,
PropertyId.x,
PropertyId.y,
PropertyId.z_index,
])
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_is_positional_value_list_shorthand.
pub func property_is_positional_value_list_shorthand(property_id: PropertyId) -> bool:
match property_id:
.border_block_color: return true
.border_block_style: return true
.border_block_width: return true
.border_color: return true
.border_inline_color: return true
.border_inline_style: return true
.border_inline_width: return true
.border_style: return true
.border_width: return true
.corner_block_end_shape: return true
.corner_block_start_shape: return true
.corner_bottom_shape: return true
.corner_inline_end_shape: return true
.corner_inline_start_shape: return true
.corner_left_shape: return true
.corner_right_shape: return true
.corner_shape: return true
.corner_top_shape: return true
.gap: return true
.inset: return true
.inset_block: return true
.inset_inline: return true
.margin: return true
.margin_block: return true
.margin_inline: return true
.overflow: return true
.padding: return true
.padding_block: return true
.padding_inline: return true
_: return false
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_requires_computation_with_inherited_value.
pub func property_requires_computation_with_inherited_value(property_id: PropertyId) -> bool:
match property_id:
.background_attachment: return true
.background_blend_mode: return true
.background_clip: return true
.background_origin: return true
.background_position_x: return true
.background_position_y: return true
.background_repeat: return true
.background_size: return true
_: return false
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_requires_computation_with_initial_value.
pub func property_requires_computation_with_initial_value(property_id: PropertyId) -> bool:
match property_id:
.background_attachment: return true
.background_blend_mode: return true
.background_clip: return true
.background_color: return true
.background_origin: return true
.background_position_x: return true
.background_position_y: return true
.background_repeat: return true
.background_size: return true
.border_block_end_width: return true
.border_block_start_width: return true
.border_bottom_width: return true
.border_inline_end_width: return true
.border_inline_start_width: return true
.border_left_width: return true
.border_right_width: return true
.border_top_width: return true
.color: return true
.corner_bottom_left_shape: return true
.corner_bottom_right_shape: return true
.corner_end_end_shape: return true
.corner_end_start_shape: return true
.corner_start_end_shape: return true
.corner_start_start_shape: return true
.corner_top_left_shape: return true
.corner_top_right_shape: return true
.fill: return true
.flood_color: return true
.font_size: return true
.font_weight: return true
.font_width: return true
.letter_spacing: return true
.outline_width: return true
.stop_color: return true
.word_spacing: return true
_: return false
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_requires_computation_with_cascaded_value.
pub func property_requires_computation_with_cascaded_value(property_id: PropertyId) -> bool:
match property_id:
.webkit_text_fill_color: return true
.accent_color: return true
.animation_delay: return true
.animation_duration: return true
.animation_iteration_count: return true
.animation_name: return true
.animation_timeline: return true
.animation_timing_function: return true
.aspect_ratio: return true
.backdrop_filter: return true
.background_attachment: return true
.background_blend_mode: return true
.background_clip: return true
.background_color: return true
.background_image: return true
.background_origin: return true
.background_position_x: return true
.background_position_y: return true
.background_repeat: return true
.background_size: return true
.block_size: return true
.border_block_end_color: return true
.border_block_end_width: return true
.border_block_start_color: return true
.border_block_start_width: return true
.border_bottom_color: return true
.border_bottom_left_radius: return true
.border_bottom_right_radius: return true
.border_bottom_width: return true
.border_end_end_radius: return true
.border_end_start_radius: return true
.border_image_outset: return true
.border_image_slice: return true
.border_image_source: return true
.border_image_width: return true
.border_inline_end_color: return true
.border_inline_end_width: return true
.border_inline_start_color: return true
.border_inline_start_width: return true
.border_left_color: return true
.border_left_width: return true
.border_right_color: return true
.border_right_width: return true
.border_spacing: return true
.border_start_end_radius: return true
.border_start_start_radius: return true
.border_top_color: return true
.border_top_left_radius: return true
.border_top_right_radius: return true
.border_top_width: return true
.bottom: return true
.box_shadow: return true
.caret_color: return true
.clip: return true
.clip_path: return true
.color: return true
.column_count: return true
.column_gap: return true
.column_height: return true
.column_width: return true
.content: return true
.corner_bottom_left_shape: return true
.corner_bottom_right_shape: return true
.corner_end_end_shape: return true
.corner_end_start_shape: return true
.corner_start_end_shape: return true
.corner_start_start_shape: return true
.corner_top_left_shape: return true
.corner_top_right_shape: return true
.counter_increment: return true
.counter_reset: return true
.counter_set: return true
.cursor: return true
.cx: return true
.cy: return true
.fill: return true
.fill_opacity: return true
.filter: return true
.flex_basis: return true
.flex_grow: return true
.flex_shrink: return true
.flood_color: return true
.flood_opacity: return true
.font_feature_settings: return true
.font_size: return true
.font_style: return true
.font_variation_settings: return true
.font_weight: return true
.font_width: return true
.grid_auto_columns: return true
.grid_auto_rows: return true
.grid_template_columns: return true
.grid_template_rows: return true
.height: return true
.inline_size: return true
.inset_block_end: return true
.inset_block_start: return true
.inset_inline_end: return true
.inset_inline_start: return true
.left: return true
.letter_spacing: return true
.line_height: return true
.list_style_image: return true
.margin_block_end: return true
.margin_block_start: return true
.margin_bottom: return true
.margin_inline_end: return true
.margin_inline_start: return true
.margin_left: return true
.margin_right: return true
.margin_top: return true
.mask_image: return true
.mask_position: return true
.mask_size: return true
.math_depth: return true
.max_block_size: return true
.max_height: return true
.max_inline_size: return true
.max_width: return true
.min_block_size: return true
.min_height: return true
.min_inline_size: return true
.min_width: return true
.object_position: return true
.opacity: return true
.order: return true
.orphans: return true
.outline_color: return true
.outline_offset: return true
.outline_width: return true
.overflow_clip_margin_block_end: return true
.overflow_clip_margin_block_start: return true
.overflow_clip_margin_bottom: return true
.overflow_clip_margin_inline_end: return true
.overflow_clip_margin_inline_start: return true
.overflow_clip_margin_left: return true
.overflow_clip_margin_right: return true
.overflow_clip_margin_top: return true
.padding_block_end: return true
.padding_block_start: return true
.padding_bottom: return true
.padding_inline_end: return true
.padding_inline_start: return true
.padding_left: return true
.padding_right: return true
.padding_top: return true
.perspective: return true
.perspective_origin: return true
.position_area: return true
.r: return true
.right: return true
.rotate: return true
.row_gap: return true
.rx: return true
.ry: return true
.scale: return true
.scrollbar_color: return true
.shape_image_threshold: return true
.shape_margin: return true
.shape_outside: return true
.stop_color: return true
.stop_opacity: return true
.stroke: return true
.stroke_dasharray: return true
.stroke_dashoffset: return true
.stroke_miterlimit: return true
.stroke_opacity: return true
.stroke_width: return true
.tab_size: return true
.text_decoration_color: return true
.text_decoration_thickness: return true
.text_indent: return true
.text_shadow: return true
.text_underline_offset: return true
.top: return true
.transform: return true
.transform_origin: return true
.transition_delay: return true
.transition_duration: return true
.transition_timing_function: return true
.translate: return true
.vertical_align: return true
.view_timeline_inset: return true
.widows: return true
.width: return true
.word_spacing: return true
.x: return true
.y: return true
.z_index: return true
_: return false
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_is_logical_alias.
pub func property_is_logical_alias(property_id: PropertyId) -> bool:
match property_id:
.block_size: return true
.border_block_end_color: return true
.border_block_end_style: return true
.border_block_end_width: return true
.border_block_start_color: return true
.border_block_start_style: return true
.border_block_start_width: return true
.border_end_end_radius: return true
.border_end_start_radius: return true
.border_inline_end_color: return true
.border_inline_end_style: return true
.border_inline_end_width: return true
.border_inline_start_color: return true
.border_inline_start_style: return true
.border_inline_start_width: return true
.border_start_end_radius: return true
.border_start_start_radius: return true
.corner_end_end_shape: return true
.corner_end_start_shape: return true
.corner_start_end_shape: return true
.corner_start_start_shape: return true
.inline_size: return true
.inset_block_end: return true
.inset_block_start: return true
.inset_inline_end: return true
.inset_inline_start: return true
.margin_block_end: return true
.margin_block_start: return true
.margin_inline_end: return true
.margin_inline_start: return true
.max_block_size: return true
.max_inline_size: return true
.min_block_size: return true
.min_inline_size: return true
.overflow_block: return true
.overflow_clip_margin_block_end: return true
.overflow_clip_margin_block_start: return true
.overflow_clip_margin_inline_end: return true
.overflow_clip_margin_inline_start: return true
.overflow_inline: return true
.padding_block_end: return true
.padding_block_start: return true
.padding_inline_end: return true
.padding_inline_start: return true
_: return false
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::map_logical_alias_to_physical_property.
pub func map_logical_alias_to_physical_property(property_id: PropertyId, mapping_context: LogicalAliasMappingContext) -> PropertyId:
# https://drafts.csswg.org/css-writing-modes-4/#logical-to-physical
# FIXME: Note: The used direction depends on the computed writing-mode and text-orientation: in vertical writing
# modes, a text-orientation value of upright forces the used direction to ltr.
let used_direction = mapping_context.direction
match property_id:
.block_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.height
return PropertyId.width
.border_block_end_color:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_bottom_color
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_left_color
return PropertyId.border_right_color
.border_block_end_style:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_bottom_style
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_left_style
return PropertyId.border_right_style
.border_block_end_width:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_bottom_width
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_left_width
return PropertyId.border_right_width
.border_block_start_color:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_top_color
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_right_color
return PropertyId.border_left_color
.border_block_start_style:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_top_style
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_right_style
return PropertyId.border_left_style
.border_block_start_width:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.border_top_width
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.border_right_width
return PropertyId.border_left_width
.border_end_end_radius:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_right_radius
return PropertyId.border_bottom_left_radius
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_left_radius
return PropertyId.border_top_left_radius
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_right_radius
return PropertyId.border_top_right_radius
if used_direction == Direction.ltr:
return PropertyId.border_top_right_radius
return PropertyId.border_bottom_right_radius
.border_end_start_radius:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_left_radius
return PropertyId.border_bottom_right_radius
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.border_top_left_radius
return PropertyId.border_bottom_left_radius
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_top_right_radius
return PropertyId.border_bottom_right_radius
if used_direction == Direction.ltr:
return PropertyId.border_bottom_right_radius
return PropertyId.border_top_right_radius
.border_inline_end_color:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_right_color
return PropertyId.border_left_color
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_color
return PropertyId.border_top_color
if used_direction == Direction.ltr:
return PropertyId.border_top_color
return PropertyId.border_bottom_color
.border_inline_end_style:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_right_style
return PropertyId.border_left_style
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_style
return PropertyId.border_top_style
if used_direction == Direction.ltr:
return PropertyId.border_top_style
return PropertyId.border_bottom_style
.border_inline_end_width:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_right_width
return PropertyId.border_left_width
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_width
return PropertyId.border_top_width
if used_direction == Direction.ltr:
return PropertyId.border_top_width
return PropertyId.border_bottom_width
.border_inline_start_color:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_left_color
return PropertyId.border_right_color
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_top_color
return PropertyId.border_bottom_color
if used_direction == Direction.ltr:
return PropertyId.border_bottom_color
return PropertyId.border_top_color
.border_inline_start_style:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_left_style
return PropertyId.border_right_style
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_top_style
return PropertyId.border_bottom_style
if used_direction == Direction.ltr:
return PropertyId.border_bottom_style
return PropertyId.border_top_style
.border_inline_start_width:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_left_width
return PropertyId.border_right_width
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_top_width
return PropertyId.border_bottom_width
if used_direction == Direction.ltr:
return PropertyId.border_bottom_width
return PropertyId.border_top_width
.border_start_end_radius:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_top_right_radius
return PropertyId.border_top_left_radius
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_right_radius
return PropertyId.border_top_right_radius
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_bottom_left_radius
return PropertyId.border_top_left_radius
if used_direction == Direction.ltr:
return PropertyId.border_top_left_radius
return PropertyId.border_bottom_left_radius
.border_start_start_radius:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.border_top_left_radius
return PropertyId.border_top_right_radius
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.border_top_right_radius
return PropertyId.border_bottom_right_radius
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.border_top_left_radius
return PropertyId.border_bottom_left_radius
if used_direction == Direction.ltr:
return PropertyId.border_bottom_left_radius
return PropertyId.border_top_left_radius
.corner_end_end_shape:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_right_shape
return PropertyId.corner_bottom_left_shape
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_left_shape
return PropertyId.corner_top_left_shape
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_right_shape
return PropertyId.corner_top_right_shape
if used_direction == Direction.ltr:
return PropertyId.corner_top_right_shape
return PropertyId.corner_bottom_right_shape
.corner_end_start_shape:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_left_shape
return PropertyId.corner_bottom_right_shape
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.corner_top_left_shape
return PropertyId.corner_bottom_left_shape
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.corner_top_right_shape
return PropertyId.corner_bottom_right_shape
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_right_shape
return PropertyId.corner_top_right_shape
.corner_start_end_shape:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.corner_top_right_shape
return PropertyId.corner_top_left_shape
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_right_shape
return PropertyId.corner_top_right_shape
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_left_shape
return PropertyId.corner_top_left_shape
if used_direction == Direction.ltr:
return PropertyId.corner_top_left_shape
return PropertyId.corner_bottom_left_shape
.corner_start_start_shape:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.corner_top_left_shape
return PropertyId.corner_top_right_shape
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
if used_direction == Direction.ltr:
return PropertyId.corner_top_right_shape
return PropertyId.corner_bottom_right_shape
if mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.corner_top_left_shape
return PropertyId.corner_bottom_left_shape
if used_direction == Direction.ltr:
return PropertyId.corner_bottom_left_shape
return PropertyId.corner_top_left_shape
.inline_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.width
return PropertyId.height
.inset_block_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.bottom
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.left
return PropertyId.right
.inset_block_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.top
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.right
return PropertyId.left
.inset_inline_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.right
return PropertyId.left
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.bottom
return PropertyId.top
if used_direction == Direction.ltr:
return PropertyId.top
return PropertyId.bottom
.inset_inline_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.left
return PropertyId.right
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.top
return PropertyId.bottom
if used_direction == Direction.ltr:
return PropertyId.bottom
return PropertyId.top
.margin_block_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.margin_bottom
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.margin_left
return PropertyId.margin_right
.margin_block_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.margin_top
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.margin_right
return PropertyId.margin_left
.margin_inline_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.margin_right
return PropertyId.margin_left
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.margin_bottom
return PropertyId.margin_top
if used_direction == Direction.ltr:
return PropertyId.margin_top
return PropertyId.margin_bottom
.margin_inline_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.margin_left
return PropertyId.margin_right
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.margin_top
return PropertyId.margin_bottom
if used_direction == Direction.ltr:
return PropertyId.margin_bottom
return PropertyId.margin_top
.max_block_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.max_height
return PropertyId.max_width
.max_inline_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.max_width
return PropertyId.max_height
.min_block_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.min_height
return PropertyId.min_width
.min_inline_size:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.min_width
return PropertyId.min_height
.overflow_block:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.overflow_y
return PropertyId.overflow_x
.overflow_clip_margin_block_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.overflow_clip_margin_bottom
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.overflow_clip_margin_left
return PropertyId.overflow_clip_margin_right
.overflow_clip_margin_block_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.overflow_clip_margin_top
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.overflow_clip_margin_right
return PropertyId.overflow_clip_margin_left
.overflow_clip_margin_inline_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_right
return PropertyId.overflow_clip_margin_left
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_bottom
return PropertyId.overflow_clip_margin_top
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_top
return PropertyId.overflow_clip_margin_bottom
.overflow_clip_margin_inline_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_left
return PropertyId.overflow_clip_margin_right
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_top
return PropertyId.overflow_clip_margin_bottom
if used_direction == Direction.ltr:
return PropertyId.overflow_clip_margin_bottom
return PropertyId.overflow_clip_margin_top
.overflow_inline:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.overflow_x
return PropertyId.overflow_y
.padding_block_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.padding_bottom
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.padding_left
return PropertyId.padding_right
.padding_block_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
return PropertyId.padding_top
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl:
return PropertyId.padding_right
return PropertyId.padding_left
.padding_inline_end:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.padding_right
return PropertyId.padding_left
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.padding_bottom
return PropertyId.padding_top
if used_direction == Direction.ltr:
return PropertyId.padding_top
return PropertyId.padding_bottom
.padding_inline_start:
if mapping_context.writing_mode == WritingMode.horizontal_tb:
if used_direction == Direction.ltr:
return PropertyId.padding_left
return PropertyId.padding_right
if mapping_context.writing_mode == WritingMode.vertical_rl or mapping_context.writing_mode == WritingMode.sideways_rl or mapping_context.writing_mode == WritingMode.vertical_lr:
if used_direction == Direction.ltr:
return PropertyId.padding_top
return PropertyId.padding_bottom
if used_direction == Direction.ltr:
return PropertyId.padding_bottom
return PropertyId.padding_top
_:
assert(not property_is_logical_alias(property_id))
return property_id
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::map_physical_property_to_logical_alias.
pub func map_physical_property_to_logical_alias(property_id: PropertyId, mapping_context: LogicalAliasMappingContext) -> PropertyId:
match property_id:
.border_top_color:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_color, mapping_context) == property_id:
return PropertyId.border_block_start_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_color, mapping_context) == property_id:
return PropertyId.border_inline_end_color
if map_logical_alias_to_physical_property(PropertyId.border_block_end_color, mapping_context) == property_id:
return PropertyId.border_block_end_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_color, mapping_context) == property_id:
return PropertyId.border_inline_start_color
trap("VERIFY_NOT_REACHED")
.border_right_color:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_color, mapping_context) == property_id:
return PropertyId.border_block_start_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_color, mapping_context) == property_id:
return PropertyId.border_inline_end_color
if map_logical_alias_to_physical_property(PropertyId.border_block_end_color, mapping_context) == property_id:
return PropertyId.border_block_end_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_color, mapping_context) == property_id:
return PropertyId.border_inline_start_color
trap("VERIFY_NOT_REACHED")
.border_bottom_color:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_color, mapping_context) == property_id:
return PropertyId.border_block_start_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_color, mapping_context) == property_id:
return PropertyId.border_inline_end_color
if map_logical_alias_to_physical_property(PropertyId.border_block_end_color, mapping_context) == property_id:
return PropertyId.border_block_end_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_color, mapping_context) == property_id:
return PropertyId.border_inline_start_color
trap("VERIFY_NOT_REACHED")
.border_left_color:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_color, mapping_context) == property_id:
return PropertyId.border_block_start_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_color, mapping_context) == property_id:
return PropertyId.border_inline_end_color
if map_logical_alias_to_physical_property(PropertyId.border_block_end_color, mapping_context) == property_id:
return PropertyId.border_block_end_color
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_color, mapping_context) == property_id:
return PropertyId.border_inline_start_color
trap("VERIFY_NOT_REACHED")
.border_top_left_radius:
if map_logical_alias_to_physical_property(PropertyId.border_start_start_radius, mapping_context) == property_id:
return PropertyId.border_start_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_start_end_radius, mapping_context) == property_id:
return PropertyId.border_start_end_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_start_radius, mapping_context) == property_id:
return PropertyId.border_end_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_end_radius, mapping_context) == property_id:
return PropertyId.border_end_end_radius
trap("VERIFY_NOT_REACHED")
.border_bottom_left_radius:
if map_logical_alias_to_physical_property(PropertyId.border_start_start_radius, mapping_context) == property_id:
return PropertyId.border_start_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_start_end_radius, mapping_context) == property_id:
return PropertyId.border_start_end_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_start_radius, mapping_context) == property_id:
return PropertyId.border_end_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_end_radius, mapping_context) == property_id:
return PropertyId.border_end_end_radius
trap("VERIFY_NOT_REACHED")
.border_top_right_radius:
if map_logical_alias_to_physical_property(PropertyId.border_start_start_radius, mapping_context) == property_id:
return PropertyId.border_start_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_start_end_radius, mapping_context) == property_id:
return PropertyId.border_start_end_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_start_radius, mapping_context) == property_id:
return PropertyId.border_end_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_end_radius, mapping_context) == property_id:
return PropertyId.border_end_end_radius
trap("VERIFY_NOT_REACHED")
.border_bottom_right_radius:
if map_logical_alias_to_physical_property(PropertyId.border_start_start_radius, mapping_context) == property_id:
return PropertyId.border_start_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_start_end_radius, mapping_context) == property_id:
return PropertyId.border_start_end_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_start_radius, mapping_context) == property_id:
return PropertyId.border_end_start_radius
if map_logical_alias_to_physical_property(PropertyId.border_end_end_radius, mapping_context) == property_id:
return PropertyId.border_end_end_radius
trap("VERIFY_NOT_REACHED")
.border_top_style:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_style, mapping_context) == property_id:
return PropertyId.border_block_start_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_style, mapping_context) == property_id:
return PropertyId.border_inline_end_style
if map_logical_alias_to_physical_property(PropertyId.border_block_end_style, mapping_context) == property_id:
return PropertyId.border_block_end_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_style, mapping_context) == property_id:
return PropertyId.border_inline_start_style
trap("VERIFY_NOT_REACHED")
.border_right_style:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_style, mapping_context) == property_id:
return PropertyId.border_block_start_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_style, mapping_context) == property_id:
return PropertyId.border_inline_end_style
if map_logical_alias_to_physical_property(PropertyId.border_block_end_style, mapping_context) == property_id:
return PropertyId.border_block_end_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_style, mapping_context) == property_id:
return PropertyId.border_inline_start_style
trap("VERIFY_NOT_REACHED")
.border_bottom_style:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_style, mapping_context) == property_id:
return PropertyId.border_block_start_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_style, mapping_context) == property_id:
return PropertyId.border_inline_end_style
if map_logical_alias_to_physical_property(PropertyId.border_block_end_style, mapping_context) == property_id:
return PropertyId.border_block_end_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_style, mapping_context) == property_id:
return PropertyId.border_inline_start_style
trap("VERIFY_NOT_REACHED")
.border_left_style:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_style, mapping_context) == property_id:
return PropertyId.border_block_start_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_style, mapping_context) == property_id:
return PropertyId.border_inline_end_style
if map_logical_alias_to_physical_property(PropertyId.border_block_end_style, mapping_context) == property_id:
return PropertyId.border_block_end_style
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_style, mapping_context) == property_id:
return PropertyId.border_inline_start_style
trap("VERIFY_NOT_REACHED")
.border_top_width:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_width, mapping_context) == property_id:
return PropertyId.border_block_start_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_width, mapping_context) == property_id:
return PropertyId.border_inline_end_width
if map_logical_alias_to_physical_property(PropertyId.border_block_end_width, mapping_context) == property_id:
return PropertyId.border_block_end_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_width, mapping_context) == property_id:
return PropertyId.border_inline_start_width
trap("VERIFY_NOT_REACHED")
.border_right_width:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_width, mapping_context) == property_id:
return PropertyId.border_block_start_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_width, mapping_context) == property_id:
return PropertyId.border_inline_end_width
if map_logical_alias_to_physical_property(PropertyId.border_block_end_width, mapping_context) == property_id:
return PropertyId.border_block_end_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_width, mapping_context) == property_id:
return PropertyId.border_inline_start_width
trap("VERIFY_NOT_REACHED")
.border_bottom_width:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_width, mapping_context) == property_id:
return PropertyId.border_block_start_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_width, mapping_context) == property_id:
return PropertyId.border_inline_end_width
if map_logical_alias_to_physical_property(PropertyId.border_block_end_width, mapping_context) == property_id:
return PropertyId.border_block_end_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_width, mapping_context) == property_id:
return PropertyId.border_inline_start_width
trap("VERIFY_NOT_REACHED")
.border_left_width:
if map_logical_alias_to_physical_property(PropertyId.border_block_start_width, mapping_context) == property_id:
return PropertyId.border_block_start_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_end_width, mapping_context) == property_id:
return PropertyId.border_inline_end_width
if map_logical_alias_to_physical_property(PropertyId.border_block_end_width, mapping_context) == property_id:
return PropertyId.border_block_end_width
if map_logical_alias_to_physical_property(PropertyId.border_inline_start_width, mapping_context) == property_id:
return PropertyId.border_inline_start_width
trap("VERIFY_NOT_REACHED")
.corner_top_left_shape:
if map_logical_alias_to_physical_property(PropertyId.corner_start_start_shape, mapping_context) == property_id:
return PropertyId.corner_start_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_start_end_shape, mapping_context) == property_id:
return PropertyId.corner_start_end_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_start_shape, mapping_context) == property_id:
return PropertyId.corner_end_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_end_shape, mapping_context) == property_id:
return PropertyId.corner_end_end_shape
trap("VERIFY_NOT_REACHED")
.corner_bottom_left_shape:
if map_logical_alias_to_physical_property(PropertyId.corner_start_start_shape, mapping_context) == property_id:
return PropertyId.corner_start_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_start_end_shape, mapping_context) == property_id:
return PropertyId.corner_start_end_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_start_shape, mapping_context) == property_id:
return PropertyId.corner_end_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_end_shape, mapping_context) == property_id:
return PropertyId.corner_end_end_shape
trap("VERIFY_NOT_REACHED")
.corner_top_right_shape:
if map_logical_alias_to_physical_property(PropertyId.corner_start_start_shape, mapping_context) == property_id:
return PropertyId.corner_start_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_start_end_shape, mapping_context) == property_id:
return PropertyId.corner_start_end_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_start_shape, mapping_context) == property_id:
return PropertyId.corner_end_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_end_shape, mapping_context) == property_id:
return PropertyId.corner_end_end_shape
trap("VERIFY_NOT_REACHED")
.corner_bottom_right_shape:
if map_logical_alias_to_physical_property(PropertyId.corner_start_start_shape, mapping_context) == property_id:
return PropertyId.corner_start_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_start_end_shape, mapping_context) == property_id:
return PropertyId.corner_start_end_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_start_shape, mapping_context) == property_id:
return PropertyId.corner_end_start_shape
if map_logical_alias_to_physical_property(PropertyId.corner_end_end_shape, mapping_context) == property_id:
return PropertyId.corner_end_end_shape
trap("VERIFY_NOT_REACHED")
.top:
if map_logical_alias_to_physical_property(PropertyId.inset_block_start, mapping_context) == property_id:
return PropertyId.inset_block_start
if map_logical_alias_to_physical_property(PropertyId.inset_inline_end, mapping_context) == property_id:
return PropertyId.inset_inline_end
if map_logical_alias_to_physical_property(PropertyId.inset_block_end, mapping_context) == property_id:
return PropertyId.inset_block_end
if map_logical_alias_to_physical_property(PropertyId.inset_inline_start, mapping_context) == property_id:
return PropertyId.inset_inline_start
trap("VERIFY_NOT_REACHED")
.right:
if map_logical_alias_to_physical_property(PropertyId.inset_block_start, mapping_context) == property_id:
return PropertyId.inset_block_start
if map_logical_alias_to_physical_property(PropertyId.inset_inline_end, mapping_context) == property_id:
return PropertyId.inset_inline_end
if map_logical_alias_to_physical_property(PropertyId.inset_block_end, mapping_context) == property_id:
return PropertyId.inset_block_end
if map_logical_alias_to_physical_property(PropertyId.inset_inline_start, mapping_context) == property_id:
return PropertyId.inset_inline_start
trap("VERIFY_NOT_REACHED")
.bottom:
if map_logical_alias_to_physical_property(PropertyId.inset_block_start, mapping_context) == property_id:
return PropertyId.inset_block_start
if map_logical_alias_to_physical_property(PropertyId.inset_inline_end, mapping_context) == property_id:
return PropertyId.inset_inline_end
if map_logical_alias_to_physical_property(PropertyId.inset_block_end, mapping_context) == property_id:
return PropertyId.inset_block_end
if map_logical_alias_to_physical_property(PropertyId.inset_inline_start, mapping_context) == property_id:
return PropertyId.inset_inline_start
trap("VERIFY_NOT_REACHED")
.left:
if map_logical_alias_to_physical_property(PropertyId.inset_block_start, mapping_context) == property_id:
return PropertyId.inset_block_start
if map_logical_alias_to_physical_property(PropertyId.inset_inline_end, mapping_context) == property_id:
return PropertyId.inset_inline_end
if map_logical_alias_to_physical_property(PropertyId.inset_block_end, mapping_context) == property_id:
return PropertyId.inset_block_end
if map_logical_alias_to_physical_property(PropertyId.inset_inline_start, mapping_context) == property_id:
return PropertyId.inset_inline_start
trap("VERIFY_NOT_REACHED")
.margin_top:
if map_logical_alias_to_physical_property(PropertyId.margin_block_start, mapping_context) == property_id:
return PropertyId.margin_block_start
if map_logical_alias_to_physical_property(PropertyId.margin_inline_end, mapping_context) == property_id:
return PropertyId.margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.margin_block_end, mapping_context) == property_id:
return PropertyId.margin_block_end
if map_logical_alias_to_physical_property(PropertyId.margin_inline_start, mapping_context) == property_id:
return PropertyId.margin_inline_start
trap("VERIFY_NOT_REACHED")
.margin_right:
if map_logical_alias_to_physical_property(PropertyId.margin_block_start, mapping_context) == property_id:
return PropertyId.margin_block_start
if map_logical_alias_to_physical_property(PropertyId.margin_inline_end, mapping_context) == property_id:
return PropertyId.margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.margin_block_end, mapping_context) == property_id:
return PropertyId.margin_block_end
if map_logical_alias_to_physical_property(PropertyId.margin_inline_start, mapping_context) == property_id:
return PropertyId.margin_inline_start
trap("VERIFY_NOT_REACHED")
.margin_bottom:
if map_logical_alias_to_physical_property(PropertyId.margin_block_start, mapping_context) == property_id:
return PropertyId.margin_block_start
if map_logical_alias_to_physical_property(PropertyId.margin_inline_end, mapping_context) == property_id:
return PropertyId.margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.margin_block_end, mapping_context) == property_id:
return PropertyId.margin_block_end
if map_logical_alias_to_physical_property(PropertyId.margin_inline_start, mapping_context) == property_id:
return PropertyId.margin_inline_start
trap("VERIFY_NOT_REACHED")
.margin_left:
if map_logical_alias_to_physical_property(PropertyId.margin_block_start, mapping_context) == property_id:
return PropertyId.margin_block_start
if map_logical_alias_to_physical_property(PropertyId.margin_inline_end, mapping_context) == property_id:
return PropertyId.margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.margin_block_end, mapping_context) == property_id:
return PropertyId.margin_block_end
if map_logical_alias_to_physical_property(PropertyId.margin_inline_start, mapping_context) == property_id:
return PropertyId.margin_inline_start
trap("VERIFY_NOT_REACHED")
.max_width:
if map_logical_alias_to_physical_property(PropertyId.max_block_size, mapping_context) == property_id:
return PropertyId.max_block_size
if map_logical_alias_to_physical_property(PropertyId.max_inline_size, mapping_context) == property_id:
return PropertyId.max_inline_size
trap("VERIFY_NOT_REACHED")
.max_height:
if map_logical_alias_to_physical_property(PropertyId.max_block_size, mapping_context) == property_id:
return PropertyId.max_block_size
if map_logical_alias_to_physical_property(PropertyId.max_inline_size, mapping_context) == property_id:
return PropertyId.max_inline_size
trap("VERIFY_NOT_REACHED")
.min_width:
if map_logical_alias_to_physical_property(PropertyId.min_block_size, mapping_context) == property_id:
return PropertyId.min_block_size
if map_logical_alias_to_physical_property(PropertyId.min_inline_size, mapping_context) == property_id:
return PropertyId.min_inline_size
trap("VERIFY_NOT_REACHED")
.min_height:
if map_logical_alias_to_physical_property(PropertyId.min_block_size, mapping_context) == property_id:
return PropertyId.min_block_size
if map_logical_alias_to_physical_property(PropertyId.min_inline_size, mapping_context) == property_id:
return PropertyId.min_inline_size
trap("VERIFY_NOT_REACHED")
.overflow_x:
if map_logical_alias_to_physical_property(PropertyId.overflow_block, mapping_context) == property_id:
return PropertyId.overflow_block
if map_logical_alias_to_physical_property(PropertyId.overflow_inline, mapping_context) == property_id:
return PropertyId.overflow_inline
trap("VERIFY_NOT_REACHED")
.overflow_y:
if map_logical_alias_to_physical_property(PropertyId.overflow_block, mapping_context) == property_id:
return PropertyId.overflow_block
if map_logical_alias_to_physical_property(PropertyId.overflow_inline, mapping_context) == property_id:
return PropertyId.overflow_inline
trap("VERIFY_NOT_REACHED")
.overflow_clip_margin_top:
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_start
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_start
trap("VERIFY_NOT_REACHED")
.overflow_clip_margin_right:
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_start
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_start
trap("VERIFY_NOT_REACHED")
.overflow_clip_margin_bottom:
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_start
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_start
trap("VERIFY_NOT_REACHED")
.overflow_clip_margin_left:
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_start
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_block_end, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_block_end
if map_logical_alias_to_physical_property(PropertyId.overflow_clip_margin_inline_start, mapping_context) == property_id:
return PropertyId.overflow_clip_margin_inline_start
trap("VERIFY_NOT_REACHED")
.padding_top:
if map_logical_alias_to_physical_property(PropertyId.padding_block_start, mapping_context) == property_id:
return PropertyId.padding_block_start
if map_logical_alias_to_physical_property(PropertyId.padding_inline_end, mapping_context) == property_id:
return PropertyId.padding_inline_end
if map_logical_alias_to_physical_property(PropertyId.padding_block_end, mapping_context) == property_id:
return PropertyId.padding_block_end
if map_logical_alias_to_physical_property(PropertyId.padding_inline_start, mapping_context) == property_id:
return PropertyId.padding_inline_start
trap("VERIFY_NOT_REACHED")
.padding_right:
if map_logical_alias_to_physical_property(PropertyId.padding_block_start, mapping_context) == property_id:
return PropertyId.padding_block_start
if map_logical_alias_to_physical_property(PropertyId.padding_inline_end, mapping_context) == property_id:
return PropertyId.padding_inline_end
if map_logical_alias_to_physical_property(PropertyId.padding_block_end, mapping_context) == property_id:
return PropertyId.padding_block_end
if map_logical_alias_to_physical_property(PropertyId.padding_inline_start, mapping_context) == property_id:
return PropertyId.padding_inline_start
trap("VERIFY_NOT_REACHED")
.padding_bottom:
if map_logical_alias_to_physical_property(PropertyId.padding_block_start, mapping_context) == property_id:
return PropertyId.padding_block_start
if map_logical_alias_to_physical_property(PropertyId.padding_inline_end, mapping_context) == property_id:
return PropertyId.padding_inline_end
if map_logical_alias_to_physical_property(PropertyId.padding_block_end, mapping_context) == property_id:
return PropertyId.padding_block_end
if map_logical_alias_to_physical_property(PropertyId.padding_inline_start, mapping_context) == property_id:
return PropertyId.padding_inline_start
trap("VERIFY_NOT_REACHED")
.padding_left:
if map_logical_alias_to_physical_property(PropertyId.padding_block_start, mapping_context) == property_id:
return PropertyId.padding_block_start
if map_logical_alias_to_physical_property(PropertyId.padding_inline_end, mapping_context) == property_id:
return PropertyId.padding_inline_end
if map_logical_alias_to_physical_property(PropertyId.padding_block_end, mapping_context) == property_id:
return PropertyId.padding_block_end
if map_logical_alias_to_physical_property(PropertyId.padding_inline_start, mapping_context) == property_id:
return PropertyId.padding_inline_start
trap("VERIFY_NOT_REACHED")
.width:
if map_logical_alias_to_physical_property(PropertyId.block_size, mapping_context) == property_id:
return PropertyId.block_size
if map_logical_alias_to_physical_property(PropertyId.inline_size, mapping_context) == property_id:
return PropertyId.inline_size
trap("VERIFY_NOT_REACHED")
.height:
if map_logical_alias_to_physical_property(PropertyId.block_size, mapping_context) == property_id:
return PropertyId.block_size
if map_logical_alias_to_physical_property(PropertyId.inline_size, mapping_context) == property_id:
return PropertyId.inline_size
trap("VERIFY_NOT_REACHED")
_:
assert(logical_property_group_for_property(property_id) == none or property_is_logical_alias(property_id))
return property_id
## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::logical_property_group_for_property.
pub func logical_property_group_for_property(property_id: PropertyId) -> LogicalPropertyGroup?:
match property_id:
.border_top_color: return LogicalPropertyGroup.border_color
.border_right_color: return LogicalPropertyGroup.border_color
.border_bottom_color: return LogicalPropertyGroup.border_color
.border_left_color: return LogicalPropertyGroup.border_color
.border_block_start_color: return LogicalPropertyGroup.border_color
.border_inline_end_color: return LogicalPropertyGroup.border_color
.border_block_end_color: return LogicalPropertyGroup.border_color
.border_inline_start_color: return LogicalPropertyGroup.border_color
.border_top_left_radius: return LogicalPropertyGroup.border_radius
.border_bottom_left_radius: return LogicalPropertyGroup.border_radius
.border_top_right_radius: return LogicalPropertyGroup.border_radius
.border_bottom_right_radius: return LogicalPropertyGroup.border_radius
.border_start_start_radius: return LogicalPropertyGroup.border_radius
.border_start_end_radius: return LogicalPropertyGroup.border_radius
.border_end_start_radius: return LogicalPropertyGroup.border_radius
.border_end_end_radius: return LogicalPropertyGroup.border_radius
.border_top_style: return LogicalPropertyGroup.border_style
.border_right_style: return LogicalPropertyGroup.border_style
.border_bottom_style: return LogicalPropertyGroup.border_style
.border_left_style: return LogicalPropertyGroup.border_style
.border_block_start_style: return LogicalPropertyGroup.border_style
.border_inline_end_style: return LogicalPropertyGroup.border_style
.border_block_end_style: return LogicalPropertyGroup.border_style
.border_inline_start_style: return LogicalPropertyGroup.border_style
.border_top_width: return LogicalPropertyGroup.border_width
.border_right_width: return LogicalPropertyGroup.border_width
.border_bottom_width: return LogicalPropertyGroup.border_width
.border_left_width: return LogicalPropertyGroup.border_width
.border_block_start_width: return LogicalPropertyGroup.border_width
.border_inline_end_width: return LogicalPropertyGroup.border_width
.border_block_end_width: return LogicalPropertyGroup.border_width
.border_inline_start_width: return LogicalPropertyGroup.border_width
.corner_top_left_shape: return LogicalPropertyGroup.corner_shape
.corner_bottom_left_shape: return LogicalPropertyGroup.corner_shape
.corner_top_right_shape: return LogicalPropertyGroup.corner_shape
.corner_bottom_right_shape: return LogicalPropertyGroup.corner_shape
.corner_start_start_shape: return LogicalPropertyGroup.corner_shape
.corner_start_end_shape: return LogicalPropertyGroup.corner_shape
.corner_end_start_shape: return LogicalPropertyGroup.corner_shape
.corner_end_end_shape: return LogicalPropertyGroup.corner_shape
.top: return LogicalPropertyGroup.inset
.right: return LogicalPropertyGroup.inset
.bottom: return LogicalPropertyGroup.inset
.left: return LogicalPropertyGroup.inset
.inset_block_start: return LogicalPropertyGroup.inset
.inset_inline_end: return LogicalPropertyGroup.inset
.inset_block_end: return LogicalPropertyGroup.inset
.inset_inline_start: return LogicalPropertyGroup.inset
.margin_top: return LogicalPropertyGroup.margin
.margin_right: return LogicalPropertyGroup.margin
.margin_bottom: return LogicalPropertyGroup.margin
.margin_left: return LogicalPropertyGroup.margin
.margin_block_start: return LogicalPropertyGroup.margin
.margin_inline_end: return LogicalPropertyGroup.margin
.margin_block_end: return LogicalPropertyGroup.margin
.margin_inline_start: return LogicalPropertyGroup.margin
.max_width: return LogicalPropertyGroup.max_size
.max_height: return LogicalPropertyGroup.max_size
.max_block_size: return LogicalPropertyGroup.max_size
.max_inline_size: return LogicalPropertyGroup.max_size
.min_width: return LogicalPropertyGroup.min_size
.min_height: return LogicalPropertyGroup.min_size
.min_block_size: return LogicalPropertyGroup.min_size
.min_inline_size: return LogicalPropertyGroup.min_size
.overflow_x: return LogicalPropertyGroup.overflow
.overflow_y: return LogicalPropertyGroup.overflow
.overflow_block: return LogicalPropertyGroup.overflow
.overflow_inline: return LogicalPropertyGroup.overflow
.overflow_clip_margin_top: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_right: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_bottom: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_left: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_block_start: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_inline_end: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_block_end: return LogicalPropertyGroup.overflow_clip_margin
.overflow_clip_margin_inline_start: return LogicalPropertyGroup.overflow_clip_margin
.padding_top: return LogicalPropertyGroup.padding
.padding_right: return LogicalPropertyGroup.padding
.padding_bottom: return LogicalPropertyGroup.padding
.padding_left: return LogicalPropertyGroup.padding
.padding_block_start: return LogicalPropertyGroup.padding
.padding_inline_end: return LogicalPropertyGroup.padding
.padding_block_end: return LogicalPropertyGroup.padding
.padding_inline_start: return LogicalPropertyGroup.padding
.width: return LogicalPropertyGroup.size
.height: return LogicalPropertyGroup.size
.block_size: return LogicalPropertyGroup.size
.inline_size: return LogicalPropertyGroup.size
_: return none