@mathjax/src
    Preparing search index...

    Class Styles

    Implements the Styles object (lite version of CssStyleDeclaration)

    Index

    Constructors

    Properties

    styles: StyleList

    The list of styles defined for this declaration

    connect: connections = ...

    The mapping of parents to children, and how to split and combine them

    pattern: { [name: string]: RegExp } = ...

    Patterns for style values and comments

    Accessors

    • get cssText(): string

      Returns string

      The CSS string for the styles currently defined

    Methods

    • Parameters

      • name: string

        The name of the parent style

      • child: string

        The suffix to be added to the parent

      Returns string

      The combined name

    • Parameters

      • name: string

        The name of the style whose parent is to be combined

      Returns void

    • Parameters

      • name: string

        The name of the style to get

      Returns string

      The value of the style (or empty string if not defined)

    • Parameters

      • name: string

        The name of a style to normalize

      Returns string

      The name converted from CamelCase to lowercase with dashes

    • Parameters

      • name: string

        The name of the style whose parent style is to be found

      Returns string

      The name of the parent, or '' if none

    • Parameters

      • cssText: string = ''

        A style text string to be parsed into separate styles (by using this.set(), we get all the sub-styles created as well as the merged style shorthands)

      Returns void

    • Parameters

      • text: string

        The value to be sanitized

      Returns string

      The sanitized value (removes ; and anything past that, and balances quotation marks)

    • Parameters

      • name: string

        The name of the style to set

      • value: string | number | boolean

        The value to set it to

      Returns void

    • Parameters

      • name: string

        The name of the style to set (without causing parent updates)

      • value: string

        The value to set it to

      Returns void