<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>104897</bug_id>
          
          <creation_ts>2012-12-13 03:01:03 -0800</creation_ts>
          <short_desc>Text Autosizing: Descendants of a narrow overflow-x:scroll should use its width as an upper bound on cluster width</short_desc>
          <delta_ts>2016-09-19 15:12:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>84186</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="John Mellor">johnme</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>avayvod</cc>
    
    <cc>dbates</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>790456</commentid>
    <comment_count>0</comment_count>
    <who name="John Mellor">johnme</who>
    <bug_when>2012-12-13 03:01:03 -0800</bug_when>
    <thetext>Consider the following situation (after bug 103627 has landed):

&lt;div style=&quot;width: 400px&quot;&gt;
  &lt;div style=&quot;overflow-x: scroll&quot;&gt;
    &lt;div style=&quot;width: 800px&quot;&gt;
      This text should be autosized to 40px computed font size (16 * 800/320), since it&apos;s wider than the lowest common ancestor of its enclosing cluster and therefore becomes a cluster itself.&lt;br&gt;
      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

The innermost div is 800px wide so will get a large textAutosizingMultiplier. But only 400px of the div will ever be visible at once, so the core assumption - that the user is going to zoom such that the full 800px of the div is onscreen at once - is false! Instead the innermost div should be autosized as if it were 400px wide (i.e. assume the user will zoom such that as much as possible [400px] of the div is onscreen at once).

In general, after computing the width of the lowest common ancestor of a cluster, this should be limited using the minimum of the widths of all overflow:scroll ancestors as an upper bound.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>790460</commentid>
    <comment_count>1</comment_count>
    <who name="John Mellor">johnme</who>
    <bug_when>2012-12-13 03:04:28 -0800</bug_when>
    <thetext>There is an instance of this in LayoutTests/fast/text-autosizing/wide-in-narrow-overflow-scroll.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1231358</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-09-19 15:12:52 -0700</bug_when>
    <thetext>Marking this bug Resolved WontFix because the TEXT_AUTOSIZING feature was removed in &lt;https://trac.webkit.org/changeset/206119&gt; (bug #162167). See bug 84186, comment 32 for more details.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>