<?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>25637</bug_id>
          
          <creation_ts>2014-05-09 19:52:17 +0000</creation_ts>
          <short_desc>[WebVTT] Make the padding at the edges of the video overridable using CSS</short_desc>
          <delta_ts>2014-10-17 21:21:55 +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>DUPLICATE</resolution>
          <dup_id>22085</dup_id>
          
          <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="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>silviapfeiffer1</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>105570</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-09 19:52:17 +0000</bug_when>
    <thetext>We currently have:

The &apos;padding-top&apos; and &apos;padding-bottom&apos; property on the WebVTT cue background box must be set to &apos;1.5vh&apos; or another user-agent-defined number to define a padding at the edges of the video into which cues will not be placed. In situations with overscan, this padding should be sufficient to place a cue within the title-safe area. In the absence of overscan, this value should be picked for aesthetics (to avoid text being aligned precisely on the top or bottom edge of the video, which can be ugly).

The &apos;padding-left&apos; and &apos;padding-right&apos; property on the WebVTT cue background box must be set to &apos;1.5vw&apos; or another user-agent-defined number to define a padding at the edges of the video into which cues will not be placed. In situations with overscan, this padding should be sufficient to place a cue within the title-safe area. In the absence of overscan, this value should be picked for aesthetics (to avoid text being aligned precisely on the top or bottom edge of the video, which can be ugly).

It would be very nice if this were exposed to CSS, maybe with a default of 5vh to match the default line height. For the overscan situation, the user agent can simply have a user agent stylesheet with higher priority than author CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105592</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-09 21:39:20 +0000</bug_when>
    <thetext>Oh, I see that this is actually using the wrong box, the WebVTT cue background box is the anonymous box in &quot;The children of the nodes must be wrapped in an anonymous box whose &apos;display&apos; property has the value &apos;inline&apos;.&quot;

That means these two lines won&apos;t do anything useful:

The &apos;box-sizing&apos; property on the WebVTT cue background box must be set to &apos;border-box&apos;.

The &apos;overflow&apos; property on the WebVTT cue background box must be set to &apos;hidden&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105660</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-05-12 01:17:13 +0000</bug_when>
    <thetext>Can we make the &quot;cue box&quot; that is specified in the Data Model (3.1) *be* the cue background box?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105707</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-12 11:06:00 +0000</bug_when>
    <thetext>Do you mean http://dev.w3.org/html5/webvtt/#dfn-text-track-cue-box ?

That&apos;s the box which is controlled by position, size and align, and it&apos;s a block box.

The WebVTT cue background box is an inline box, so they can&apos;t be the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107524</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-06-09 13:31:49 +0000</bug_when>
    <thetext>Let&apos;s make the block box explicit then and give it these properties. &apos;overflow&apos; is not necessary since it was meant to deal with non-clamping cues, which is now getting removed again in bug 25660 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107551</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-09 21:37:53 +0000</bug_when>
    <thetext>What should the CSS for controlling this look like?

::cue-root { padding: 10px; } ?

Or maybe ::cue { margin: 10px; } ?

Do we want to be able to control the distance between individual cues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107682</commentid>
    <comment_count>6</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-11 20:35:44 +0000</bug_when>
    <thetext>Well oops, I left some bits like &quot;minus twice the &apos;padding-top&apos; space defined in the next section&quot; when I removed the CSS settings in https://github.com/w3c/webvtt/pull/79

That should be fixed as part of this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107725</commentid>
    <comment_count>7</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-06-12 13:25:54 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #5)
&gt; What should the CSS for controlling this look like?
&gt; 
&gt; ::cue-root { padding: 10px; } ?
&gt; 
&gt; Or maybe ::cue { margin: 10px; } ?
&gt; 
&gt; Do we want to be able to control the distance between individual cues?

::cue { padding:10px; } seems good. I don&apos;t see a need to introduce a new pseudo-element for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113396</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-10-17 21:21:55 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 22085 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>