<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19273</bug_id>
          
          <creation_ts>2012-10-04 10:19:48 +0000</creation_ts>
          <short_desc>WebVTT: Define a default value for &apos;line-height&apos;</short_desc>
          <delta_ts>2012-12-31 05:42:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75301</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-10-04 10:19:48 +0000</bug_when>
    <thetext>Section 3.5.1 defines default settings for CSS values. It includes a default font of &apos;5vh&apos;, i.e. 5% of video height.

When &quot;line&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77072</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-10-24 21:51:03 +0000</bug_when>
    <thetext>I&apos;m finding that this looks best:

line-height: &apos;5vh&apos;
font: &apos;5/1.3vh sans-serif&apos;

This has the result that every browser covers the video viewport with 20 lines exactly, rather than being random.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78585</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-21 19:19:15 +0000</bug_when>
    <thetext>CSS specifies that the line height is &apos;normal&apos; 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&apos;s metrics are able to suggest a better line height (e.g. Zapfino).

zcorpan, foolip: any opinion on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78606</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-11-21 20:45:22 +0000</bug_when>
    <thetext>This is a problem of compatibility between browsers, which each interpret &quot;normal&quot; differently, not just for different fonts, but for the same font.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78618</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-22 00:14:41 +0000</bug_when>
    <thetext>If they&apos;re interpreting the font metrics differently, file a bug on the browsers getting it wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78642</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-22 09:50:09 +0000</bug_when>
    <thetext>I think we should keep &apos;normal&apos; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>