<?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>14523</bug_id>
          
          <creation_ts>2007-07-04 11:48:15 -0700</creation_ts>
          <short_desc>nowrap attribute in table cell is ignored in strict mode</short_desc>
          <delta_ts>2022-10-05 14:12:57 -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>Tables</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin Sherlock">gsherloc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>hyatt</cc>
    
    <cc>luxigo</cc>
    
    <cc>mitz</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5599</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin Sherlock">gsherloc</who>
    <bug_when>2007-07-04 11:48:15 -0700</bug_when>
    <thetext>Steps to reproduce:

1.  Go to url (http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed)
2.  Enter search term, e.g. &quot;Watson JD&quot;[AU] AND &quot;Crick FH&quot;[AU]
3.  Hit Enter, or press the GO Button
4.  In the resulting list, the numbers are rendered below the checkboxes.  In Firefox, the numbers are rendered next to the checkboxes.  The Firefox rendering is preferable, as it is more compact (all 13 results fit easily on my screen in Firefox, but go off the bottom of my page in Safari).

Tested in using the nightly build of Safari (r23922) on 10.4.10.  This is not a regression, as shipping Safari shows the same behavior, as does the earliest available build of Webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5598</commentid>
    <comment_count>1</comment_count>
    <who name="Gavin Sherlock">gsherloc</who>
    <bug_when>2007-07-04 11:51:36 -0700</bug_when>
    <thetext>Added NeedsReduction keyword</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5595</commentid>
    <comment_count>2</comment_count>
      <attachid>15387</attachid>
    <who name="">mitz</who>
    <bug_when>2007-07-04 12:08:20 -0700</bug_when>
    <thetext>Created attachment 15387
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5593</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-07-04 12:18:09 -0700</bug_when>
    <thetext>Comment in RenderTableCell::setStyle():

        // [...] If the width of the cell is fixed, then
        // we don&apos;t actually use NOWRAP.

Firefox respects nowrap in strict mode even in fixed width cells.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5069</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-07-10 09:40:48 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Firefox respects nowrap in strict mode even in fixed width cells.

But WinIE doesn&apos;t (at least in the reduction).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65550</commentid>
    <comment_count>5</comment_count>
    <who name="Gavin Sherlock">gsherloc</who>
    <bug_when>2007-12-28 21:32:19 -0800</bug_when>
    <thetext>The actual bug appears to be fixed, at least in Safari 3.04 on Leopard (follow instructions in initial bug report and compare Safari and Firefox).  However, the reduction itself renders differently between Safari and Firefox, making me think that the reduction wasn&apos;t a valid reduction of the problem that was exhibited.  Am closing as WORKSFORME, but it would be good if there were a test associated with this bug to prevent future regressions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65688</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-12-29 22:38:51 -0800</bug_when>
    <thetext>I think this bug should be reopened to track the issue in the reduction (which still renders differently on Firefox 2.0.0.11 versus ToT WebKit).

I think the web site has probably changed from using tables to using div&apos;s and stylesheets.  (Mitz wouldn&apos;t have reduced a page without tables to a reduction using a table.)

The question is whether to follow MSIE&apos;s behavior or Firefox&apos;s behavior.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216879</commentid>
    <comment_count>7</comment_count>
    <who name="">luxigo</who>
    <bug_when>2010-04-25 20:28:43 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; The question is whether to follow MSIE&apos;s behavior or Firefox&apos;s behavior.

Maybe an option could be added to ask chrome to follow MSIE behaviour or Firefox behaviour on this case :)

I have the same problem: nowrap for TD of fixed width is ignored.

I use a second table as table header in a web based database management application, so that the column headers are still displayed when scrolling the table below. For this i must set a fixed width for cells in both tables.

Yeah i do use &lt;table&gt; for this, no offense to css dogmatists although: i do use css for the general layout :)

To keep the table as compact as possible, i use the table cells width to resize column header cells with javascript, then i use the column header cells width to resize table cells when width mismatch (ie: when the header cell content width is wider than the cell content width )

The problem with chrome is that the sorting icon (img) beside the column header label appears on the line below when the header cell content is wider than the table cell content.

It works nicely with Firefox. I will never make it MSIE compatible because beside the fact i hate MS anti-interoperability policy, i dont run Windows; but i love Chrome javascript native engine.

Please do something :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551552</commentid>
    <comment_count>8</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-07 16:46:38 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; The question is whether to follow MSIE&apos;s behavior or Firefox&apos;s behavior.

In the presence of nowrap and a width, Firefox 12a in strict mode will not wrap.  Firefox in quirks mode will wrap.

IE in quirks mode and versions up to IE7 will also wrap.  IE8 and IE9 in standards mode will not wrap.

WebKit will always wrap.  It seems like to be consistent with other browsers, WebKit should not wrap in standards mode and wrap in quirks mode.

If someone wanted to fix this, the code is in CSSStyleSelector::adjustRenderStyle (the check against KHTML_NOWRAP).  That said, I&apos;m not sure how much of an issue this is today.  It would have to be a page rendering in standards mode using the nowrap attribute on a table cell.  The workaround is to use CSS white-space: nowrap instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881448</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-07 12:44:50 -0700</bug_when>
    <thetext>This continues to be an issue in Safari 15.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881449</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-07 12:45:01 -0700</bug_when>
    <thetext>&lt;rdar://problem/96618379&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1903524</commentid>
    <comment_count>11</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-05 14:12:57 -0700</bug_when>
    <thetext>(In reply to Radar WebKit Bug Importer from comment #10)
&gt; &lt;rdar://problem/96618379&gt;

This got fixed in Safari Technical Preview 155 because I removed -webkit-nowrap and also KHTML. So we don&apos;t have this quirk anymore.

Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15387</attachid>
            <date>2007-07-04 12:08:20 -0700</date>
            <delta_ts>2007-07-04 12:08:20 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>14523 reduction.html</filename>
            <type>text/html</type>
            <size>164</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KICAgIDx0YWJsZT4K
ICAgICAgICA8dHI+CiAgICAgICAgICAgIDx0ZCBub3dyYXAgd2lkdGg9IjEwIj5Mb3JlbSBpcHN1
bTwvdGQ+CiAgICAgICAgPC90cj4KICAgIDwvdGFibGU+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>