<?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>17473</bug_id>
          
          <creation_ts>2012-06-12 15:45:36 +0000</creation_ts>
          <short_desc>WebVTT: Overflowing cues should be clipped, not removed</short_desc>
          <delta_ts>2015-06-08 10:00: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>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></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>
          
          <blocked>17218</blocked>
    
    <blocked>19458</blocked>
    
    <blocked>28267</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Philip Jägenstedt">philipj</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-texttracks</cc>
    
    <cc>victor.carbune</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>68993</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-12 15:45:36 +0000</bug_when>
    <thetext>Step 10.14 of http://dev.w3.org/html5/webvtt/#webvtt-cue-text-rendering-rules is:

&quot;Done positioning: If there are any line boxes in the (possibly now repositioned) boxes that do not completely fit inside video&apos;s rendering area, remove those offending line boxes from boxes.&quot;

Rather than trying to remove parts of cues that fall outside of the video content area, we&apos;d like to apply overflow:hidden to simply clip to the content area. This is easier to implement and is slightly better: a line overflow by a single pixel will still be readable. (I bet it would also be easier to do in a polyfill, FWIW.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69173</commentid>
    <comment_count>1</comment_count>
    <who name="vcarbune">victor.carbune</who>
    <bug_when>2012-06-17 22:55:48 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Step 10.14 of http://dev.w3.org/html5/webvtt/#webvtt-cue-text-rendering-rules
&gt; is:
&gt; 
&gt; &quot;Done positioning: If there are any line boxes in the (possibly now
&gt; repositioned) boxes that do not completely fit inside video&apos;s rendering area,
&gt; remove those offending line boxes from boxes.&quot;
&gt; 
&gt; Rather than trying to remove parts of cues that fall outside of the video
&gt; content area, we&apos;d like to apply overflow:hidden to simply clip to the content
&gt; area. This is easier to implement and is slightly better: a line overflow by a
&gt; single pixel will still be readable. (I bet it would also be easier to do in a
&gt; polyfill, FWIW.)
I second Philip&apos;s suggestion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71400</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-24 16:08:31 +0000</bug_when>
    <thetext>Having clipped text everywhere is pretty ugly. Are we really sure we want this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71500</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-07-26 08:27:43 +0000</bug_when>
    <thetext>Not everywhere, just when there was no way fit the cue inside the rendering area, which is a pretty extreme situation. The option is between seeing nothing (current spec) and seeing something (clipping), and clipping seems easier to implement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71862</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-06 21:29:51 +0000</bug_when>
    <thetext>So we&apos;re saying that if the frame is completely filled with captions such that a new caption can&apos;t be put in, we&apos;re to require that the subtitle be added anyway, just overlapping or overflowing or something.

I guess I can spec that. I&apos;ll have to study the algorithm again to work out what exactly to require.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71878</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-07 08:31:01 +0000</bug_when>
    <thetext>To clarify, the only suggestion in this bug is to rely on CSS (overflow:hidden) to hide overflowing cues, instead of having the algorithm remove the line boxes. Changing the layout algorithm to avoid overflow/overlap in the first place is discussed in bug 17483.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75882</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-10 21:37:03 +0000</bug_when>
    <thetext>So... what are we putting overflow:hidden _on_? Or should I just replace the current rule in the WebVTT &quot;Done positioning&quot; step that removes the overflowing cues with a rule that says that you must clip the rendering of cues that go outside the video&apos;s rendering area?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76100</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-12 13:27:08 +0000</bug_when>
    <thetext>A non-overridable overflow:hidden on video or on an invisible child cue root box (which is what Opera has) would work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76101</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-12 13:27:44 +0000</bug_when>
    <thetext>By invisible I of course mean invisible to scripts, not visibility:hidden or anything like that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76543</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-17 23:54:25 +0000</bug_when>
    <thetext>I don&apos;t think the spec has such a concept yet. I think I need to just say that all cues must be clipped to the edge of whatever overall box they&apos;re being rendered in, or some such, rather than using &apos;overflow&apos; itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76562</commentid>
    <comment_count>10</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-18 07:48:51 +0000</bug_when>
    <thetext>Yeah, that would be fine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>