<?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>16889</bug_id>
          
          <creation_ts>2012-04-30 09:58:28 +0000</creation_ts>
          <short_desc>WebVTT: Should use white-space:pre-line instead of pre-wrap</short_desc>
          <delta_ts>2012-08-23 05:18:24 +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>FIXED</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="Simon Pieters">zcorpan</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>silviapfeiffer1</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>67183</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-30 09:58:28 +0000</bug_when>
    <thetext>The spec says to use CSS &apos;pre-wrap&apos; behavior for WebVTT cues (except lines are balanced). However, this leaves a space at the end of each line [1], which looks bad. I think we should collapse spaces at the end of lines in WebVTT rendering.

example:

WEBVTT

00:00:00.000 --&gt; 00:00:05.000
This is a long cue that will break on two lines.

Will render as:

line -2: &quot;This is a long cue that &quot;
line -1: &quot;will break on two lines.&quot;

It would be better if the rendered result was


line -2: &quot;This is a long cue that&quot;
line -1: &quot;will break on two lines.&quot;

(i.e. with the space after &quot;that&quot; removed)


[1] &quot;If &apos;white-space&apos; is set to &apos;pre&apos; or &apos;pre-wrap&apos;, any sequence of spaces (U+0020) unbroken by an element boundary is treated as a sequence of non-breaking spaces. However, for &apos;pre-wrap&apos;, a line breaking opportunity exists at the end of the sequence.&quot;
http://www.w3.org/TR/CSS21/text.html#white-space-model</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68202</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-05-28 09:07:00 +0000</bug_when>
    <thetext>Actually using pre-line instead of pre-wrap seems like a better solution here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71395</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-24 15:59:56 +0000</bug_when>
    <thetext>Yeah, I guess we can use pre-line instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72466</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-08-21 02:15:23 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7247.
Check-in comment: Change white-space value for VTT
http://html5.org/tools/web-apps-tracker?from=7246&amp;to=7247</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72570</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-08-22 23:46:54 +0000</bug_when>
    <thetext>I&apos;m ok with this change. But now we are removing duplicate whitespace within the cues, too. This is something that caption developers will want more control over: if they put multiple white spaces into a cue and it is significant, they currently don&apos;t have a means to specify that in the WebVTT file. What do you suggest to do in this situation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72577</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-08-23 05:04:18 +0000</bug_when>
    <thetext>Use &amp;nbsp; or change white-space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72581</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-08-23 05:18:24 +0000</bug_when>
    <thetext>OK, fair enough. :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>