Length

trait Length[DSP[_], Num] extends Calc[DSP]
trait Calc[DSP]
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val ch: DSP[Num]

ch represents the width, or more precisely the advance measure, of the glyph "0" (zero, the Unicode character U+0030) in the element's font.

ch represents the width, or more precisely the advance measure, of the glyph "0" (zero, the Unicode character U+0030) in the element's font.

lazy val em: DSP[Num]

em represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element.

em represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element.

lazy val percent: DSP[Num]
lazy val pt: DSP[Num]

1 pt is 4/3 of a pixel.

1 pt is 4/3 of a pixel.

lazy val px: DSP[Num]

Pixels

Pixels

lazy val rem: DSP[Num]

rem represents the font-size of the root element (typically ). When used within the root element font-size, it represents its initial value (a common browser default is 16px, but user-defined preferences may modify this).

rem represents the font-size of the root element (typically ). When used within the root element font-size, it represents its initial value (a common browser default is 16px, but user-defined preferences may modify this).

lazy val vh: DSP[Num]

1 vh is equal to 1% of the height of the viewport's initial containing block

1 vh is equal to 1% of the height of the viewport's initial containing block

lazy val vmax: DSP[Num]

1 vmax is equal to the larger of 1 vw and 1 vh

1 vmax is equal to the larger of 1 vw and 1 vh

lazy val vmin: DSP[Num]

1 vmin is equal to the smaller of 1 vw and 1 vh

1 vmin is equal to the smaller of 1 vw and 1 vh

lazy val vw: DSP[Num]

1 vw is equal to 1% of the width of the viewport's initial containing block

1 vw is equal to 1% of the width of the viewport's initial containing block

Inherited fields

lazy val calc: DSP[String]

Wrap the provided expression in CSS calc() function.

Wrap the provided expression in CSS calc() function.

See also:
Inherited from:
Calc