module Length:sig
..end
type
t =
| |
Zero |
(* |
For 0, unit is optional
| *) |
| |
Em of |
(* |
Relative to the font size
| *) |
| |
Ex of |
(* |
Relative to the x-height
| *) |
| |
Px of |
(* |
Relative to the viewing device
| *) |
| |
Gd of |
(* |
Relative to the grid
| *) |
| |
Rem of |
(* |
Relative to the font size of the root
| *) |
| |
Vw of |
(* |
Relative to the viewport's width
| *) |
| |
Vh of |
(* |
Relative to the viewport's height
| *) |
| |
Vm of |
(* |
Relative to the smallest of the viewport's width or height
| *) |
| |
Ch of |
(* |
Relative to the width of a char '0'
| *) |
| |
Mm of |
(* |
in Milimeter
| *) |
| |
Cm of |
(* |
in Centimeter
| *) |
| |
In of |
(* |
in Inch
| *) |
| |
Pt of |
(* |
in Points (72pt = 1in)
| *) |
| |
Pc of |
(* |
in Picas (1pc = 12pt)
| *) |
typejs_t = private
Js.js_string Js.t
val string_of_t : t -> string
val js : t -> js_t
val ml : js_t -> t