Bug 23865 - Move from specifying region width by percentage to specifying by em
Summary: Move from specifying region width by percentage to specifying by em
Status: NEW
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: This bug has no owner yet - up for the taking
Whiteboard: v1
: 23849 (view as bug list)
Depends on:
Reported: 2013-11-19 20:06 UTC by Silvia Pfeiffer
Modified: 2013-12-16 09:16 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Silvia Pfeiffer 2013-11-19 20:06:31 UTC
Authors specify their window size in CEA708 in number of characters (assuming a monospace font - otherwise it's the number of widest characters of the font).

Specifying the region width by percentage doesn't allow the region to grow with the font size.

This has to be fixed.

At FOMS we discussed to use number of (widest) character as the width count instead.

Since regions are not implemented anywhere, we can simply make this change and not break backwards compatibility.
Comment 1 Philip Jägenstedt 2013-11-20 22:17:29 UTC
Maybe we should allow floating point percentages and ems everywhere, for simplicity?
Comment 2 Silvia Pfeiffer 2013-11-21 23:26:35 UTC
I think region width might be best in number of widest characters. But we could add ems also to cue width if that is desirable.
Comment 3 Philip Jägenstedt 2013-11-22 12:24:11 UTC
It's not hard to come up with a hypothetical scenario where a cue (without a region) should be just big enough to hold its content, in which case a font-relative size is required. But my real argument here is of course consistency/simplicity.
Comment 4 Rick Eyre 2013-11-27 14:41:56 UTC
I agree with Philip that it might be best to add it to cues as well for consistency. That way authors have a choice between using ems for the entire VTT file or percentage for the entire VTT file and not have to flip back and forth.
Comment 5 Silvia Pfeiffer 2013-11-27 22:24:02 UTC
Fine by me.
Comment 6 Silvia Pfeiffer 2013-12-16 09:16:30 UTC
*** Bug 23849 has been marked as a duplicate of this bug. ***