Closed Bug 1528420 Opened 2 years ago Closed 2 years ago

[webvtt] Cue's positionAlign should be `auto` by default

Categories

(Core :: Audio/Video: Playback, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, site-compat)

Attachments

(2 files)

According to spec [1], By default, the position alignment is set to auto

[1] https://www.w3.org/TR/webvtt1/#webvtt-cue-position-automatic-alignment

According to spec [1], By default, the position alignment is set to auto

[1] https://www.w3.org/TR/webvtt1/#webvtt-cue-position-automatic-alignment

Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6d27c85a2ec3
part1 : set positionAlign to `auto` by default. r=jya
https://hg.mozilla.org/integration/autoland/rev/ba8b99b72a31
part2 : enable testing/web-platform/tests/webvtt/api/VTTCue/constructor.html. r=jya
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Note to MDN writers — for the moment, I've just added a note to the Fx 67 rel notes about this:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/67#APIs

We don't have proper docs for the WebVTT API at the moment, so we can't do anything more for now.

I've submitted an issue to our sprints board so that we can write a plan on what needs to be done to document this properly: https://github.com/mdn/sprints/issues/1333

Feel free to add to it if you have thoughts on what we need to include.

Documentation updates:

  • Added sentence mentioning the default to the positionAlign entry in the Properties section on the VTTCue page
  • Cleaned up and improved VTTCue() page
  • Rewrote the note in Firefox 67 for developers to be more detailed, and moved it from the DOM section to Media, Web Audio, and WebRTC
You need to log in before you can comment on or make changes to this bug.