[Webkit-unassigned] [Bug 168715] New: Implement WebVTT VTTCue lineAlign and positionAlign attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 22 03:08:57 PST 2017


            Bug ID: 168715
           Summary: Implement WebVTT VTTCue lineAlign and positionAlign
    Classification: Unclassified
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zcorpan at gmail.com

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: https://bugs.chromium.org/p/chromium/issues/detail?id=633690

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

See http://w3c.github.io/webvtt/#example-0c2976c9 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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170222/4d51d911/attachment.html>

More information about the webkit-unassigned mailing list