Css.S
Statements.
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
|
`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 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_selector
val pseudo_class_kws : 'a pseudo_class list
val selector_is_empty : 'a single_selector -> bool
and 'ns rule = 'ns rule_ T.with_loc
val string_of_attr_value : attr_value -> string
val string_of_attr_selector :
('a qname -> string) ->
'a attr_selector ->
string
val string_of_attr_selector_list :
('a qname -> string) ->
('a attr_selector * 'b) list ->
string
val string_of_single_selector :
('a qname -> string) ->
'b single_selector ->
string
val string_of_pseudo_class : ('a qname -> string) -> 'b pseudo_class -> string
val pseudo_class_of_string : string -> string pseudo_class option
val pp_decl : Stdlib.Format.formatter -> P.binding -> unit
val pp_decls : Stdlib.Format.formatter -> P.binding list -> unit
type 'ns at_rule_ =
| Charset of string
| Import of Iri.t * layer_name option * import_conditions option
| Layer of layer_name list * 'ns statement list
| Media of media_condition * 'ns statement list
| Namespace of string option * Iri.t
| Other of string
module Smap = T.Smap
val expand_attr_selector :
Iri.t Smap.t ->
T.loc ->
Smap.key attr_selector ->
Iri.t attr_selector
val expand_pseudo_class :
Iri.t Smap.t ->
Smap.key pseudo_class ->
Iri.t pseudo_class
val expand_single_selector :
Iri.t Smap.t ->
Smap.key single_selector ->
Iri.t single_selector
val default_ns : Iri.t Smap.t
Default 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"
.