-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebVTT should expose an inline-block backdrop element for cues #516
Comments
Strawman solution 1: Add an additional wrapper anonymous block with a Strawman solution 2: Allow the |
The macOS System Preferences allow users to specify cue treatments that have separate properties for the cue "window" (i.e., the This may mean that "straw man solution 2" is untenable on macOS and iOS, since they allow the user to override styles of the |
As an internal implementation detail, WebKit uses the pseudo-element |
How does this map semantically to e.g. I ask because if there is an opportunity to close the semantic gap, we should probably take it. It's unclear how the FCC "window" concept maps too, in the sense that there is more than one possible option for mapping, and I suspect (only by reading between the lines) that FCC does not consider it appropriate for them to go into this level of format-dependent detail. |
No idea how this maps to TTML. For HTML, it's definitely equivalent to a |
Pinging this thread. Strawman proposal would be that the "window" of a WebVTT cue should be selectable by a |
@jernoble can you define "window"? |
What definition are you looking for? CEA-708 already defines "caption windows", as well as defines display properties of those windows, including background color, border effects, and transparency. But in the context of WebVTT, I would define a "cue window" as an "inline-block element wrapping the WebVTT Internal Objects generated by the cue". |
Ping on this issue. The ability for web pages to override system-provided styling of "caption windows" is critical for interoperability and use of WebVTT in web pages generally. |
I like the idea of ::cue-window for dealing with the background. Can I suggest preparing a pull request? That makes the life of the current maintainer a bit easier... |
I would be in support of exposing It would be nice to figure out the TTML mapping, but that can be done separately. |
Safari and WebKit on macOS and iOS have a long-standing default treatment of text track cues that incorporates an
inline-block
wrapper around the cues, so as to provide the same rendering of cues as is available to native applications using system media frameworks. The styles for thisinline-block
wrapper are configurable through system defaults, allowing the user to choose between aninline-block
style highlight, and ainline
highlight. (See attached images for examples.)Because this block is not exposed through WebVTT, it is very difficult (if not impossible) for inline- or page-provided styles to override this rendering.
The text was updated successfully, but these errors were encountered: