Sign in

    mizchi/css/parser does not have a README file

    AnimationShorthand

    The result of parsing the animation shorthand: parallel longhand lists.

    ParseResult

    Parse result with diagnostics

    TransitionShorthand

    pub struct TransitionShorthand {
    properties : Array[String]
    durations : Array[Double]
    timing_functions : Array[
    Easing
    ]
    delays : Array[Double]
    }

    The result of parsing the transition shorthand: parallel longhand lists.

    parse_animation_name_from_string

    fn parse_animation_name_from_string(value : String) -> Array[String]

    parse_animation_shorthand

    fn parse_animation_shorthand(tokens : ArrayView[
    Token
    ]) -> AnimationShorthand

    Parse the animation shorthand tokens into parallel longhand lists.

    parse_animation_shorthand_from_string

    fn parse_animation_shorthand_from_string(value : String) -> AnimationShorthand

    Parse the animation shorthand into parallel longhand lists.

    parse_direction_list_from_string

    fn parse_direction_list_from_string(value : String) -> Array[
    AnimationDirection
    ]

    parse_easing_list_from_string

    fn parse_easing_list_from_string(value : String) -> Array[
    Easing
    ]

    parse_fill_mode_list_from_string

    fn parse_fill_mode_list_from_string(value : String) -> Array[
    AnimationFillMode
    ]

    parse_grid_area_shorthand_from_string

    Parse a grid-area shorthand from a raw string.

    parse_grid_line_shorthand_from_string

    fn parse_grid_line_shorthand_from_string(value : String) -> (
    GridPlacement
    ,
    GridPlacement
    )

    Parse a grid-column / grid-row shorthand from a raw string.

    parse_grid_placement_from_string

    fn parse_grid_placement_from_string(value : String) ->
    GridPlacement

    Parse a single <grid-line> from a raw string.

    parse_grid_template_areas_form_from_string

    fn parse_grid_template_areas_form_from_string(value : String) -> (Array[String], Array[
    TrackSizingFunction
    ], Array[Array[String]], Array[
    TrackSizingFunction
    ], Array[Array[String]])?

    Parse the grid-template / grid areas form from a raw string. Returns (areas, rows, row_line_names, cols, col_line_names) or None when the value is not the areas form.

    parse_grid_template_axis_from_string

    Parse one grid template axis from a raw string, detecting subgrid/masonry. Returns the axis kind, the explicit tracks, and the line names.

    parse_grid_template_track_list_from_string

    fn parse_grid_template_track_list_from_string(value : String) -> (Array[
    TrackSizingFunction
    ], Array[Array[String]])

    Parse grid-template-columns or grid-template-rows from a raw string, returning both the track sizing functions and the named lines (index = grid line, length = tracks + 1).

    parse_grid_template_tracks_from_string

    fn parse_grid_template_tracks_from_string(value : String) -> Array[
    TrackSizingFunction
    ]

    Parse grid-template-columns or grid-template-rows from a raw string

    parse_inline_style

    fn parse_inline_style(css : String) ->
    Style

    Parse inline CSS style string and return a Style object e.g., "width: 100px; height: 50px; display: flex"

    parse_iteration_count_list_from_string

    fn parse_iteration_count_list_from_string(value : String) -> Array[
    AnimationIterationCount
    ]

    parse_play_state_list_from_string

    fn parse_play_state_list_from_string(value : String) -> Array[
    AnimationPlayState
    ]

    parse_rotate_property_from_string

    fn parse_rotate_property_from_string(value : String) ->
    Transform

    Parse the rotate property (<angle> or [x|y|z|<vector>] <angle>) into a Transform with rotate set. Only the 2D z-rotation angle is kept.

    parse_scale_property_from_string

    fn parse_scale_property_from_string(value : String) ->
    Transform

    Parse the scale property (<number>{1,3}) into a Transform with scale set. A single value applies to both axes.

    parse_stylesheet

    fn parse_stylesheet(css : String) ->
    Stylesheet

    Parse a full stylesheet from CSS text

    parse_stylesheet_with_diagnostics

    fn parse_stylesheet_with_diagnostics(css : String) -> ParseResult

    Parse a stylesheet and collect diagnostics

    parse_time_list_from_string

    fn parse_time_list_from_string(value : String) -> Array[Double]

    parse_transition_shorthand

    fn parse_transition_shorthand(tokens : ArrayView[
    Token
    ]) -> TransitionShorthand

    Parse the transition shorthand tokens into parallel longhand lists.

    parse_transition_shorthand_from_string

    fn parse_transition_shorthand_from_string(value : String) -> TransitionShorthand

    Parse the transition shorthand into parallel longhand lists.

    parse_translate_property_from_string

    fn parse_translate_property_from_string(value : String) ->
    Transform

    Parse the translate property (<len-pct>{1,3}) into a Transform with the translate components set (z is ignored; this engine is 2D).

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io