<?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>25636</bug_id>
          
          <creation_ts>2014-05-09 19:48:44 +0000</creation_ts>
          <short_desc>[WebVTT] Regions should not change the font size or line height</short_desc>
          <delta_ts>2015-11-05 14:14:22 +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>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>v1</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>philipj</cc>
    
    <cc>rick.eyre</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="Web Media Text Tracks CG">public-texttracks</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105568</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-09 19:48:44 +0000</bug_when>
    <thetext>Without regions the default font is &apos;5vh sans-serif&apos;. With regions font is &apos;(0.0533/1.3)vh sans-serif&apos; and line-height is &apos;0.0533vh&apos;. (The values are 100 times too small, but that&apos;s just a typo.)

This is weird, as mixing regions and plain cues would result in differently sized text unless overridden.

Those who want to emulate 608 (80/15=5.33) can do so by changing the font using CSS, e.g.

::cue {
  font: 4.1vh monospace;
  line-height: 5.33vh;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105661</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-05-12 01:26:44 +0000</bug_when>
    <thetext>Fair enough. Happy to drop the font fix and leave that to the emulation spec.

The line-height fix was done such that lines in rollup mode don&apos;t change height based on the text within.

See also Rick&apos;s helpful article at http://rickeyre.ca/2014/04/15/number-of-lines-of-text.html .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105769</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-12 22:07:22 +0000</bug_when>
    <thetext>Rick, are you using the average line height in Firefox&apos;s WebVTT implementation? The spec says &quot;Let step be the height of the first line box in boxes.&quot; and that&apos;s what Presto does at least. I&apos;m not exactly sure what it is that Blink/WebKit does...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124090</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-11-05 14:12:08 +0000</bug_when>
    <thetext>Setting line-height to some value doesn&apos;t help with the height depending on the text. I think the line height only changes if you change the font or font size, which is still possible. So I don&apos;t see any reason to specify a line-height that is different from the CSS initial value here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124091</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-11-05 14:14:22 +0000</bug_when>
    <thetext>https://github.com/w3c/webvtt/pull/242</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>