-
Notifications
You must be signed in to change notification settings - Fork 30
Description
A common use case for captions is to modify the caption display location when custom media controls show and hide. This behavior is implemented in the default controls in Safari, Chrome, and Firefox.
However, sites with custom media controls are unable to implement the same behavior, at least not in a standards-compliant way. Sites have attempted to reach inside the UA-specific media element Shadow DOM, and use an internal-only CSS selector, but this breaks when User Agents (correctly) restrict access to internal-only Shadow DOM nodes or rename internal elements.
WebVTT should try to solve this important use case. It may be as simple as codifying a "Caption Display Area" as a block-level element, and expose it through a pseudo-element. Then pages could modify the display area by giving that selector, e.g., a padding-bottom: rule.