BackgroundSizeStyle

trait BackgroundSizeStyle[T, DerivedProp[_], Num] extends LengthUnits[DerivedProp, Num] with AutoStyle[T]
trait AutoStyle[T]
trait LengthUnits[DerivedProp, Num]
trait CalcUnits[DerivedProp]
trait DerivedStylePropBuilder[DerivedProp]
class Object
trait Matchable
class Any

Value members

Inherited methods

protected def buildStringValue(value: String): T
protected def derivedStyle[A](encode: A => String): T[A]
protected def encodeCalcValue(exp: String): String

Encode / sanitize value to put inside calc() function

Encode / sanitize value to put inside calc() function

Inherited from:
DerivedStylePropBuilder
protected def encodeUrlValue(url: String): String

Encode / sanitize value to put inside url() function

Encode / sanitize value to put inside url() function

Inherited from:
DerivedStylePropBuilder
protected def valueAsString(value: T): String

Concrete fields

lazy val contain: T

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

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

lazy val cover: T

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

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

Inherited fields

lazy val auto: T
Inherited from:
AutoStyle
lazy val calc: DerivedProp[String]

Wrap the provided expression in CSS calc() function.

Wrap the provided expression in CSS calc() function.

See also:
Inherited from:
CalcUnits
lazy val ch: DerivedProp[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. --MDN

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

Inherited from:
LengthUnits
lazy val em: DerivedProp[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. --MDN

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

Inherited from:
LengthUnits
lazy val inherit: T

The inherit CSS keyword causes the element for which it is specified to take the computed value of the property from its parent element. --MDN

The inherit CSS keyword causes the element for which it is specified to take the computed value of the property from its parent element. --MDN

See also:
Inherited from:
StyleStringValueBuilder
lazy val initial: T

The initial CSS keyword applies the initial (or default) value of a property to an element. --MDN

The initial CSS keyword applies the initial (or default) value of a property to an element. --MDN

See also:
Inherited from:
StyleStringValueBuilder
lazy val percent: DerivedProp[Num]
Inherited from:
LengthUnits
lazy val pt: DerivedProp[Num]

1 pt is 4/3 of a pixel.

1 pt is 4/3 of a pixel.

Inherited from:
LengthUnits
lazy val px: DerivedProp[Num]

Pixels

Pixels

Inherited from:
LengthUnits
lazy val rem: DerivedProp[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). --MDN

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

Inherited from:
LengthUnits
lazy val revert: T

The revert CSS keyword reverts the cascaded value of the property from its current value to the value the property would have had if no changes had been made by the current style origin to the current element. --MDN

The revert CSS keyword reverts the cascaded value of the property from its current value to the value the property would have had if no changes had been made by the current style origin to the current element. --MDN

See also:
Inherited from:
StyleStringValueBuilder
lazy val unset: T

The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. In other words, it behaves like the inherit keyword in the first case, when the property is an inherited property, and like the initial keyword in the second case, when the property is a non-inherited property. --MDN

The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. In other words, it behaves like the inherit keyword in the first case, when the property is an inherited property, and like the initial keyword in the second case, when the property is a non-inherited property. --MDN

See also:
Inherited from:
StyleStringValueBuilder
lazy val vh: DerivedProp[Num]

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

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

Inherited from:
LengthUnits
lazy val vmax: DerivedProp[Num]

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

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

Inherited from:
LengthUnits
lazy val vmin: DerivedProp[Num]

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

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

Inherited from:
LengthUnits
lazy val vw: DerivedProp[Num]

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

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

Inherited from:
LengthUnits