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 25956 - [WebVTT] Add 'center' alignment
Summary: [WebVTT] Add 'center' alignment
Status: RESOLVED MOVED
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: Web Media Text Tracks CG
URL:
Whiteboard: v2
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-03 09:44 UTC by Philip J├Ągenstedt
Modified: 2015-11-05 15:08 UTC (History)
5 users (show)

See Also:


Attachments

Description Philip J├Ągenstedt 2014-06-03 09:44:12 UTC
http://dev.w3.org/html5/webvtt/#applying-css-properties-to-webvtt-node-objects

In the table in this section, we can see that align:middle is the only value which does not match the CSS setting.

To align better with CSS, call it 'center'.

We could keep 'middle' as an alias, or remove it if compat allows. (Since it is the default value the compat risk ought to be lower.)
Comment 1 Simon Pieters 2015-11-05 14:55:27 UTC
Are implementors OK with just renaming middle to center? Compat-wise, any content that specifies align:middle will still be centered since it's the default. The only case where it makes a difference is if you were to use duplicate settings, I think.
Comment 2 Simon Pieters 2015-11-05 15:02:22 UTC
This would also affect positionAlign, and the DOM API (which I think would start throwing for cue.align = 'middle' in JS strict mode).
Comment 3 Simon Pieters 2015-11-05 15:08:54 UTC
https://github.com/w3c/webvtt/pull/244