@vivliostyle/core
    Preparing search index...

    Class CascadeInstance

    Index

    Constructors

    Properties

    cmykStore: CmykStore
    code: Cascade
    conditions: { [key: string]: number } = ...
    context: Context
    counterListener: CounterListener
    counterResolver: CounterResolver
    counters: CounterValues = ...
    counterScoping: { [key: string]: boolean }[] = ...
    counterStyleStore: CounterStyleStore
    currentClassNames: string[] = null
    currentElement: Element = null
    currentElementOffset: number = null
    currentEpubTypes: string[] = null
    currentFollowingSiblingOrder: number = null
    currentFollowingSiblingTypeCounts: { [key: string]: { [key: string]: number } }
    currentId: string = ""
    currentLocalName: string = ""
    currentNamespace: string = ""
    currentNSTag: string = ""
    currentPageType: string = null
    currentSiblingOrder: number = 0
    currentSiblingTypeCounts: { [key: string]: { [key: string]: number } }
    currentStyle: ElementStyle = null
    currentXmlId: string = ""
    dependentConditions: string[] = []
    elementStack: Element[]
    firstPageType: string = null
    followingSiblingOrderStack: number[]
    followingSiblingTypeCountsStack: { [key: string]: { [key: string]: number } }[] = ...
    isFirst: boolean = true
    isRoot: boolean = true
    lang: string = ""
    lastCounterChanges: string[] = []
    lastCounterChangeTypes: { [key: string]: "set" | "reset" | "increment" } = ...
    pageTypePageIndices: { [pageType: string]: number[] } = ...
    previousPageType: string = null
    quoteDepth: number = 0
    quotes: Str[]
    siblingOrderStack: number[] = ...
    siblingTypeCountsStack: { [key: string]: { [key: string]: number } }[] = ...
    stack: ConditionItem[][] = ...
    viewConditions: { [key: string]: Matcher[] } = ...
    markerAllowedProps: string[] = ...

    Properties that are valid on ::marker and should be extracted to CSS custom properties on the parent element.

    Methods

    • Parameters

      • counterName: string
      • value: number

      Returns void

    • Parameters

      • element: Element

      Returns void

    • Extract ::marker or ::footnote-marker properties into CSS custom properties (--viv-marker-*) on the parent element's currentStyle, so that the browser's native ::marker can be controlled via polyfill CSS.

      For ::marker: the content is resolved from list-style-type/list-style-image if not explicitly set. For ::footnote-marker: the content comes from ::footnote-marker { content: ... } declarations.

      Parameters

      Returns void

    • Parameters

      • pseudoprops: ElementStyle
      • element: Element
      • OptionalpseudoName: string

      Returns void