<?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>259958</bug_id>
          
          <creation_ts>2023-08-08 17:07:26 -0700</creation_ts>
          <short_desc>Support text-wrap: balance in legacy line layout</short_desc>
          <delta_ts>2024-01-29 12:30:43 -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>WebKit Nightly Build</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="David Choi">david_choi5</reporter>
          <assigned_to name="David Choi">david_choi5</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ntim</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>1970202</commentid>
    <comment_count>0</comment_count>
    <who name="David Choi">david_choi5</who>
    <bug_when>2023-08-08 17:07:26 -0700</bug_when>
    <thetext>Given that IFC and LFC are radically different in their treatment of laying out inline content, there must exist a separate implementation of `text-wrap: balance` in both codepaths. IFC is easier to work with, and therefore allows more complex implementations of text-balancing than LFC. In LFC, if we decide to implement `text-wrap: balance`, then it will likely have to be a simple approach, such as a binary search approach that runs line layout in a loop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970203</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-08 17:08:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/113595624&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970206</commentid>
    <comment_count>2</comment_count>
    <who name="David Choi">david_choi5</who>
    <bug_when>2023-08-08 17:16:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16502</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970208</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-08-08 17:20:52 -0700</bug_when>
    <thetext>(In reply to David Choi from comment #0)
&gt; Given that IFC and LFC are radically different in their treatment of laying
&gt; out inline content, there must exist a separate implementation of
&gt; `text-wrap: balance` in both codepaths. IFC is easier to work with, and
&gt; therefore allows more complex implementations of text-balancing than LFC. In
&gt; LFC, if we decide to implement `text-wrap: balance`, then it will likely
&gt; have to be a simple approach, such as a binary search approach that runs
&gt; line layout in a loop.
Just a small correction; LFC stands for Layout Formatting Context. It is an umbrella project for WebKit&apos;s next-gen layout. IFC (Inline Formatting Context) is part of this initiative and it implements CSS inline layout.
Legacy line layout is the fallback codepath for content not supported by IFC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008601</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2024-01-29 12:30:43 -0800</bug_when>
    <thetext>not applicable anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>