This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section 3.5.1 defines default settings for CSS values. It includes a default font of '5vh', i.e. 5% of video height. When "line" cue settings are provide as line numbers, we need to provide exact positioning. However, line heights are different between browsers - CSS only specifies that line-height should be between 1.1 - 1.3 times the font height. To get exact line positioning, we should also provide a default setting for line-height.
I'm finding that this looks best: line-height: '5vh' font: '5/1.3vh sans-serif' This has the result that every browser covers the video viewport with 20 lines exactly, rather than being random.
CSS specifies that the line height is 'normal' which is derived fron the font metrics. We could set the line-height to 6.5vh as you suggest, but then it would have overlap in cases where the font's metrics are able to suggest a better line height (e.g. Zapfino). zcorpan, foolip: any opinion on this?
This is a problem of compatibility between browsers, which each interpret "normal" differently, not just for different fonts, but for the same font.
If they're interpreting the font metrics differently, file a bug on the browsers getting it wrong.
I think we should keep 'normal' in WebVTT as the default. It should be possible for authors and users to change font and have the line height follow appropriately. If you want a certain number of lines, you can set line-height. That browsers differ in line-height for the same font is a bug.