This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16915 - <track> The DOM API should be able to read and set the "auto" value for TextTrackCue.line
Summary: <track> The DOM API should be able to read and set the "auto" value for TextT...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-03 09:22 UTC by contributor
Modified: 2012-09-11 23:33 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2012-05-03 09:22:39 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#texttrackcue
Complete: http://www.whatwg.org/c#texttrackcue

Comment:
The DOM API should be able to read and set the "auto" value for
TextTrackCue.line

Posted from: 88.131.66.80 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.3; U; en) Presto/2.10.229 Version/11.62
Comment 1 Simon Pieters 2012-05-03 09:25:35 UTC
I think the current situation is not optimal -- it's not possible to tell if a cue has position 0 or auto, and if you want to change the position to auto, you have to create a new cue and copy over all other properties.

I think the IDL should be something like

enum LinePositionKeyword { "auto" };
...
           attribute (long or LinePositionKeyword) line;
...

and then prose handling "auto" as appropriate.
Comment 2 Simon Pieters 2012-05-03 09:30:22 UTC
Also currently the following line makes the cue change position from the bottom to the top, which seems weird:

cue.line = cue.line;
Comment 3 contributor 2012-07-18 17:31:30 UTC
This bug was cloned to create bug 18169 as part of operation convergence.
Comment 4 contributor 2012-09-11 23:33:42 UTC
Checked in as WHATWG revision r7330.
Check-in comment: Change TextTrackCue.line to expose the raw value rather than the computed value. There's no way to get the computed value now.
http://html5.org/tools/web-apps-tracker?from=7329&to=7330