let position_of_string = function
  | "absolute" -> Absolute
  | "fixed"    -> Fixed
  | _          -> Relative