@vivliostyle/core
    Preparing search index...

    Class CascadeInstance

    Index

    Constructors

    Properties

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

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

    Methods

    • Get inherited property value

      Parameters

      • propName: string
      • element: Element
      • elementStyle: ElementStyle

        style being cascaded for element, which the style store cannot serve until the cascade for it finishes

      Returns Val

      the inherited property value, or the initial value (or null) if not found

    • Extract ::marker or ::footnote-marker properties into CSS custom properties (--viv-marker-*) on the parent element's style, 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