Amazon Vinyl
    Preparing search index...

    Interface VttCueStyle

    Layout style applied to each rendered WebVTT cue, mirroring the settable positioning properties of the DOM VTTCue. Only the properties that are set are applied; the rest keep the browser defaults.

    These are the WebVTT cue-box layout controls (not text color/font, which are only reachable via the non-configurable ::cue pseudo-element). See https://developer.mozilla.org/docs/Web/API/VTTCue.

    interface VttCueStyle {
        align?: AlignSetting;
        line?: number | "auto";
        lineAlign?: LineAlignSetting;
        position?: number | "auto";
        positionAlign?: PositionAlignSetting;
        size?: number;
        snapToLines?: boolean;
        vertical?: DirectionSetting;
    }
    Index
    align?: AlignSetting

    Text alignment within the cue box.

    line?: number | "auto"

    Line (vertical) position, as a line number/percentage or 'auto'.

    lineAlign?: LineAlignSetting

    How line is anchored.

    position?: number | "auto"

    Inline position of the cue box, as a percentage or 'auto'.

    positionAlign?: PositionAlignSetting

    How position is anchored.

    size?: number

    Size of the cue box as a percentage of the video dimension.

    snapToLines?: boolean

    Whether line is a line number (true) or a percentage (false).

    vertical?: DirectionSetting

    Writing direction.