This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

vertical

Summary

A string representing the text track cue writing direction, as follows. If it is horizontal: The empty string. If it is vertical growing left: The string "rl". If it is vertical growing right: The string "lr".

Property of apis/audio-video/TextTrackCueapis/audio-video/TextTrackCue

Syntax

var result = TextTrackCue.vertical;
TextTrackCue.vertical = value;

Return Value

Returns an object of type StringString

Examples

//. . .
var myTrack = document.getElementById("entrack").track; // get text track from track element
var myCues = myTrack.cues;   // get list of cues
for (var i = 0; i < myCues.length; i++) {
// set each cue's vertical flag to vertical-growing-right
myCues[i].vertical = "lr";
}
//. . .

Usage

 "Horizontal" writing direction means a text line extends horizontally and is positioned vertically, with consecutive lines displayed below each other. "Vertical growing left" means a text line extends vertically and is positioned horizontally, with consecutive lines displayed to the left of each other. "Vertical growing right" means a text line extends vertically and is positioned horizontally, with consecutive lines displayed to the right of each other.

Related specifications

W3C HTML5 Specification
W3C Editor’s Draft

Attributions