length
Parse a CSS <length>/<percentage> to points, or null if not a length. vw and vh resolve against refPt here; length with a viewport resolves them as CSS asks.
fun length(raw: String, fontSizePt: Double, rootPt: Double, refPt: Double, viewportWidthPt: Double, viewportHeightPt: Double): Double?(source)
length, with the viewport units against a viewport of viewportWidthPt by viewportHeightPt, whatever the property: 1vw is 1% of its width, 1vh 1% of its height, and vmin and vmax the smaller and larger of the two (CSS Values and Units 4, 6.1.2; #849).