-
Notifications
You must be signed in to change notification settings - Fork 40
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
Default font size 5vh
leads to very large cues for vertical videos
#522
Comments
…rtrait view https://bugs.webkit.org/show_bug.cgi?id=265817 rdar://118030141 Reviewed by Simon Fraser. When a landscape video is presented in portrait mode (with large letterboxes), this causes the font size of the associated text tracks to be absurdly large. Filed a spec issue on WebVTT (w3c/webvtt#522) to change the default font size be `5vmin` rather than `5vh`, but proceeding with changing WebKit's default font size to be `5cqh` in the meantime. * Source/WebCore/Modules/modern-media-controls/controls/text-tracks.css: (::-webkit-media-text-track-region): Canonical link: https://commits.webkit.org/271536@main
|
Additional thought for consideration: should it depend on the text direction? |
Even with vertical writing text, the same absolute font size as horizontal one should be used, I suppose. Since, question should be what size of characters to be used for CC - even if it is vertical-set or horizontal-set, vertical-set text of CC in vertical video should have the same logic as horizontal-set text of CC in horizontal video, and for reverse. If we change to |
Thanks @himorin , that makes sense: no dependency on the text direction, just the orientation of the video. |
This seems reasonable to me. Using |
The spec currently says:
This value of
5vh
leads to unreasonably large cues for vertical videos. See example here: http://jernoble.github.io/samples/bin/WebVTT/resize-aspect.htmlInstead, the spec could use
5vmin
(or actually, move away from redefining viewports entirely and use5cqmin
instead). The example above allows you to switch between5vh
and5vmin
to see the difference in behavior.The text was updated successfully, but these errors were encountered: