Class StypURL

Structured URL CSS property value.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

priority: number

CSS property value priority.

The value Important and above means the property is !important. Everything else means normal priority.

The property value with higher priority number takes precedence over the one with lower one.

url: string

Target URL.

Accessors

Methods

  • Maps the given CSS property value to URL. Defaults to undefined if mapping is not possible.

    This method allows to use a StypURL class as [CSS property mapping]Mapping.

    Strings are treated as URLs (without url() functional syntax). !important suffix is respected.

    Parameters

    • source: StypValue

      A raw property value that should be converted.

    Returns undefined | StypURL

    Mapped property value or undefined.

Generated using TypeDoc