<?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>35443</bug_id>
          
          <creation_ts>2010-02-26 12:17:53 -0800</creation_ts>
          <short_desc>inline-block not honored as white-space:pre&apos;s last-child of a line</short_desc>
          <delta_ts>2022-07-11 17:03:37 -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>CSS</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>bradley.meck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>kenorb</cc>
    
    <cc>kevincox</cc>
    
    <cc>laughinghan</cc>
    
    <cc>marijnh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>194206</commentid>
    <comment_count>0</comment_count>
      <attachid>49611</attachid>
    <who name="">bradley.meck</who>
    <bug_when>2010-02-26 12:17:53 -0800</bug_when>
    <thetext>Created attachment 49611
Test Case

When an inline-block element is displayed at the end of an element with white-space:pre it will wrap to a new line if it is the last element on a line. According to the spec it seems that the inline-block should stay on the same line and not wrap to a new line when this occurs. A workaround but oddity is to include a non-empty TextNode after the inline-block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967596</commentid>
    <comment_count>1</comment_count>
    <who name="Han">laughinghan</who>
    <bug_when>2014-01-13 18:30:01 -0800</bug_when>
    <thetext>This bug is still extant in Chrome 31.0.1650.63 (Official Build 238485) and Safari 7.0 (9537.71), on both Mac OS X 10.9 and Windows 7.

A workaround I found that doesn&apos;t add undesirable whitespace is to add an empty :after pseudo-element: http://jsbin.com/oQuBAmIJ/1/edit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045002</commentid>
    <comment_count>2</comment_count>
    <who name="Marijn Haverbeke">marijnh</who>
    <bug_when>2014-10-30 02:29:35 -0700</bug_when>
    <thetext>I just want to confirm that this bug still exists (I got a bug report that is caused by this -- https://github.com/codemirror/CodeMirror/issues/2901). Would be wonderful if someone could take a look at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125469</commentid>
    <comment_count>3</comment_count>
    <who name="kenorb">kenorb</who>
    <bug_when>2015-09-13 05:52:37 -0700</bug_when>
    <thetext>Possibly related:

- http://meta.stackexchange.com/questions/266258/left-side-markdown-diff-outside-of-its-area
- http://stackoverflow.com/questions/2316098/prevent-inline-block-from-wrapping-on-white-space-pre</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882256</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-11 17:03:37 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox show the same rendering behavior for this test case. I do not believe any further compatibility issue remains.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>49611</attachid>
            <date>2010-02-26 12:17:53 -0800</date>
            <delta_ts>2010-02-26 12:17:53 -0800</delta_ts>
            <desc>Test Case</desc>
            <filename>inline-block-wrap.html</filename>
            <type>text/html</type>
            <size>792</size>
            <attacher>bradley.meck</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgpUaGUgc3BhbiBzaG91bGQgYmUgYXQgdGhlIGVuZCBvZiB0aGlzIHRleHQ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