files/en-us/web/api/vttregion/index.md
{{APIRef("WebVTT")}}
The VTTRegion interface of the WebVTT API describes a portion of the video to render a {{domxref("VTTCue")}} onto.
VTTRegion object.const region = new VTTRegion();
region.width = 50; // Use 50% of the video width
region.lines = 4; // Use 4 lines of height.
region.viewportAnchorX = 25; // Have the region start at 25% from the left.
const cue = new VTTCue(2, 3, "Cool text to be displayed");
cue.region = region; // This cue will be drawn only within this region.
{{Specifications}}
{{Compat}}