Relative

data class Relative(val value: Double, val unit: String) : LinearDimension(source)

A length relative to the font size, unit em, to the font size of the root, rem, or to the width or height of the window, vw and vh; computed styles have it in pixels

Constructors

Link copied to clipboard
constructor(value: Double, unit: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun inPixels(parentLengthInPx: Double): Double