<?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>247722</bug_id>
          
          <creation_ts>2022-11-10 01:33:14 -0800</creation_ts>
          <short_desc>Mismatched whitespace widths cause a wrong width of inline box</short_desc>
          <delta_ts>2022-12-21 14:26:37 -0800</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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911490</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-10 01:33:14 -0800</bug_when>
    <thetext>Hi Team,

This is another blink commit, which we can merge to fix few more edge cases of whitespace in inline box.

Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=195307

Webkit Source - https://github.com/WebKit/WebKit/blob/7a292520f6b12e8d4d9001d1480474b5c83cb0f8/Source/WebCore/rendering/RenderBlockFlow.cpp#L4099

Just wanted to create a bug report before trying.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911502</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-11-10 04:17:21 -0800</bug_when>
    <thetext>Ahmad,

I am not sure there is anything to do here.
At least with regards to the test available in the chromium project.
The test as-is passes on Safari Technical Preview 157, Firefox Nightly 108, Chromium 109</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911514</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-10 05:06:14 -0800</bug_when>
    <thetext>(In reply to Karl Dubost from comment #1)
&gt; Ahmad,
&gt; 
&gt; I am not sure there is anything to do here.
&gt; At least with regards to the test available in the chromium project.
&gt; The test as-is passes on Safari Technical Preview 157, Firefox Nightly 108,
&gt; Chromium 109

This change led to failing following:

Test Case - https://github.com/WebKit/WebKit/blob/main/LayoutTests/fast/text/simple-line-layout-fallback-space-glyph.html

@Alan - we have following in expected file of above:

&lt;!-- webkit-test-runner [ InlineFormattingContextIntegrationEnabled=false ] --&gt;

Does this fix bug in legacy pipeline?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911515</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-10 05:06:28 -0800</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/6342</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913130</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-17 01:34:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/102456945&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913176</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-17 08:13:24 -0800</bug_when>
    <thetext>As discussed with Alan on PR, it seems that it has some pre-requisite, which I will look into later but for time being I have closed my PR because the longer, it will be the more issue it might have and can have merge conflicts etc. So I am going to still investigate about what is the pre-requisite of this and then will try to land both in one go. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919956</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-16 09:11:43 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #0)
&gt; Hi Team,
&gt; 
&gt; This is another blink commit, which we can merge to fix few more edge cases
&gt; of whitespace in inline box.
&gt; 
&gt; Blink Commit -
&gt; https://src.chromium.org/viewvc/blink?view=revision&amp;revision=195307
&gt; 
&gt; Webkit Source -
&gt; https://github.com/WebKit/WebKit/blob/
&gt; 7a292520f6b12e8d4d9001d1480474b5c83cb0f8/Source/WebCore/rendering/
&gt; RenderBlockFlow.cpp#L4099
&gt; 
&gt; Just wanted to create a bug report before trying.
&gt; 
&gt; Thanks!

This was regression fix from this change:

https://src.chromium.org/viewvc/blink?revision=192404&amp;view=revision

^ I am not sure whether we have an issue about float conversion issue or not.

Link - https://github.com/WebKit/WebKit/blob/703f285930dc2b9c229d5630872d7bd52858171d/Source/WebCore/rendering/RenderText.cpp#L809</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921234</commentid>
    <comment_count>7</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2022-12-21 14:26:37 -0800</bug_when>
    <thetext>Yeah, I don&apos;t think this applies to us (also IFC does not use this codepath for computing preferred widths anymore.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>