VTTRegion: lines property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more support for this feature? Tell us why.
The lines property of the VTTRegion interface represents the height of the region, in number of lines.
Value
A number representing the number of lines inside the region that cue text is rendered in. The default is 3.
Examples
In the following example, a new VTTRegion is created, then the value of lines is set to 4. The value is then printed to the console.
js
const region = new VTTRegion();
region.lines = 4; // Render cues in 4 lines
console.log(region.lines);
Specifications
| Specification |
|---|
| WebVTT: The Web Video Text Tracks Format> # dom-vttregion-lines> |