package css

  1. Overview
  2. Docs

Value parsers.

val important : T.ctx -> bool Angstrom.t
val number : T.ctx -> float Angstrom.t
val string_uescape : char -> Stdlib.Uchar.t Angstrom.t
val string_ : char -> T.ctx -> Stdlib.Buffer.t -> bool -> string Angstrom.t
val delim_string : char -> T.ctx -> T.str Angstrom.t
val string : T.ctx -> T.str Angstrom.t
val is_unescaped_ident_char : char -> bool
val ident_ : T.ctx -> 'a -> Stdlib.Buffer.t -> bool -> (string * ('b * T.pos)) Angstrom.t
val parse_ident : T.ctx -> 'a -> (Stdlib.Buffer.t -> 'b) -> (string * ('c * T.pos)) Angstrom.t
val ident_hyphen : T.ctx -> 'a -> (string * ('b * T.pos)) Angstrom.t
val ident : T.ctx -> (string * T.loc) Angstrom.t
val var_value : T.ctx -> string Angstrom.t
val of_kws : [< Kw.keyword ] as 'a list -> T.ctx -> 'a Angstrom.t
val left_center_right : T.ctx -> T.lcr Angstrom.t
val global_kw : T.ctx -> T.global_kw Angstrom.t
val global_kw_or : (T.ctx -> 'a Angstrom.t) -> T.ctx -> 'a T.p_value Angstrom.t
val fun_parser : T.ctx -> ?name:string -> 'a Angstrom.t -> (string * 'b) Angstrom.t
val fixed_fun_parser : T.ctx -> string -> 'a Angstrom.t -> 'b Angstrom.t
val to_closing_rpar : unit -> string Angstrom.t
val var : T.ctx -> (string * string option) Angstrom.t
val p_value : (T.ctx -> 'a Angstrom.t) -> T.ctx -> 'a T.p_value Angstrom.t
val iri_of_string : T.ctx -> T.str -> Iri.t Angstrom.t
val url_string : T.ctx -> Iri.t Angstrom.t
val url : T.ctx -> Iri.t Angstrom.t
val url_or_string : T.ctx -> Iri.t Angstrom.t
val fun_args : T.ctx -> string Angstrom.t
val function_ : T.ctx -> [> `Function of string * string ] Angstrom.t
val gradient_kind : [> `Linear | `Radial | `Repeating_linear | `Repeating_radial ] Angstrom.t
val gradient : T.ctx -> [> `Gradient of [> `Linear | `Radial | `Repeating_linear | `Repeating_radial ] * string ] Angstrom.t
val image : T.ctx -> T.image Angstrom.t
val percentage : T.ctx -> float Angstrom.t
val unit_ : ('a -> string) -> 'b list -> 'c Angstrom.t
val rel_length_unit : T.rel_length_unit Angstrom.t
val abs_length_unit : T.abs_length_unit Angstrom.t
val angle_unit : T.angle_unit Angstrom.t
val time_unit : T.time_unit Angstrom.t
val freq_unit : T.freq_unit Angstrom.t
val flex_unit : T.flex_unit Angstrom.t
val resolution_unit : T.resolution_unit Angstrom.t
val length_unit : T.length_unit Angstrom.t
val dim_unit : T.dim_unit Angstrom.t
val dimension_ : T.ctx -> parser_name:string -> ?default_unit:'a -> 'b Angstrom.t -> (float * 'c) Angstrom.t
val length : T.ctx -> (float * T.length_unit) Angstrom.t
val angle : T.ctx -> (float * T.angle_unit) Angstrom.t
val time : T.ctx -> (float * T.time_unit) Angstrom.t
val freq : T.ctx -> (float * T.freq_unit) Angstrom.t
val flex : T.ctx -> (float * T.flex_unit) Angstrom.t
val resolution : T.ctx -> (float * T.resolution_unit) Angstrom.t
val dimension : T.ctx -> (float * T.dim_unit) Angstrom.t
val percentage_ : T.ctx -> string -> [> `Percent of float ] as 'a Angstrom.t -> 'b Angstrom.t
val length_percentage : T.ctx -> T.length_percentage Angstrom.t
val angle_percentage : T.ctx -> [> `Angle of float * T.angle_unit | `Percent of float ] Angstrom.t
val hexa_color : [> `Rgba of float * float * float * float ] Angstrom.t
val rgb_args : T.ctx -> (float * float * float) Angstrom.t
val rgba_args : T.ctx -> (float * float * float * float) Angstrom.t
val color : T.ctx -> T.color Angstrom.t
val x_axis_pos_kw : T.ctx -> T.x_position_kw Angstrom.t
val y_axis_pos_kw : T.ctx -> T.y_position_kw Angstrom.t
val axis_position_ : (T.ctx -> [> `Center ] as 'a Angstrom.t) -> T.ctx -> 'b T.axis_pos Angstrom.t
val axis_position : T.ctx -> T.axis_position Angstrom.t
val size : ?name:string -> T.ctx -> T.size Angstrom.t
val max_size : ?name:string -> T.ctx -> T.max_size Angstrom.t
val accent_color : T.ctx -> T.accent_color Angstrom.t
val baseline_position : T.ctx -> T.baseline_position Angstrom.t
val content_position : T.ctx -> T.content_position Angstrom.t
val content_position_lr : T.ctx -> T.content_position_lr Angstrom.t
val self_position : T.ctx -> T.self_position Angstrom.t
val self_position_lr : T.ctx -> T.self_position_lr Angstrom.t
val content_distribution : T.ctx -> T.content_distribution Angstrom.t
val align_content : T.ctx -> T.align_content Angstrom.t
val align_items : T.ctx -> T.align_items Angstrom.t
val align_self : T.ctx -> T.align_self Angstrom.t
val aspect_ratio : T.ctx -> T.aspect_ratio Angstrom.t
val background_ : string -> (T.ctx -> 'a Angstrom.t) -> T.ctx -> 'a list Angstrom.t
val background_attachment_ : T.ctx -> T.background_attachment_ Angstrom.t
val background_attachment : T.ctx -> T.background_attachment Angstrom.t
val background_clip_ : T.ctx -> T.background_clip_kw Angstrom.t
val background_clip : T.ctx -> T.background_clip Angstrom.t
val background_image_ : T.ctx -> T.background_image_ Angstrom.t
val background_image : T.ctx -> T.background_image Angstrom.t
val background_origin_ : T.ctx -> T.background_origin_ Angstrom.t
val background_origin : T.ctx -> T.background_origin Angstrom.t
val background_position_x : T.ctx -> T.background_position_x Angstrom.t
val background_position_y : T.ctx -> T.background_position_y Angstrom.t
val background_repeat_ : T.ctx -> T.background_repeat_ Angstrom.t
val background_repeat : T.ctx -> T.background_repeat Angstrom.t
val background_size : T.ctx -> T.background_size Angstrom.t
val background_color : T.ctx -> T.background_color Angstrom.t
val line_style : T.ctx -> T.line_style Angstrom.t
val border_width : T.ctx -> T.border_width Angstrom.t
val display : T.ctx -> T.display Angstrom.t
val flex_basis : T.ctx -> T.flex_basis Angstrom.t
val flex_direction : T.ctx -> T.flex_direction Angstrom.t
val flex_wrap : T.ctx -> T.flex_wrap Angstrom.t
val font_family_generic : T.ctx -> T.font_family_generic_kw Angstrom.t
val font_family_ : T.ctx -> [> `Family of string | `Generic of T.font_family_generic_kw ] Angstrom.t
val font_family : T.ctx -> T.font_family Angstrom.t
val font_kerning : T.ctx -> T.font_kerning Angstrom.t
val font_size_kw : T.ctx -> T.font_size_kw Angstrom.t
val font_size : T.ctx -> T.font_size Angstrom.t
val font_stretch_kw : T.ctx -> T.font_stretch_kw Angstrom.t
val font_stretch : T.ctx -> T.font_stretch Angstrom.t
val font_style_kw : T.ctx -> T.font_style_kw Angstrom.t
val font_style : T.ctx -> T.font_style Angstrom.t
val font_variant_alt : T.ctx -> T.font_variant_alt Angstrom.t
val font_variant_alternates : T.ctx -> T.font_variant_alternates Angstrom.t
val font_variant_caps : T.ctx -> T.font_variant_caps Angstrom.t
val font_variant_east_asian : T.ctx -> T.font_variant_east_asian Angstrom.t
val font_variant_emoji : T.ctx -> T.font_variant_emoji Angstrom.t
val font_variant_ligatures : T.ctx -> T.font_variant_ligatures Angstrom.t
val font_variant_numeric : T.ctx -> T.font_variant_numeric Angstrom.t
val font_variant_position : T.ctx -> T.font_variant_position Angstrom.t
val font_weight : T.ctx -> T.font_weight Angstrom.t
val justify_content : T.ctx -> T.justify_content Angstrom.t
val justify_items : T.ctx -> T.justify_items Angstrom.t
val justify_self : T.ctx -> T.justify_self Angstrom.t
val number_ : T.ctx -> [> `Number of float ] Angstrom.t
val line_height : T.ctx -> T.line_height Angstrom.t
val list_style_image : T.ctx -> T.list_style_image Angstrom.t
val list_style_position_kw : T.ctx -> T.list_style_position_kw Angstrom.t
val list_style_position : T.ctx -> T.list_style_position Angstrom.t
val list_style_type : T.ctx -> T.list_style_type Angstrom.t
val margin : T.ctx -> T.margin Angstrom.t
val position : T.ctx -> T.position Angstrom.t
val text_align : T.ctx -> T.text_align Angstrom.t
val text_align_last : T.ctx -> T.text_align_last Angstrom.t
val vertical_align : T.ctx -> T.vertical_align Angstrom.t
val visibility : T.ctx -> T.visibility Angstrom.t
val white_space : T.ctx -> T.white_space Angstrom.t
val word_spacing : T.ctx -> T.word_spacing Angstrom.t
val value : T.ctx -> T.value Angstrom.t
val handle_end : (T.ctx -> 'a Angstrom.t) -> T.ctx -> 'b Angstrom.t