Skip to content

WebVTT should allow pages to modify the caption display area #531

@jernoble

Description

@jernoble

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions