Intent to Implement and Ship: webVTT positionAlign and lineAlign

69 views
Skip to first unread message

k2.na...@samsung.com

unread,
Nov 23, 2017, 4:51:26 PM11/23/17
to blink-dev, srir...@samsung.com

Intent to Implement and Ship: webVTT  positionAlign and lineAlign


Contact emails

k2.na...@samsung.com, srir...@samsung.com


Spec

https://w3c.github.io/webvtt/


Summary

WebVTT specification added support for new optional parameters line alignment and position alignment for text rendering.

Position alignment: alignment for the cue box in the dimension of the writing direction, describing what the position is anchored to, one of line-left, line-right, center and auto.

Line alignment: alignment for the cue box’s line to start, center or end.

Adding support based on new specification for line alignment and position alignment.


Patch: https://chromium-review.googlesource.com/c/chromium/src/+/756142


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Risks

Interoperability and Compatibility

            Risks

Edge: No signals

Safari: No signals

Firefox: shipped

Web developers: No signals


There is low risk, webvtt files which are created based on old spec with some specific cases may not work as expected as there is a modification in new WebVTT spec.

 

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=633690


Requesting approval to ship?

Yes

 

Entry on the feature dashboard

Yes. https://www.chromestatus.com/feature/4905656217763840

Rick Byers

unread,
Nov 23, 2017, 5:21:17 PM11/23/17
to k2.na...@samsung.com, blink-dev, srirama chandra sekhar
It looks like there are web-platform-tests at least here:


Can you comment on the state of the test coverage in WPT (does it cover pretty much everything in the spec / your implementation)?  It looks like Firefox passes them and with your change Chrome will as well.

I also came across this Edge bug, but no signals there.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/01eb4099-1138-4f31-937f-bbe9412c91c7%40chromium.org.

k2.na...@samsung.com

unread,
Nov 24, 2017, 1:58:32 AM11/24/17
to blink-dev, k2.na...@samsung.com, srir...@samsung.com
Yes with this implementation web-platform-tests all cases your specified will pass.
Few test cases expected results and webvtt files needs update LayoutTests/media/track/ based on new specification.

below is the patch link

With this patch position align releated test case will be passed

new test cases are added to check rendering position

Rick Byers

unread,
Nov 24, 2017, 9:53:24 AM11/24/17
to k2.na...@samsung.com, blink-dev, srirama chandra sekhar
Great, thanks.   LGTM1

Philip Jägenstedt

unread,
Nov 24, 2017, 4:21:51 PM11/24/17
to Rick Byers, k2.na...@samsung.com, blink-dev, srirama chandra sekhar
LGTM2

Note that the tests in https://wpt.fyi/webvtt/api/VTTCue test the surface-level features of the API, and not actually the rendering.

Would it be possible to move the new tests in https://chromium-review.googlesource.com/c/chromium/src/+/756142 (and any others) into web-platform-tests, so that the interoperability of the rendering is also being tested?

Chris Harrelson

unread,
Nov 25, 2017, 1:20:15 PM11/25/17
to k2.na...@samsung.com, blink-dev, srir...@samsung.com
Hi,

On Thu, Nov 23, 2017 at 3:02 AM, <k2.na...@samsung.com> wrote:

Intent to Implement and Ship: webVTT  positionAlign and lineAlign


Contact emails

k2.na...@samsung.com, srir...@samsung.com


Spec

https://w3c.github.io/webvtt/


Summary

WebVTT specification added support for new optional parameters line alignment and position alignment for text rendering.

Position alignment: alignment for the cue box in the dimension of the writing direction, describing what the position is anchored to, one of line-left, line-right, center and auto.

Line alignment: alignment for the cue box’s line to start, center or end.

Adding support based on new specification for line alignment and position alignment.


Patch: https://chromium-review.googlesource.com/c/chromium/src/+/756142


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Risks

Interoperability and Compatibility

            Risks

Edge: No signals

Safari: No signals

Firefox: shipped


Clarifying question: by shipped do you mean it's shipped exactly as implemented in https://chromium-review.googlesource.com/c/chromium/src/+/756142?

 

Web developers: No signals


There is low risk, webvtt files which are created based on old spec with some specific cases may not work as expected as there is a modification in new WebVTT spec.


I see that https://chromium-review.googlesource.com/c/chromium/src/+/756142 changes the types for various interface attributes. e.g. "line" now returns A "LineAndPositionSetting" instead of "double or AutoKeyword". This does not look backward compatible. Do you have any use counters or other data to back up the assessment of low risk of breaking existing content?

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Fredrik Söderquist

unread,
Nov 25, 2017, 1:32:29 PM11/25/17
to Chris Harrelson, k2.na...@samsung.com, blink-dev, SRIRAMA CHANDRA SEKHAR MOGALI
LineAndPositionSetting is just a typedef:

typedef (double or AutoKeyword) LineAndPositionSetting;

so the type is still the same. (And this part of the change is essentially unrelated to position/lineAlign.)


/fs

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/01eb4099-1138-4f31-937f-bbe9412c91c7%40chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

srir...@samsung.com

unread,
Nov 26, 2017, 9:17:05 PM11/26/17
to blink-dev, rby...@chromium.org, k2.na...@samsung.com, srir...@samsung.com


On Saturday, November 25, 2017 at 2:51:51 AM UTC+5:30, Philip Jägenstedt wrote:
LGTM2

Note that the tests in https://wpt.fyi/webvtt/api/VTTCue test the surface-level features of the API, and not actually the rendering.

Would it be possible to move the new tests in https://chromium-review.googlesource.com/c/chromium/src/+/756142 (and any others) into web-platform-tests, so that the interoperability of the rendering is also being tested?
Sure, we will check if we can move it to wpt.
IIRC, mozilla is not rendering "lineAlign=end" properly.

Chris Harrelson

unread,
Nov 27, 2017, 3:48:23 PM11/27/17
to srirama chandra sekhar, blink-dev, Rick Byers, k2.na...@samsung.com
LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages