<?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>23280</bug_id>
          
          <creation_ts>2013-09-18 23:43:49 +0000</creation_ts>
          <short_desc>Make positioning values % instead of &apos;vh&apos; and &apos;vw&apos;</short_desc>
          <delta_ts>2014-01-28 17:05:19 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Rick Eyre">rick.eyre</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</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>93540</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2013-09-18 23:43:49 +0000</bug_when>
    <thetext>I don&apos;t quite see the point of using &apos;vh&apos; and &apos;vw&apos; and redefining the initial containing block to the video&apos;s rendering area when we could just use percentage values as easily as we are positioning all of these boxes absolutely within the video&apos;s rendering box. The percentage will set it to % to the left, width, right, etc, of the containing element which is always the video rendering area.

If this is specifically for the case of regions, as we still want to specify position, etc, as a percentage of the video I think it would make more sense to have position, etc, specify values relative to the region as this is what the author is positioning their cues in now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93629</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-09-23 05:06:22 +0000</bug_when>
    <thetext>I don&apos;t understand - vh and vw are defined as percentage values:
http://dev.w3.org/csswg/css-values/#viewport-relative-lengths

What is your problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93643</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2013-09-23 13:57:41 +0000</bug_when>
    <thetext>They are translated to percentage values of the initial containing block. So in order for them to work as they do in the current spec the &apos;initial containing block&apos; needs to be redefined as the video view port, which has been done. However, this would take some changing to the way &apos;vh&apos; and &apos;vw&apos; work in the implementation because we need to redefine what the initial containing block is for this special case.

It would be easier to just use straight &apos;%&apos; values as the CSS units instead of &apos;vh&apos; and &apos;vw&apos; as they have the same meaning as &apos;vh&apos; and &apos;vw&apos; as defined by the WebVTT spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99268</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-28 07:33:45 +0000</bug_when>
    <thetext>In both implementations I have worked on (Presto and Blink) it&apos;s the case that the vh/vw isn&apos;t actually used internally, because as Rick says it&apos;s extra work to make them relative to the video in this special case. Instead, in Presto we just did the calculation using the video size internally, and in Blink percentages are used instead.

So, I&apos;m quite sympathetic to having the spec use percentages instead. However, I think the vh/vw units have a purpose for styling the text using CSS. Without them, is there actually any unit one could use to make the text grow and shrink with the video? This seems important to have, and the work required to support that is the same as is required to allow the implementation to use them internally as well...

Thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99271</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-01-28 07:56:51 +0000</bug_when>
    <thetext>Aren&apos;t video height and vh required to stay in sync?

So you want to specify everything in percentage values relative to the &quot;initial containing block&quot;, except for the font size and line height?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99282</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-28 09:22:59 +0000</bug_when>
    <thetext>(In reply to Silvia Pfeiffer from comment #4)
&gt; Aren&apos;t video height and vh required to stay in sync?
&gt; 
&gt; So you want to specify everything in percentage values relative to the
&gt; &quot;initial containing block&quot;, except for the font size and line height?

Both vh and % would stay in sync with reality, the problem is that actually making vh is a bit of work so we should make sure we actually need it. I can&apos;t think of another way to specify relative font sizes, so we probably do need it...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99297</commentid>
    <comment_count>6</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2014-01-28 14:55:35 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #3)
&gt; In both implementations I have worked on (Presto and Blink) it&apos;s the case
&gt; that the vh/vw isn&apos;t actually used internally, because as Rick says it&apos;s
&gt; extra work to make them relative to the video in this special case. Instead,
&gt; in Presto we just did the calculation using the video size internally, and
&gt; in Blink percentages are used instead.
&gt; 
&gt; So, I&apos;m quite sympathetic to having the spec use percentages instead.
&gt; However, I think the vh/vw units have a purpose for styling the text using
&gt; CSS. Without them, is there actually any unit one could use to make the text
&gt; grow and shrink with the video? This seems important to have, and the work
&gt; required to support that is the same as is required to allow the
&gt; implementation to use them internally as well...
&gt; 
&gt; Thoughts?

Yes, I see your point. Internally Firefox uses percentages that are relative to the video view port. Which technically is &apos;vw and vh with the initial containing block redefined to the video viewport&apos;. But we don&apos;t go through the trouble of actually redefining the viewport and using vh and vw units.

However, I can see how from the authors point of view it might make more sense to use vh or vw when setting WebVTT styles since their concern is only with the styles of the captions at that point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99310</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-28 17:02:44 +0000</bug_when>
    <thetext>(In reply to Rick Eyre from comment #6)
&gt; (In reply to Philip Jägenstedt from comment #3)
&gt; &gt; In both implementations I have worked on (Presto and Blink) it&apos;s the case
&gt; &gt; that the vh/vw isn&apos;t actually used internally, because as Rick says it&apos;s
&gt; &gt; extra work to make them relative to the video in this special case. Instead,
&gt; &gt; in Presto we just did the calculation using the video size internally, and
&gt; &gt; in Blink percentages are used instead.
&gt; &gt; 
&gt; &gt; So, I&apos;m quite sympathetic to having the spec use percentages instead.
&gt; &gt; However, I think the vh/vw units have a purpose for styling the text using
&gt; &gt; CSS. Without them, is there actually any unit one could use to make the text
&gt; &gt; grow and shrink with the video? This seems important to have, and the work
&gt; &gt; required to support that is the same as is required to allow the
&gt; &gt; implementation to use them internally as well...
&gt; &gt; 
&gt; &gt; Thoughts?
&gt; 
&gt; Yes, I see your point. Internally Firefox uses percentages that are relative
&gt; to the video view port. Which technically is &apos;vw and vh with the initial
&gt; containing block redefined to the video viewport&apos;. But we don&apos;t go through
&gt; the trouble of actually redefining the viewport and using vh and vw units.
&gt; 
&gt; However, I can see how from the authors point of view it might make more
&gt; sense to use vh or vw when setting WebVTT styles since their concern is only
&gt; with the styles of the captions at that point.

How have you worked around the fact that the default font is &apos;5vh sans-serif&apos;?

Regardless, I think that viewport-relative units in author-provided CSS is too important to give up on, so we&apos;ll just have to try to implement this instead. If that doesn&apos;t happen within a few years or if multiple vendors say it&apos;s just too hard (doubtful) then we&apos;ll have to revisit this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99311</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-28 17:03:28 +0000</bug_when>
    <thetext>In other words, WONTFIX for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99312</commentid>
    <comment_count>9</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2014-01-28 17:05:19 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #7)

&gt; How have you worked around the fact that the default font is &apos;5vh
&gt; sans-serif&apos;?

We&apos;re still half-way through implementing that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>