Implement WebVTT VTTCue lineAlign and positionAlign attributes

Issue #11025599 • Assigned to Frank L.


Simon P.
Feb 22, 2017
This issue is public.
Found in
  • Microsoft Edge
  • Chrome
  • Safari
  • Opera
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

VTTCue.lineAlign and VTTCue.positionAlign are not supported.

In the WebVTT syntax these are specified after a “,” in position and line settings.



These are supported in Gecko. Bug for Chromium:

I think the use case is basically better control in positioning things.

See for an example.

00:00:00.000 --> 00:00:04.000 position:10%,line-left align:left size:35%
Where did he go?

Without position-align you need to set position to some value that doesn’t correspond to what the author actually intends:

00:00:00.000 --> 00:00:04.000 position:27.5% align:left size:35%
Where did he go?

27.5% here is: intended position (10%) + size/2 (35%/2). Not intuitive.

Having this also makes the mapping from other subtitle formats to WebVTT (and back) more straightforward.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Frank L.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in