<?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>26020</bug_id>
          
          <creation_ts>2014-06-09 15:13:36 +0000</creation_ts>
          <short_desc>[WebVTT] Support centering a cue whose lines are not themselves centered</short_desc>
          <delta_ts>2014-06-11 11:44:51 +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>NEW</bug_status>
          <resolution></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>
          
          <blocked>26021</blocked>
          <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>107535</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-09 15:13:36 +0000</bug_when>
    <thetext>https://www.w3.org/Bugs/Public/show_bug.cgi?id=25632#c25
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25632#c27

Use case: &quot;You have a cue with several short lines and you want their left edges to align. Then you want to position the bounding box of those lines so that it is centered around a fixed point beneath the speaker.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107538</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-09 15:19:46 +0000</bug_when>
    <thetext>I had one proposal for this in https://www.w3.org/Bugs/Public/show_bug.cgi?id=25632#c27 but I think it would be better with a solution where the correct text-align value is used from the start and only the cue position is adjusted to achieve the same result. Unfortunately I don&apos;t know if that&apos;s even possible.

It might be a good idea to consult with CSS and SVG experts to see if they&apos;ve thought about something like this before. SVG has a text-anchor attribute, but it doesn&apos;t really do the same thing because it&apos;s only for a single line: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-anchor</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107539</commentid>
    <comment_count>2</comment_count>
    <who name="nigelmegitt">nigel.megitt</who>
    <bug_when>2014-06-09 15:23:29 +0000</bug_when>
    <thetext>Flagging up that we have the same requirement in TTML, with a proposed mapping to CSS flex box for display purposes [1]. It&apos;d be neat to converge on the mapping for display purposes, though obviously the syntax will be different.

[1] https://www.w3.org/wiki/TTML/changeProposal015#multiple_row_alignment_.28flex_box_in_CSS_mapping.29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107553</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-09 21:50:47 +0000</bug_when>
    <thetext>That&apos;s interesting. It looks like one can use e.g. justify-content: flex-end to right-align the content of a flex box. That makes me wrong, because apparently you can do this thing in CSS, which makes me somewhat less skeptical of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107649</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-06-11 11:44:51 +0000</bug_when>
    <thetext>When fixing this, don&apos;t forget to revisit the maximum size calculation:
https://github.com/w3c/webvtt/pull/105#issuecomment-45603644</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>