This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html Multipage: http://www.whatwg.org/C#dom-texttrackcue-direction Complete: http://www.whatwg.org/c#dom-texttrackcue-direction Comment: <track> use the same names in the DOM API as in WebVTT's cue settings Posted from: 85.227.157.105 by simonp@opera.com User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8
(In reply to http://www.w3.org/Bugs/Public/show_bug.cgi?id=14646#c7) > Fair enough. > > D: will become vertical: and the values will be changed to lr and rl > L: will become line: > T: will become position: > S: will become size: > A: will become align: This sounds good. However, I would like the settings and their exposure in the DOM API to be aligned, so that it's more obvious what things are called (compare with content attributes and IDL attributes in HTML). For instance, vertical: is "direction":"horizontal" | "vertical" | "vertical-lr" in the DOM API. It would be better if it were "vertical":"" | "rl" | "lr".
snapToLines and the magical value "auto" are also a bit annoying, though I'm not sure what to do about them.
Yeah, I should examine what to do here. Unfortunately this blocks the other bug on an HTML spec change.
Ok, .alignment => .align is obvious low-hanging fruit, so let's definitely do that. Looking at the others...
Checked in as WHATWG revision r7006. Check-in comment: rename TextTrackCue.alignment to .align to match the setting name in VTT. http://html5.org/tools/web-apps-tracker?from=7005&to=7006
I liked linePosition and textPosition, but I guess calling them 'line' and 'position' isn't so bad. It's better than changing VTT to use 'line-position:' and 'text-position:', I guess. And "text position" isn't any less ambiguous than "position" anyway.
Checked in as WHATWG revision r7007. Check-in comment: rename TextTrackCue.linePosition and .textPosition to .line and .position respectively to match the setting names in VTT. http://html5.org/tools/web-apps-tracker?from=7006&to=7007
Having .vertical return "" for horizontal direction is a bit weird, but I guess it's ok too, since it means you can do if (cue.vertical) { /* vertical */ } else { /* horizontal */ } ...and yet get its exact value to work out what kind of vertical.
Checked in as WHATWG revision r7008. Check-in comment: rename TextTrackCue.direction to .vertical (and change the values accordingly) to match the setting names in VTT. http://html5.org/tools/web-apps-tracker?from=7007&to=7008