Css.SStatements.
type 'ns pseudo_class = [ | `Active| `Default| `Disabled| `Empty| `Enabled| `First_child| `First_of_type| `Focus| `Fullscreen| `Hover| `In_range| `Indeterminate| `Invalid| `Lang of string| `Last_child| `Last_of_type| `Link| `Not of 'ns selector| `Nth_child of int| `Nth_last_child of int| `Nth_last_of_type| `Nth_of_type of int| `Only_of_type| `Only_child| `Optional| `Out_of_range| `Read_only| `Read_write| `Required| `Root| `Target| `Valid| `Visited| `Other of string ]and 'ns single_selector = {sel_qname : 'ns qname T.with_loc option;sel_attr : 'ns attr_selector T.with_loc list;sel_id : string T.with_loc option;sel_pseudo_class : 'ns pseudo_class T.with_loc list;sel_pseudo_elt : (string * string option) T.with_loc option;}and 'ns selector = | Single of 'ns single_selector| Inside of 'ns selector * 'ns single_selector| Child of 'ns selector * 'ns single_selector| Adjacent of 'ns selector * 'ns single_selector| Sibling of 'ns selector * 'ns single_selectorval pseudo_class_kws : 'a pseudo_class listval selector_is_empty : 'a single_selector -> boolval string_of_nested_rule_rel : nested_rule_rel -> stringtype 'ns rule_ = {sel : 'ns selector T.with_loc list;decls : P.binding list;nested : 'ns nested_rule list;}and 'ns rule = 'ns rule_ T.with_locand 'ns nested_rule_ = nested_rule_rel * 'ns ruleand 'ns nested_rule = 'ns nested_rule_ T.with_locval string_of_attr_value : attr_value -> stringval string_of_attr_selector :
('a qname -> string) ->
'a attr_selector ->
stringval string_of_attr_selector_list :
('a qname -> string) ->
('a attr_selector * 'b) list ->
stringval string_of_single_selector :
('a qname -> string) ->
'a single_selector ->
stringval string_of_pseudo_class : ('a qname -> string) -> 'a pseudo_class -> stringval pseudo_class_of_string : string -> string pseudo_class optionval pp_decl : Stdlib.Format.formatter -> P.binding -> unitval pp_decls : Stdlib.Format.formatter -> P.binding list -> unitval pp_nested_rule :
('a qname -> string) ->
Stdlib.Format.formatter ->
'a nested_rule ->
unitval string_of_media_type : media_type -> stringval pp_media_type : Stdlib.Format.formatter -> media_type -> unittype media_feature_name = string T.with_loctype media_feature_value = [ | `Number of T.number| `Dim of T.dimension| `Ident of string T.with_loc| `Ratio of T.ratio ]val string_of_media_feature_value :
[< `Dim of float * T.dim_unit
| `Ident of string * 'a
| `Number of float
| `Ratio of float * float ] ->
stringtype media_feature_range = [ | `Lt of media_feature_value| `Lte of media_feature_value| `Gt of media_feature_value| `Gte of media_feature_value| `Gt_lt of media_feature_value * media_feature_value| `Gte_lt of media_feature_value * media_feature_value| `Gt_lte of media_feature_value * media_feature_value| `Gte_lte of media_feature_value * media_feature_value ]val string_of_media_feature_range :
string ->
[< `Gt of
[< `Dim of float * T.dim_unit
| `Ident of string * 'a
| `Number of float
| `Ratio of float * float ]
| `Gt_lt of
[< `Dim of float * T.dim_unit
| `Ident of string * 'b
| `Number of float
| `Ratio of float * float ]
* [< `Dim of float * T.dim_unit
| `Ident of string * 'c
| `Number of float
| `Ratio of float * float ]
| `Gt_lte of
[< `Dim of float * T.dim_unit
| `Ident of string * 'd
| `Number of float
| `Ratio of float * float ]
* [< `Dim of float * T.dim_unit
| `Ident of string * 'e
| `Number of float
| `Ratio of float * float ]
| `Gte of
[< `Dim of float * T.dim_unit
| `Ident of string * 'f
| `Number of float
| `Ratio of float * float ]
| `Gte_lt of
[< `Dim of float * T.dim_unit
| `Ident of string * 'g
| `Number of float
| `Ratio of float * float ]
* [< `Dim of float * T.dim_unit
| `Ident of string * 'h
| `Number of float
| `Ratio of float * float ]
| `Gte_lte of
[< `Dim of float * T.dim_unit
| `Ident of string * 'i
| `Number of float
| `Ratio of float * float ]
* [< `Dim of float * T.dim_unit
| `Ident of string * 'j
| `Number of float
| `Ratio of float * float ]
| `Lt of
[< `Dim of float * T.dim_unit
| `Ident of string * 'k
| `Number of float
| `Ratio of float * float ]
| `Lte of
[< `Dim of float * T.dim_unit
| `Ident of string * 'l
| `Number of float
| `Ratio of float * float ] ] ->
stringtype media_feature_constraint = [ | `Present| `Value of media_feature_value| `Range of media_feature_range ]type media_feature = media_feature_name * media_feature_constraintval string_of_media_feature : media_feature -> stringval pp_media_feature : Stdlib.Format.formatter -> media_feature -> unittype media_condition = [ | `Feature of media_feature| `And of media_condition * media_condition| `Or of media_condition * media_condition| `Not of media_condition ]val string_of_media_condition :
([< `And of 'a * 'a
| `Feature of media_feature
| `Not of 'a
| `Or of 'a * 'a Feature ] as 'a) ->
stringtype media_query = {negated : bool;media_type : media_type option;media_condition : media_condition option;}val string_of_media_query : media_query -> stringval pp_media_query : Stdlib.Format.formatter -> media_query -> unitval pp_media_query_list : Stdlib.Format.formatter -> media_query list -> unittype 'ns at_rule_ = | Charset of string| Import of T.url * layer_name option * import_conditions option| Layer of layer_name list * 'ns statement list| Media of media_query list * 'ns statement list| Namespace of string option * T.url| Other of stringmodule Smap = T.Smapval expand_attr_selector :
Iri.t Smap.t ->
T.loc ->
Smap.key attr_selector ->
Iri.t attr_selectorval expand_pseudo_class :
Iri.t Smap.t ->
Smap.key pseudo_class ->
Iri.t pseudo_classval expand_single_selector :
Iri.t Smap.t ->
Smap.key single_selector ->
Iri.t single_selectorval default_ns : Iri.t Smap.tDefault namespaces used when expanding namespaces in CSS. These consist in:
"" mapped to "http://www.w3.org/1999/xhtml","math" mapped to "http://www.w3.org/1998/Math/MathML","svg" mapped to "http://www.w3.org/2000/svg".