<?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>192750</bug_id>
          
          <creation_ts>2018-12-17 01:23:56 -0800</creation_ts>
          <short_desc>SLL: innerText should preserve leading whitespace when the out-of-flow (or float) element starts with collapsed new line(s).</short_desc>
          <delta_ts>2025-03-11 22:04:44 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193628</see_also>
          <bug_file_loc>https://bugs.chromium.org/p/chromium/issues/detail?id=916540</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, Gtk, InRadar, LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>289597</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>aboya</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>emilio</cc>
    
    <cc>koivisto</cc>
    
    <cc>mcatanzaro</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>1488404</commentid>
    <comment_count>0</comment_count>
      <attachid>357429</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-12-17 01:23:56 -0800</bug_when>
    <thetext>Created attachment 357429
Test case

Several tests started to fail for GTK+ port when we switched to always use complex text. See for example:

https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r239206%20(9103)/fast/css/getComputedStyle/computed-style-font-family-pretty-diff.html

Note that the only difference is that the expected output doesn&apos;t have a space between &quot;Firefox behavior.&quot; and &quot;stopPropagation called.&quot; This is because the simple line layout code path is taken in TextIterator::handleTextNode(). When forcing complex text, that path is not taken and a space is added, which is the correct behavior I guess. I&apos;ve created a simple test to check this, see the attached file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1488436</commentid>
    <comment_count>1</comment_count>
      <attachid>357439</attachid>
    <who name="alan">zalan</who>
    <bug_when>2018-12-17 07:48:41 -0800</bug_when>
    <thetext>Created attachment 357439
Test case2

Apparently we are supposed to preserve the collapsed new line for out of flow elements (and floats too).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1489296</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-12-19 06:55:33 -0800</bug_when>
    <thetext>*** Bug 192851 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491063</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-12-31 05:36:28 -0800</bug_when>
    <thetext>Committed r239564: &lt;https://trac.webkit.org/changeset/239564&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491064</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-12-31 05:39:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/46987463&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491144</commentid>
    <comment_count>5</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-01-02 08:26:20 -0800</bug_when>
    <thetext>I bet this wasn&apos;t meant to be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491145</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2019-01-02 08:30:06 -0800</bug_when>
    <thetext>(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)
&gt; I bet this wasn&apos;t meant to be closed.
Yeah, I was wondering about that too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491386</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-01-02 23:46:30 -0800</bug_when>
    <thetext>I think it&apos;s a bug in webkit-patch. I landed a gardening patch mentioning this bug in the changelog description (not in the title), and decided to close this. I&apos;ll try to remember to use --no-close option next time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896078</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-03 14:20:14 -0700</bug_when>
    <thetext>Test case 2 is broken on macOS 12.5.1 in Safari Technology Preview 152 as well, it does not move &quot;here&quot; to next line like other browsers (Chrome Canary 107 and Firefox Nightly 106).

*** Safari 15.6.1 / STP 152 ***

Pass if there&apos;s a whitespace here

*** Chrome Canary 107 &amp; Firefox Nightly 106 ***

Pass if there&apos;s a whitespace 
here

_________

Just wanted to share updated status. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>357429</attachid>
            <date>2018-12-17 01:23:56 -0800</date>
            <delta_ts>2018-12-17 01:23:56 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>simple-line-layout-innerText-space.html</filename>
            <type>text/html</type>
            <size>495</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHNjcmlwdCBzcmM9Ii4uLy4uL3Jlc291cmNl
cy9qcy10ZXN0LXByZS5qcyI+PC9zY3JpcHQ+CjwvaGVhZD4KPGJvZHk+CjxkaXYgaWQ9InRlc3Qi
PgogIGZvby4KPGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDUwOyBsZWZ0OiA1
MCI+CiAgYmFyCjwvZGl2Pgo8L2Rpdj4KPHNjcmlwdD4KZGVzY3JpcHRpb24oIlRoaXMgdGVzdHMg
dGhhdCBzcGFjZSBpcyBhZGRlZCBhZnRlciBhIGRvdCBmb3IgaW5uZXIgdGV4dCBpbiBzaW1wbGUg
bGluZSBsYXlvdXQgbW9kZSIpOwpzaG91bGRCZSgiZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3Rl
c3QnKS5pbm5lclRleHQiLCAiJ2Zvby4gYmFyJyIpOwpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgn
dGVzdCcpLmlubmVySFRNTD0gIiI7Cjwvc2NyaXB0Pgo8c2NyaXB0IHNyYz0iLi4vLi4vcmVzb3Vy
Y2VzL2pzLXRlc3QtcG9zdC5qcyI+PC9zY3JpcHQ+CjwvYm9keT4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>357439</attachid>
            <date>2018-12-17 07:48:41 -0800</date>
            <delta_ts>2018-12-17 07:48:41 -0800</delta_ts>
            <desc>Test case2</desc>
            <filename>sll-trailing-whitespace.html</filename>
            <type>text/html</type>
            <size>143</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PGRpdiBpZD0idGVzdCI+UGFzcyBpZiB0aGVyZSdzIGEgd2hpdGVzcGFjZTxkaXYgc3R5bGU9InBv
c2l0aW9uOiBhYnNvbHV0ZTsiPgpoZXJlPC9kaXY+PC9kaXY+PHNjcmlwdD50ZXN0LmlubmVyVGV4
dCA9IHRlc3QuaW5uZXJUZXh0Ozwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>