WebVTT regionsLimited availability
WebVTT regions set the areas of the video where captions or subtitles should be rendered, such as placing roll-up captions used for live captions.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
✕Not supportedup to 155
Current: 155Edge
✕Not supportedup to 154
Current: 154Firefox
1–58Not supported
59+Supportedsince Mar 13, 2018
Current: 157Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
4–58Not supported
59+Supportedsince Mar 13, 2018
Current: 157Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27How to use
Not supported in Chrome, Edge, Chrome Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: region.
Feature detection
JS · check before using
if ("VTTRegion" in globalThis) {
// VTTRegion is available
} else {
// load a polyfill or use a fallback
}Specification
Sub-features
Support for each part of the feature (11). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| VTTCue.region | ✕ | ✕ | 59 | 14.1 | ✕ | 59 | 14.5 |
| VTTRegion | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.VTTRegion | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.id | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.lines | ✕ | ✕ | 59 | 12.1 | ✕ | 59 | 12.2 |
| VTTRegion.regionAnchorX | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.regionAnchorY | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.scroll | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.viewportAnchorX | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.viewportAnchorY | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |
| VTTRegion.width | ✕ | ✕ | 59 | 7 | ✕ | 59 | 7 |