BackgroundSize

trait BackgroundSize extends Auto with Length[DerivedStyleProp, Int]
trait Auto
class Object
trait Matchable
class Any

Value members

Concrete fields

This keyword specifies that the background image should be scaled to be as large as possible while ensuring both its dimensions are less than or equal to the corresponding dimensions of the background positioning area.

This keyword specifies that the background image should be scaled to be as large as possible while ensuring both its dimensions are less than or equal to the corresponding dimensions of the background positioning area.

lazy val cover: StyleSetter

This keyword specifies that the background image should be scaled to be as small as possible while ensuring both its dimensions are greater than or equal to the corresponding dimensions of the background positioning area.

This keyword specifies that the background image should be scaled to be as small as possible while ensuring both its dimensions are greater than or equal to the corresponding dimensions of the background positioning area.

Inherited fields

lazy val auto: StyleSetter
Inherited from:
Auto
lazy val calc: DerivedStyleProp[String]

Wrap the provided expression in CSS calc() function.

Wrap the provided expression in CSS calc() function.

See also:
Inherited from:
Calc
lazy val ch: DerivedStyleProp[Int]

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.

Inherited from:
Length
lazy val em: DerivedStyleProp[Int]

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.

Inherited from:
Length
lazy val percent: DerivedStyleProp[Int]
Inherited from:
Length
lazy val pt: DerivedStyleProp[Int]

1 pt is 4/3 of a pixel.

1 pt is 4/3 of a pixel.

Inherited from:
Length
lazy val px: DerivedStyleProp[Int]

Pixels

Pixels

Inherited from:
Length
lazy val rem: DerivedStyleProp[Int]

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).

Inherited from:
Length
lazy val vh: DerivedStyleProp[Int]

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

Inherited from:
Length
lazy val vmax: DerivedStyleProp[Int]

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

Inherited from:
Length
lazy val vmin: DerivedStyleProp[Int]

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

Inherited from:
Length
lazy val vw: DerivedStyleProp[Int]

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 from:
Length