[webvtt] Overflowed text might exceed the boundary of video rendering area (#459)

alastor0325 has just created a new issue for https://github.com/w3c/webvtt:

== Overflowed text might exceed the boundary of video rendering area ==
There is a case which the spec didn't address, which is about the text overflow direction when the size of the cue text exceeds the cue box's size. It's possible that showing the cue text outside the boundary of **the video rendering area**.

Check this [example](https://jsfiddle.net/qzm5ujta/2/), I set the cue box size as **50%** which is just for showing the difference easily. You can see the text `Bbbbbbbbbbbbbbb` are overflow, which both exceed the boundary of the **cue box**. The third and fourth cues are used to simulate setting cue with explicit `position`.

It's acceptable for the first overflowed cue, because the cue box is on the left side and the text is still within the video rendering area. However, for the second overflowed cue, it's bad because the text has exceeded the boundary of **the video rendering area**.

So maybe we should have some rules related with box's size and text overflow?





Please view or discuss this issue at https://github.com/w3c/webvtt/issues/459 using your GitHub account

Received on Tuesday, 18 June 2019 21:06:00 UTC