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 17027 - <track> auto and unset snap-to-lines shouldn't be possible
Summary: <track> auto and unset snap-to-lines shouldn't be possible
Status: RESOLVED INVALID
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-10 12:18 UTC by contributor
Modified: 2012-09-11 22:30 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-05-10 12:18:26 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#text-track-model
Complete: http://www.whatwg.org/c#text-track-model

Comment:
"Otherwise, the text track cue line position is the special value auto; if the
text track cue snap-to-lines flag of the text track cue is not set, the text
track cue computed line position is the value 100" - I think auto and unset
snap-to-lines shouldn't be possible

Posted from: 85.227.154.145 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 contributor 2012-07-18 17:35:37 UTC
This bug was cloned to create bug 18183 as part of operation convergence.
Comment 2 Ian 'Hixie' Hickson 2012-07-27 03:28:23 UTC
Can you elaborate?
Comment 3 Simon Pieters 2012-08-15 09:28:12 UTC
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-snaptolines allows setting snap-to-lines to false even if line is auto or negative or greater than 100. The snapToLines setter should check the value of line before updating the value.

If that is changed, you can strike "if the text track cue snap-to-lines flag of the text track cue is not set, the text track cue computed line position is the value 100; otherwise," since that can't happen when line is auto.

(It's not possible to get auto and snap-to-lines unset in the WebVTT syntax.)
Comment 4 Ian 'Hixie' Hickson 2012-09-11 22:30:03 UTC
See bug 16917.