<?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>110023</bug_id>
          
          <creation_ts>2013-02-16 11:19:24 -0800</creation_ts>
          <short_desc>non conforming behaviour of whitespace: pre-wrap and pre in textareas</short_desc>
          <delta_ts>2017-07-18 08:27:36 -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>Text</component>
          <version>420+</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="g. papa">etasho</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jparent</cc>
    
    <cc>pkasting</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>834767</commentid>
    <comment_count>0</comment_count>
    <who name="g. papa">etasho</who>
    <bug_when>2013-02-16 11:19:24 -0800</bug_when>
    <thetext>Hello,
this is my first bug report, so please bear with me if my post doesn&apos;t live up to the standards of the typical bug reports found here.

According to the specification, white-space: pre-wrap should not collapse sequences of white space at the end of the line in a textarea, however webkit based browsers do not conform to this. On the contrary all other rendering engines ( gecko, presto, trident ) have the same behaviour: they break sequences of whitespaces and move the broken part to the next line.

gecko, presto, trident (ff, opera, ie): 

* white-space: pre-wrap; Breaks sequences of whitespaces at the end of the line ( correct behaviour ) and moves too-long-to-fit words to the next line ( correct behaviour )


webkit ( chrome, safari ):

* white-space: pre-wrap; Collapses sequences of whitespaces at the end of the line ( wrong behaviour ) and moves too-long-to-fit words to the next line ( correct behaviour )

If you visit this jsfiddle: http://jsfiddle.net/LXUEe/2/ and you place the cursor in the textarea and start entering consecutive spaces, you will see that the cursor will just get &quot;stucked&quot; at the end of the box ( whitespace collapsing ). No other browser ( rendering engine ) other than chrome/safari does this. The correct ( desired ) behaviour for whitespaces, should be the one it would have if you set white-space: pre; and I would happily use that if chrome didn&apos;t break words ( maybe another bug? -- unlike every other browser ) at the end of the line, instead of moving them to the next line.

So due to this bug, it&apos;s not possible to have in webkit a textarea which simultaneously doesn&apos;t break too-long-to-fit words AND doesn&apos;t collapse sequences of white-spaces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>855485</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2013-03-14 14:15:18 -0700</bug_when>
    <thetext>Ryosuke, can you triage?  I think you&apos;re a knowledgeable textarea person, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869929</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2013-04-05 11:56:01 -0700</bug_when>
    <thetext>CCing some more text editing people.  I&apos;m not really sure who knows about this stuff.  Also now that Blink has happened I don&apos;t know if Google people are paying attention to webkit bugs, but here&apos;s hoping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869942</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-04-05 12:11:34 -0700</bug_when>
    <thetext>This is intentionally done in order to match standard word processing behavior (e.g. TextEdit, MS Word, etc. all do this). That said, I agree that the web doesn&apos;t need or want this behavior. This is likely something we&apos;ll change in Blink once we find the time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>