On this page:
css-percentage
css-length
3.4.3 CSS

WARNING: All bindings in this section are scheduled for removal after version 5.2.1.

In the mx-element% method descriptions, “CSS” refers to the Cascading Style Sheets specification. A CSS length is string consisting of a decimal integer number followed by one of the units px (pixels), em (font height), ex (height of an “x”), in (inches), cm (centimeters), mm (millimeters), pc (picas), or pt (points). A CSS percentage is a string consisting of a decimal real number followed by %. When using -native methods, CSS lengths and percentages are given as strings. For use by non-native methods, the css-percentage and css-length structures have been defined.

(struct css-percentage (num)
  #:extra-constructor-name make-css-percentage)
  num : real?
(struct css-length (num units)
  #:extra-constructor-name make-css-length)
  num : real?
  units : (symbols em ex cm mm in pt pc px)