<?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>245947</bug_id>
          
          <creation_ts>2022-10-02 10:47:51 -0700</creation_ts>
          <short_desc>Enable justified text for white-space: pre-wrap</short_desc>
          <delta_ts>2022-10-04 14:51:16 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=84448</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat</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>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1902720</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-02 10:47:51 -0700</bug_when>
    <thetext>Hi Team,

I was looking into another Blink Commit merge and noticed following:

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

Which needs to be merged here:

https://github.com/WebKit/WebKit/blob/89d57a6f366a8abe5d012e38f160f81388b46429/Source/WebCore/rendering/LegacyLineLayout.cpp#L613

and add following:

whiteSpace() == WhiteSpace::Pre

I will see whether it is easier to do or not but will try with PR. Although, I think it would be good to keep this for future.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903239</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-04 14:51:16 -0700</bug_when>
    <thetext>We don&apos;t need to do this change because we already have it fixed along the way and Safari 16 behavior is consistent with Chrome Canary 108.

Example test case - https://jsfiddle.net/b7j5412r/show

If I do this change, which I was trying to do it in below PR:

https://github.com/WebKit/WebKit/pull/4912

It reverts back us to old behavior and removed &quot;justified&quot;.

I have discussed with Alan and now closing this bug but if needed and I am not right, please let me know I will be able to turn around this patch.

Marking this as &quot;RESOLVED WORKSFORME&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>