Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-css

Source of release 0.5.1

0.5.1 / src / css_data / generated_property_id_2.lucb

#==============================================================================================
#
#   generated_property_id_2 - the CSS properties: values
#
#   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
#
#       Multiplicity, quirks, accepted keywords and the integer and number ranges; continued from
#       generated_property_id.
#
#       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_multiplicity.
pub func property_multiplicity(property_id: PropertyId) -> PropertyMultiplicity:
    match property_id:
        .animation: return PropertyMultiplicity.coordinating_list
        .animation_composition: return PropertyMultiplicity.coordinating_list
        .animation_delay: return PropertyMultiplicity.coordinating_list
        .animation_direction: return PropertyMultiplicity.coordinating_list
        .animation_duration: return PropertyMultiplicity.coordinating_list
        .animation_fill_mode: return PropertyMultiplicity.coordinating_list
        .animation_iteration_count: return PropertyMultiplicity.coordinating_list
        .animation_name: return PropertyMultiplicity.coordinating_list
        .animation_play_state: return PropertyMultiplicity.coordinating_list
        .animation_timeline: return PropertyMultiplicity.coordinating_list
        .animation_timing_function: return PropertyMultiplicity.coordinating_list
        .backdrop_filter: return PropertyMultiplicity.list
        .background: return PropertyMultiplicity.coordinating_list
        .background_attachment: return PropertyMultiplicity.coordinating_list
        .background_blend_mode: return PropertyMultiplicity.coordinating_list
        .background_clip: return PropertyMultiplicity.coordinating_list
        .background_image: return PropertyMultiplicity.coordinating_list
        .background_origin: return PropertyMultiplicity.coordinating_list
        .background_position: return PropertyMultiplicity.coordinating_list
        .background_position_x: return PropertyMultiplicity.coordinating_list
        .background_position_y: return PropertyMultiplicity.coordinating_list
        .background_repeat: return PropertyMultiplicity.coordinating_list
        .background_size: return PropertyMultiplicity.coordinating_list
        .box_shadow: return PropertyMultiplicity.list
        .counter_increment: return PropertyMultiplicity.list
        .counter_reset: return PropertyMultiplicity.list
        .counter_set: return PropertyMultiplicity.list
        .filter: return PropertyMultiplicity.list
        .font_family: return PropertyMultiplicity.list
        .font_feature_settings: return PropertyMultiplicity.list
        .font_variation_settings: return PropertyMultiplicity.list
        .mask: return PropertyMultiplicity.coordinating_list
        .mask_clip: return PropertyMultiplicity.coordinating_list
        .mask_composite: return PropertyMultiplicity.coordinating_list
        .mask_image: return PropertyMultiplicity.coordinating_list
        .mask_mode: return PropertyMultiplicity.coordinating_list
        .mask_origin: return PropertyMultiplicity.coordinating_list
        .mask_position: return PropertyMultiplicity.coordinating_list
        .mask_repeat: return PropertyMultiplicity.coordinating_list
        .mask_size: return PropertyMultiplicity.coordinating_list
        .quotes: return PropertyMultiplicity.list
        .scroll_timeline: return PropertyMultiplicity.coordinating_list
        .scroll_timeline_axis: return PropertyMultiplicity.coordinating_list
        .scroll_timeline_name: return PropertyMultiplicity.coordinating_list
        .transition: return PropertyMultiplicity.coordinating_list
        .transition_behavior: return PropertyMultiplicity.coordinating_list
        .transition_delay: return PropertyMultiplicity.coordinating_list
        .transition_duration: return PropertyMultiplicity.coordinating_list
        .transition_property: return PropertyMultiplicity.coordinating_list
        .transition_timing_function: return PropertyMultiplicity.coordinating_list
        .view_timeline: return PropertyMultiplicity.coordinating_list
        .view_timeline_axis: return PropertyMultiplicity.coordinating_list
        .view_timeline_inset: return PropertyMultiplicity.coordinating_list
        .view_timeline_name: return PropertyMultiplicity.coordinating_list
        .will_change: return PropertyMultiplicity.list
        _: return PropertyMultiplicity.single

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_is_single_valued.
pub func property_is_single_valued(property_id: PropertyId) -> bool:
    return not property_is_list_valued(property_id)

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_is_list_valued.
pub func property_is_list_valued(property_id: PropertyId) -> bool:
    match property_id:
        .animation: 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
        .backdrop_filter: return true
        .background: return true
        .background_attachment: return true
        .background_blend_mode: return true
        .background_clip: return true
        .background_image: return true
        .background_origin: return true
        .background_position: return true
        .background_position_x: return true
        .background_position_y: return true
        .background_repeat: return true
        .background_size: return true
        .box_shadow: return true
        .counter_increment: return true
        .counter_reset: return true
        .counter_set: return true
        .filter: return true
        .font_family: return true
        .font_feature_settings: return true
        .font_variation_settings: return true
        .mask: 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
        .quotes: return true
        .scroll_timeline: return true
        .scroll_timeline_axis: return true
        .scroll_timeline_name: return true
        .transition: return true
        .transition_behavior: return true
        .transition_delay: return true
        .transition_duration: return true
        .transition_property: return true
        .transition_timing_function: return true
        .view_timeline: return true
        .view_timeline_axis: return true
        .view_timeline_inset: return true
        .view_timeline_name: return true
        .will_change: return true
        _: return false

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_has_quirk.
pub func property_has_quirk(property_id: PropertyId, quirk: Quirk) -> bool:
    match property_id:
        .background_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .background_position:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_bottom_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .border_bottom_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .border_left_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .border_left_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_right_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .border_right_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_spacing:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_top_color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .border_top_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .border_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .bottom:
            match quirk:
                .unitless_length: return true
                _: return false
        .clip:
            match quirk:
                .unitless_length: return true
                _: return false
        .color:
            match quirk:
                .hashless_hex_color: return true
                _: return false
        .cx:
            match quirk:
                .unitless_length: return true
                _: return false
        .cy:
            match quirk:
                .unitless_length: return true
                _: return false
        .font_size:
            match quirk:
                .unitless_length: return true
                _: return false
        .height:
            match quirk:
                .unitless_length: return true
                _: return false
        .left:
            match quirk:
                .unitless_length: return true
                _: return false
        .letter_spacing:
            match quirk:
                .unitless_length: return true
                _: return false
        .margin:
            match quirk:
                .unitless_length: return true
                _: return false
        .margin_bottom:
            match quirk:
                .unitless_length: return true
                _: return false
        .margin_left:
            match quirk:
                .unitless_length: return true
                _: return false
        .margin_right:
            match quirk:
                .unitless_length: return true
                _: return false
        .margin_top:
            match quirk:
                .unitless_length: return true
                _: return false
        .max_height:
            match quirk:
                .unitless_length: return true
                _: return false
        .max_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .min_height:
            match quirk:
                .unitless_length: return true
                _: return false
        .min_width:
            match quirk:
                .unitless_length: return true
                _: return false
        .padding:
            match quirk:
                .unitless_length: return true
                _: return false
        .padding_bottom:
            match quirk:
                .unitless_length: return true
                _: return false
        .padding_left:
            match quirk:
                .unitless_length: return true
                _: return false
        .padding_right:
            match quirk:
                .unitless_length: return true
                _: return false
        .padding_top:
            match quirk:
                .unitless_length: return true
                _: return false
        .r:
            match quirk:
                .unitless_length: return true
                _: return false
        .right:
            match quirk:
                .unitless_length: return true
                _: return false
        .rx:
            match quirk:
                .unitless_length: return true
                _: return false
        .ry:
            match quirk:
                .unitless_length: return true
                _: return false
        .text_indent:
            match quirk:
                .unitless_length: return true
                _: return false
        .top:
            match quirk:
                .unitless_length: return true
                _: return false
        .vertical_align:
            match quirk:
                .unitless_length: return true
                _: return false
        .width:
            match quirk:
                .unitless_length: return true
                _: return false
        .word_spacing:
            match quirk:
                .unitless_length: return true
                _: return false
        .x:
            match quirk:
                .unitless_length: return true
                _: return false
        .y:
            match quirk:
                .unitless_length: return true
                _: return false
        _: return false

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_accepts_keyword.
pub func property_accepts_keyword(property_id: PropertyId, keyword: Keyword) -> bool:
    match property_id:
        .webkit_text_fill_color:
            return false
        .accent_color:
            match keyword:
                .auto: return true
                _:
                    return false
        .align_content:
            if keyword_to_align_content(keyword) != none:
                return true
            return false
        .align_items:
            if keyword_to_align_items(keyword) != none:
                return true
            return false
        .align_self:
            if keyword_to_align_self(keyword) != none:
                return true
            return false
        .all:
            return false
        .anchor_name:
            match keyword:
                .none_: return true
                _:
                    return false
        .anchor_scope:
            match keyword:
                .none_: return true
                .all: return true
                _:
                    return false
        .animation:
            return false
        .animation_composition:
            if keyword_to_animation_composition(keyword) != none:
                return true
            return false
        .animation_delay:
            return false
        .animation_direction:
            match keyword:
                .normal: return true
                .reverse: return true
                .alternate: return true
                .alternate_reverse: return true
                _:
                    return false
        .animation_duration:
            match keyword:
                .auto: return true
                _:
                    return false
        .animation_fill_mode:
            match keyword:
                .none_: return true
                .forwards: return true
                .backwards: return true
                .both: return true
                _:
                    return false
        .animation_iteration_count:
            match keyword:
                .infinite: return true
                _:
                    return false
        .animation_name:
            match keyword:
                .none_: return true
                _:
                    return false
        .animation_play_state:
            match keyword:
                .running: return true
                .paused: return true
                _:
                    return false
        .animation_timeline:
            match keyword:
                .auto: return true
                .none_: return true
                _:
                    return false
        .animation_timing_function:
            if keyword_to_easing_keyword(keyword) != none:
                return true
            return false
        .appearance:
            if keyword_to_appearance(keyword) != none:
                return true
            return false
        .aspect_ratio:
            match keyword:
                .auto: return true
                _:
                    return false
        .backdrop_filter:
            match keyword:
                .none_: return true
                _:
                    return false
        .background:
            return false
        .background_attachment:
            if keyword_to_background_attachment(keyword) != none:
                return true
            return false
        .background_blend_mode:
            if keyword_to_mix_blend_mode(keyword) != none:
                return true
            return false
        .background_clip:
            if keyword_to_background_box(keyword) != none:
                return true
            return false
        .background_color:
            return false
        .background_image:
            match keyword:
                .none_: return true
                _:
                    return false
        .background_origin:
            if keyword_to_background_box(keyword) != none:
                return true
            return false
        .background_position:
            return false
        .background_position_x:
            match keyword:
                .center: return true
                .left: return true
                .right: return true
                _:
                    return false
        .background_position_y:
            match keyword:
                .center: return true
                .bottom: return true
                .top: return true
                _:
                    return false
        .background_repeat:
            match keyword:
                .repeat_x: return true
                .repeat_y: return true
                _:
                    if keyword_to_repetition(keyword) != none:
                        return true
                    return false
        .background_size:
            match keyword:
                .auto: return true
                .cover: return true
                .contain: return true
                _:
                    return false
        .block_size:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .border:
            return false
        .border_block:
            return false
        .border_block_color:
            return false
        .border_block_end:
            return false
        .border_block_end_color:
            return false
        .border_block_end_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_block_end_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_block_start:
            return false
        .border_block_start_color:
            return false
        .border_block_start_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_block_start_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_block_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_block_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_bottom:
            return false
        .border_bottom_color:
            return false
        .border_bottom_left_radius:
            return false
        .border_bottom_right_radius:
            return false
        .border_bottom_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_bottom_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_collapse:
            if keyword_to_border_collapse(keyword) != none:
                return true
            return false
        .border_color:
            return false
        .border_end_end_radius:
            return false
        .border_end_start_radius:
            return false
        .border_image:
            return false
        .border_image_outset:
            return false
        .border_image_repeat:
            if keyword_to_border_image_repeat(keyword) != none:
                return true
            return false
        .border_image_slice:
            match keyword:
                .fill: return true
                _:
                    return false
        .border_image_source:
            match keyword:
                .none_: return true
                _:
                    return false
        .border_image_width:
            match keyword:
                .auto: return true
                _:
                    return false
        .border_inline:
            return false
        .border_inline_color:
            return false
        .border_inline_end:
            return false
        .border_inline_end_color:
            return false
        .border_inline_end_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_inline_end_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_inline_start:
            return false
        .border_inline_start_color:
            return false
        .border_inline_start_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_inline_start_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_inline_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_inline_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_left:
            return false
        .border_left_color:
            return false
        .border_left_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_left_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_radius:
            return false
        .border_right:
            return false
        .border_right_color:
            return false
        .border_right_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_right_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_spacing:
            return false
        .border_start_end_radius:
            return false
        .border_start_start_radius:
            return false
        .border_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_top:
            return false
        .border_top_color:
            return false
        .border_top_left_radius:
            return false
        .border_top_right_radius:
            return false
        .border_top_style:
            if keyword_to_line_style(keyword) != none:
                return true
            return false
        .border_top_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .border_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .bottom:
            match keyword:
                .auto: return true
                _:
                    return false
        .box_shadow:
            match keyword:
                .none_: return true
                _:
                    return false
        .box_sizing:
            if keyword_to_box_sizing(keyword) != none:
                return true
            return false
        .caption_side:
            if keyword_to_caption_side(keyword) != none:
                return true
            return false
        .caret_color:
            match keyword:
                .auto: return true
                _:
                    return false
        .clear:
            if keyword_to_clear(keyword) != none:
                return true
            return false
        .clip:
            match keyword:
                .auto: return true
                _:
                    return false
        .clip_path:
            match keyword:
                .none_: return true
                _:
                    return false
        .clip_rule:
            if keyword_to_fill_rule(keyword) != none:
                return true
            return false
        .color:
            return false
        .color_interpolation:
            if keyword_to_color_interpolation(keyword) != none:
                return true
            return false
        .color_scheme:
            match keyword:
                .normal: return true
                .light: return true
                .dark: return true
                _:
                    return false
        .column_count:
            match keyword:
                .auto: return true
                _:
                    return false
        .column_gap:
            match keyword:
                .normal: return true
                _:
                    return false
        .column_height:
            match keyword:
                .auto: return true
                _:
                    return false
        .column_span:
            if keyword_to_column_span(keyword) != none:
                return true
            return false
        .column_width:
            match keyword:
                .auto: return true
                _:
                    return false
        .columns:
            return false
        .contain:
            if keyword_to_contain(keyword) != none:
                return true
            return false
        .container_type:
            match keyword:
                .normal: return true
                .size: return true
                .inline_size: return true
                .scroll_state: return true
                _:
                    return false
        .content:
            match keyword:
                .normal: return true
                .none_: return true
                .open_quote: return true
                .close_quote: return true
                .no_open_quote: return true
                .no_close_quote: return true
                _:
                    return false
        .content_visibility:
            if keyword_to_content_visibility(keyword) != none:
                return true
            return false
        .corner_block_end_shape:
            return false
        .corner_block_start_shape:
            return false
        .corner_bottom_left_shape:
            return false
        .corner_bottom_right_shape:
            return false
        .corner_bottom_shape:
            return false
        .corner_end_end_shape:
            return false
        .corner_end_start_shape:
            return false
        .corner_inline_end_shape:
            return false
        .corner_inline_start_shape:
            return false
        .corner_left_shape:
            return false
        .corner_right_shape:
            return false
        .corner_shape:
            return false
        .corner_start_end_shape:
            return false
        .corner_start_start_shape:
            return false
        .corner_top_left_shape:
            return false
        .corner_top_right_shape:
            return false
        .corner_top_shape:
            return false
        .counter_increment:
            match keyword:
                .none_: return true
                _:
                    return false
        .counter_reset:
            match keyword:
                .none_: return true
                _:
                    return false
        .counter_set:
            match keyword:
                .none_: return true
                _:
                    return false
        .cursor:
            if keyword_to_cursor_predefined(keyword) != none:
                return true
            return false
        .cx:
            return false
        .cy:
            return false
        .direction:
            if keyword_to_direction(keyword) != none:
                return true
            return false
        .display:
            match keyword:
                .list_item: return true
                _:
                    if keyword_to_display_outside(keyword) != none:
                        return true
                    if keyword_to_display_inside(keyword) != none:
                        return true
                    if keyword_to_display_internal(keyword) != none:
                        return true
                    if keyword_to_display_box(keyword) != none:
                        return true
                    if keyword_to_display_legacy(keyword) != none:
                        return true
                    return false
        .dominant_baseline:
            match keyword:
                .auto: return true
                _:
                    if keyword_to_baseline_metric(keyword) != none:
                        return true
                    return false
        .empty_cells:
            if keyword_to_empty_cells(keyword) != none:
                return true
            return false
        .fill:
            return false
        .fill_opacity:
            return false
        .fill_rule:
            if keyword_to_fill_rule(keyword) != none:
                return true
            return false
        .filter:
            match keyword:
                .none_: return true
                _:
                    return false
        .flex:
            match keyword:
                .none_: return true
                _:
                    return false
        .flex_basis:
            match keyword:
                .auto: return true
                .content: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .flex_direction:
            if keyword_to_flex_direction(keyword) != none:
                return true
            return false
        .flex_flow:
            return false
        .flex_grow:
            return false
        .flex_shrink:
            return false
        .flex_wrap:
            if keyword_to_flex_wrap(keyword) != none:
                return true
            return false
        .float:
            if keyword_to_float(keyword) != none:
                return true
            return false
        .flood_color:
            return false
        .flood_opacity:
            return false
        .font:
            return false
        .font_family:
            return false
        .font_feature_settings:
            match keyword:
                .normal: return true
                .on: return true
                .off: return true
                _:
                    return false
        .font_kerning:
            if keyword_to_font_kerning(keyword) != none:
                return true
            return false
        .font_language_override:
            match keyword:
                .normal: return true
                _:
                    return false
        .font_optical_sizing:
            if keyword_to_font_optical_sizing(keyword) != none:
                return true
            return false
        .font_size:
            match keyword:
                .math: return true
                _:
                    if keyword_to_absolute_size(keyword) != none:
                        return true
                    if keyword_to_relative_size(keyword) != none:
                        return true
                    return false
        .font_style:
            return false
        .font_variant:
            return false
        .font_variant_alternates:
            match keyword:
                .normal: return true
                _:
                    return false
        .font_variant_caps:
            if keyword_to_font_variant_caps(keyword) != none:
                return true
            return false
        .font_variant_east_asian:
            match keyword:
                .normal: return true
                _:
                    return false
        .font_variant_emoji:
            if keyword_to_font_variant_emoji(keyword) != none:
                return true
            return false
        .font_variant_ligatures:
            match keyword:
                .normal: return true
                .none_: return true
                _:
                    return false
        .font_variant_numeric:
            match keyword:
                .normal: return true
                _:
                    return false
        .font_variant_position:
            if keyword_to_font_variant_position(keyword) != none:
                return true
            return false
        .font_variation_settings:
            match keyword:
                .normal: return true
                _:
                    return false
        .font_weight:
            match keyword:
                .bold: return true
                .bolder: return true
                .lighter: return true
                .normal: return true
                _:
                    return false
        .font_width:
            if keyword_to_font_width(keyword) != none:
                return true
            return false
        .gap:
            match keyword:
                .normal: return true
                _:
                    return false
        .grid:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_area:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_auto_columns:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_auto_flow:
            return false
        .grid_auto_rows:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_column:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_column_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_column_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_row:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_row_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_row_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_template:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_template_areas:
            match keyword:
                .none_: return true
                _:
                    return false
        .grid_template_columns:
            match keyword:
                .auto: return true
                _:
                    return false
        .grid_template_rows:
            match keyword:
                .auto: return true
                _:
                    return false
        .height:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .image_rendering:
            if keyword_to_image_rendering(keyword) != none:
                return true
            return false
        .inline_size:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .inset:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_block:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_block_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_block_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_inline:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_inline_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .inset_inline_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .isolation:
            if keyword_to_isolation(keyword) != none:
                return true
            return false
        .justify_content:
            if keyword_to_justify_content(keyword) != none:
                return true
            return false
        .justify_items:
            if keyword_to_justify_items(keyword) != none:
                return true
            return false
        .justify_self:
            if keyword_to_justify_self(keyword) != none:
                return true
            return false
        .left:
            match keyword:
                .auto: return true
                _:
                    return false
        .letter_spacing:
            match keyword:
                .normal: return true
                _:
                    return false
        .line_height:
            match keyword:
                .normal: return true
                _:
                    return false
        .list_style:
            return false
        .list_style_image:
            match keyword:
                .none_: return true
                _:
                    return false
        .list_style_position:
            if keyword_to_list_style_position(keyword) != none:
                return true
            return false
        .list_style_type:
            match keyword:
                .none_: return true
                _:
                    return false
        .margin:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_block:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_block_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_block_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_bottom:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_inline:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_inline_end:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_inline_start:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_left:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_right:
            match keyword:
                .auto: return true
                _:
                    return false
        .margin_top:
            match keyword:
                .auto: return true
                _:
                    return false
        .mask:
            return false
        .mask_clip:
            match keyword:
                .no_clip: return true
                _:
                    if keyword_to_coord_box(keyword) != none:
                        return true
                    return false
        .mask_composite:
            if keyword_to_compositing_operator(keyword) != none:
                return true
            return false
        .mask_image:
            match keyword:
                .none_: return true
                _:
                    return false
        .mask_mode:
            if keyword_to_masking_mode(keyword) != none:
                return true
            return false
        .mask_origin:
            if keyword_to_coord_box(keyword) != none:
                return true
            return false
        .mask_position:
            return false
        .mask_repeat:
            match keyword:
                .repeat_x: return true
                .repeat_y: return true
                _:
                    if keyword_to_repetition(keyword) != none:
                        return true
                    return false
        .mask_size:
            match keyword:
                .auto: return true
                .cover: return true
                .contain: return true
                _:
                    return false
        .mask_type:
            if keyword_to_mask_type(keyword) != none:
                return true
            return false
        .math_depth:
            match keyword:
                .auto_add: return true
                _:
                    return false
        .math_shift:
            if keyword_to_math_shift(keyword) != none:
                return true
            return false
        .math_style:
            if keyword_to_math_style(keyword) != none:
                return true
            return false
        .max_block_size:
            match keyword:
                .max_content: return true
                .min_content: return true
                .none_: return true
                _:
                    return false
        .max_height:
            match keyword:
                .max_content: return true
                .min_content: return true
                .none_: return true
                _:
                    return false
        .max_inline_size:
            match keyword:
                .max_content: return true
                .min_content: return true
                .none_: return true
                _:
                    return false
        .max_width:
            match keyword:
                .max_content: return true
                .min_content: return true
                .none_: return true
                _:
                    return false
        .min_block_size:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .min_height:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .min_inline_size:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .min_width:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .mix_blend_mode:
            if keyword_to_mix_blend_mode(keyword) != none:
                return true
            return false
        .object_fit:
            if keyword_to_object_fit(keyword) != none:
                return true
            return false
        .object_position:
            return false
        .opacity:
            return false
        .order:
            return false
        .orphans:
            return false
        .outline:
            return false
        .outline_color:
            return false
        .outline_offset:
            return false
        .outline_style:
            if keyword_to_outline_style(keyword) != none:
                return true
            return false
        .outline_width:
            if keyword_to_line_width(keyword) != none:
                return true
            return false
        .overflow:
            match keyword:
                .overlay: return true
                _:
                    if keyword_to_overflow(keyword) != none:
                        return true
                    return false
        .overflow_block:
            match keyword:
                .overlay: return true
                _:
                    if keyword_to_overflow(keyword) != none:
                        return true
                    return false
        .overflow_clip_margin:
            return false
        .overflow_clip_margin_block:
            return false
        .overflow_clip_margin_block_end:
            return false
        .overflow_clip_margin_block_start:
            return false
        .overflow_clip_margin_bottom:
            return false
        .overflow_clip_margin_inline:
            return false
        .overflow_clip_margin_inline_end:
            return false
        .overflow_clip_margin_inline_start:
            return false
        .overflow_clip_margin_left:
            return false
        .overflow_clip_margin_right:
            return false
        .overflow_clip_margin_top:
            return false
        .overflow_inline:
            match keyword:
                .overlay: return true
                _:
                    if keyword_to_overflow(keyword) != none:
                        return true
                    return false
        .overflow_wrap:
            match keyword:
                .anywhere: return true
                .break_word: return true
                .normal: return true
                _:
                    return false
        .overflow_x:
            match keyword:
                .overlay: return true
                _:
                    if keyword_to_overflow(keyword) != none:
                        return true
                    return false
        .overflow_y:
            match keyword:
                .overlay: return true
                _:
                    if keyword_to_overflow(keyword) != none:
                        return true
                    return false
        .padding:
            return false
        .padding_block:
            return false
        .padding_block_end:
            return false
        .padding_block_start:
            return false
        .padding_bottom:
            return false
        .padding_inline:
            return false
        .padding_inline_end:
            return false
        .padding_inline_start:
            return false
        .padding_left:
            return false
        .padding_right:
            return false
        .padding_top:
            return false
        .paint_order:
            match keyword:
                .normal: return true
                _:
                    if keyword_to_paint_order(keyword) != none:
                        return true
                    return false
        .perspective:
            match keyword:
                .none_: return true
                _:
                    return false
        .perspective_origin:
            return false
        .place_content:
            return false
        .place_items:
            return false
        .place_self:
            return false
        .pointer_events:
            if keyword_to_pointer_events(keyword) != none:
                return true
            return false
        .position:
            if keyword_to_positioning(keyword) != none:
                return true
            return false
        .position_anchor:
            match keyword:
                .normal: return true
                .none_: return true
                .auto: return true
                _:
                    return false
        .position_area:
            match keyword:
                .none_: return true
                _:
                    if keyword_to_position_area(keyword) != none:
                        return true
                    return false
        .position_try_fallbacks:
            match keyword:
                .none_: return true
                _:
                    if keyword_to_try_tactic(keyword) != none:
                        return true
                    return false
        .position_try_order:
            match keyword:
                .normal: return true
                _:
                    if keyword_to_try_order(keyword) != none:
                        return true
                    return false
        .position_visibility:
            match keyword:
                .always: return true
                .anchors_valid: return true
                .anchors_visible: return true
                .no_overflow: return true
                _:
                    return false
        .quotes:
            match keyword:
                .auto: return true
                .none_: return true
                _:
                    return false
        .r:
            return false
        .resize:
            if keyword_to_resize(keyword) != none:
                return true
            return false
        .right:
            match keyword:
                .auto: return true
                _:
                    return false
        .rotate:
            return false
        .row_gap:
            match keyword:
                .normal: return true
                _:
                    return false
        .rx:
            match keyword:
                .auto: return true
                _:
                    return false
        .ry:
            match keyword:
                .auto: return true
                _:
                    return false
        .scale:
            return false
        .scroll_behavior:
            match keyword:
                .auto: return true
                .smooth: return true
                _:
                    return false
        .scroll_timeline:
            return false
        .scroll_timeline_axis:
            if keyword_to_axis(keyword) != none:
                return true
            return false
        .scroll_timeline_name:
            match keyword:
                .none_: return true
                _:
                    return false
        .scrollbar_color:
            return false
        .scrollbar_gutter:
            return false
        .scrollbar_width:
            match keyword:
                .auto: return true
                .thin: return true
                .none_: return true
                _:
                    if keyword_to_scrollbar_width(keyword) != none:
                        return true
                    return false
        .shape_image_threshold:
            return false
        .shape_margin:
            return false
        .shape_outside:
            return false
        .shape_rendering:
            if keyword_to_shape_rendering(keyword) != none:
                return true
            return false
        .stop_color:
            return false
        .stop_opacity:
            return false
        .stroke:
            return false
        .stroke_dasharray:
            return false
        .stroke_dashoffset:
            return false
        .stroke_linecap:
            if keyword_to_stroke_linecap(keyword) != none:
                return true
            return false
        .stroke_linejoin:
            if keyword_to_stroke_linejoin(keyword) != none:
                return true
            return false
        .stroke_miterlimit:
            return false
        .stroke_opacity:
            return false
        .stroke_width:
            return false
        .tab_size:
            return false
        .table_layout:
            if keyword_to_table_layout(keyword) != none:
                return true
            return false
        .text_align:
            if keyword_to_text_align(keyword) != none:
                return true
            return false
        .text_anchor:
            if keyword_to_text_anchor(keyword) != none:
                return true
            return false
        .text_decoration:
            return false
        .text_decoration_color:
            return false
        .text_decoration_line:
            if keyword_to_text_decoration_line(keyword) != none:
                return true
            return false
        .text_decoration_skip_ink:
            if keyword_to_text_decoration_skip_ink(keyword) != none:
                return true
            return false
        .text_decoration_style:
            if keyword_to_text_decoration_style(keyword) != none:
                return true
            return false
        .text_decoration_thickness:
            match keyword:
                .auto: return true
                .from_font: return true
                _:
                    return false
        .text_indent:
            match keyword:
                .each_line: return true
                .hanging: return true
                _:
                    return false
        .text_justify:
            match keyword:
                .distribute: return true
                _:
                    if keyword_to_text_justify(keyword) != none:
                        return true
                    return false
        .text_overflow:
            if keyword_to_text_overflow(keyword) != none:
                return true
            return false
        .text_rendering:
            if keyword_to_text_rendering(keyword) != none:
                return true
            return false
        .text_shadow:
            match keyword:
                .none_: return true
                _:
                    return false
        .text_transform:
            if keyword_to_text_transform(keyword) != none:
                return true
            return false
        .text_underline_offset:
            match keyword:
                .auto: return true
                _:
                    return false
        .text_underline_position:
            if keyword_to_text_underline_position_horizontal(keyword) != none:
                return true
            if keyword_to_text_underline_position_vertical(keyword) != none:
                return true
            return false
        .text_wrap:
            return false
        .text_wrap_mode:
            if keyword_to_text_wrap_mode(keyword) != none:
                return true
            return false
        .text_wrap_style:
            if keyword_to_text_wrap_style(keyword) != none:
                return true
            return false
        .timeline_scope:
            return false
        .top:
            match keyword:
                .auto: return true
                _:
                    return false
        .touch_action:
            if keyword_to_touch_action(keyword) != none:
                return true
            return false
        .transform:
            match keyword:
                .none_: return true
                _:
                    return false
        .transform_box:
            if keyword_to_transform_box(keyword) != none:
                return true
            return false
        .transform_origin:
            match keyword:
                .bottom: return true
                .center: return true
                .left: return true
                .right: return true
                .top: return true
                _:
                    return false
        .transform_style:
            match keyword:
                .flat: return true
                .preserve3_d: return true
                _:
                    return false
        .transition:
            return false
        .transition_behavior:
            if keyword_to_transition_behavior(keyword) != none:
                return true
            return false
        .transition_delay:
            return false
        .transition_duration:
            return false
        .transition_property:
            match keyword:
                .none_: return true
                _:
                    return false
        .transition_timing_function:
            if keyword_to_easing_keyword(keyword) != none:
                return true
            return false
        .translate:
            return false
        .unicode_bidi:
            if keyword_to_unicode_bidi(keyword) != none:
                return true
            return false
        .user_select:
            if keyword_to_user_select(keyword) != none:
                return true
            return false
        .vertical_align:
            if keyword_to_vertical_align(keyword) != none:
                return true
            return false
        .view_timeline:
            return false
        .view_timeline_axis:
            if keyword_to_axis(keyword) != none:
                return true
            return false
        .view_timeline_inset:
            return false
        .view_timeline_name:
            match keyword:
                .none_: return true
                _:
                    return false
        .view_transition_name:
            match keyword:
                .none_: return true
                _:
                    return false
        .visibility:
            if keyword_to_visibility(keyword) != none:
                return true
            return false
        .white_space:
            if keyword_to_white_space(keyword) != none:
                return true
            return false
        .white_space_collapse:
            if keyword_to_white_space_collapse(keyword) != none:
                return true
            return false
        .white_space_trim:
            match keyword:
                .none_: return true
                .discard_before: return true
                .discard_after: return true
                .discard_inner: return true
                _:
                    return false
        .widows:
            return false
        .width:
            match keyword:
                .auto: return true
                .max_content: return true
                .min_content: return true
                _:
                    return false
        .will_change:
            match keyword:
                .auto: return true
                .scroll_position: return true
                .contents: return true
                _:
                    return false
        .word_break:
            match keyword:
                .normal: return true
                .keep_all: return true
                .break_all: return true
                .break_word: return true
                _:
                    return false
        .word_spacing:
            match keyword:
                .normal: return true
                _:
                    return false
        .writing_mode:
            if keyword_to_writing_mode(keyword) != none:
                return true
            return false
        .x:
            return false
        .y:
            return false
        .z_index:
            match keyword:
                .auto: return true
                _:
                    return false
        _: return false

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::resolve_legacy_value_alias.
pub func resolve_legacy_value_alias(property_id: PropertyId, keyword: Keyword) -> Keyword?:
    match property_id:
        .overflow:
            match keyword:
                .overlay: return Keyword.auto
                _: return none
        .overflow_block:
            match keyword:
                .overlay: return Keyword.auto
                _: return none
        .overflow_inline:
            match keyword:
                .overlay: return Keyword.auto
                _: return none
        .overflow_x:
            match keyword:
                .overlay: return Keyword.auto
                _: return none
        .overflow_y:
            match keyword:
                .overlay: return Keyword.auto
                _: return none
        .text_justify:
            match keyword:
                .distribute: return Keyword.inter_character
                _: return none
        _: return none

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_custom_ident_blacklist.
pub func property_custom_ident_blacklist(property_id: PropertyId) -> ak.Vector[ak.StringView]:
    var blacklist: ak.Vector[ak.StringView]
    match property_id:
        .animation_name:
            ak.vector_construct_opaque(&blacklist, [ak.sv("none")])
            return blacklist
        .color_scheme:
            ak.vector_construct_opaque(&blacklist, [ak.sv("normal"), ak.sv("light"), ak.sv("dark"), ak.sv("only")])
            return blacklist
        .counter_increment:
            ak.vector_construct_opaque(&blacklist, [ak.sv("none")])
            return blacklist
        .counter_reset:
            ak.vector_construct_opaque(&blacklist, [ak.sv("none")])
            return blacklist
        .counter_set:
            ak.vector_construct_opaque(&blacklist, [ak.sv("none")])
            return blacklist
        .grid_area:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_column:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_column_end:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_column_start:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_row:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_row_end:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .grid_row_start:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("span")])
            return blacklist
        .transition_property:
            ak.vector_construct_opaque(&blacklist, [ak.sv("none")])
            return blacklist
        .view_transition_name:
            ak.vector_construct_opaque(&blacklist, [ak.sv("auto"), ak.sv("none")])
            return blacklist
        .will_change:
            ak.vector_construct_opaque(&blacklist, [ak.sv("all"), ak.sv("auto"), ak.sv("contents"), ak.sv("none"), ak.sv("scroll-position"), ak.sv("will-change")])
            return blacklist
        _: return blacklist

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_maximum_value_count.
pub func property_maximum_value_count(property_id: PropertyId) -> usize:
    match property_id:
        .background_position: return 4
        .background_repeat: return 2
        .background_size: return 2
        .block_size: return 1
        .border_block_end_color: return 1
        .border_block_end_style: return 1
        .border_block_end_width: return 1
        .border_block_start_color: return 1
        .border_block_start_style: return 1
        .border_block_start_width: return 1
        .border_bottom_left_radius: return 2
        .border_bottom_right_radius: return 2
        .border_end_end_radius: return 1
        .border_end_start_radius: return 1
        .border_image_outset: return 4
        .border_image_repeat: return 2
        .border_image_width: return 4
        .border_inline_end_color: return 1
        .border_inline_end_style: return 1
        .border_inline_end_width: return 1
        .border_inline_start_color: return 1
        .border_inline_start_style: return 1
        .border_inline_start_width: return 1
        .border_spacing: return 2
        .border_start_end_radius: return 1
        .border_start_start_radius: return 1
        .border_top_left_radius: return 2
        .border_top_right_radius: return 2
        .display: return 3
        .grid_template_columns: return 4
        .grid_template_rows: return 4
        .inline_size: return 1
        .inset_block_end: return 1
        .inset_block_start: return 1
        .inset_inline_end: return 1
        .inset_inline_start: return 1
        .mask_repeat: return 2
        .mask_size: return 2
        .touch_action: return 2
        .transform_origin: return 3
        _: return 1

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_accepts_integer.
pub func property_accepts_integer(property_id: PropertyId, value: i64) -> bool:
    match property_id:
        .column_count: return value >= 1
        .counter_increment: return true
        .counter_reset: return true
        .counter_set: return true
        .font_feature_settings: return value >= 0
        .math_depth: return true
        .order: return true
        .orphans: return value >= 1
        .widows: return value >= 1
        .z_index: return true
        _: return false

## Ported from Build/Libraries/LibWeb/CSS/PropertyID.cpp Web::CSS::property_accepts_number.
pub func property_accepts_number(property_id: PropertyId, value: f64) -> bool:
    match property_id:
        .animation_iteration_count: return value >= 0.0
        .border_image_outset: return value >= 0.0
        .border_image_slice: return value >= 0.0
        .border_image_width: return value >= 0.0
        .cursor: return true
        .flex_grow: return value >= 0.0
        .flex_shrink: return value >= 0.0
        .font_variation_settings: return true
        .font_weight: return value >= 1.0 and value <= 1000.0
        .line_height: return value >= 0.0
        .stroke_dashoffset: return value >= 0.0
        .stroke_miterlimit: return value >= 0.0
        .stroke_width: return value >= 0.0
        .tab_size: return value >= 0.0
        _: return false