<?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>183642</bug_id>
          
          <creation_ts>2018-03-14 13:02:24 -0700</creation_ts>
          <short_desc>WebKit ignores the nowrap on &lt;td nowrap=&quot;nowrap&quot;&gt;, if an absolute width is specified</short_desc>
          <delta_ts>2022-09-14 23:03:19 -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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mmaxfield</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>1406478</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2018-03-14 13:02:24 -0700</bug_when>
    <thetext>STEPS TO REPRODUCE:
(1) Load https://jsfiddle.net/b87re0vw/

EXPECTED RESULTS:
None of the text inside the tables should wrap.

ACTUAL RESULTS:
The text inside the second table *does* wrap, for no clear reason.


MORE INFO:
In both cases, there is a &lt;td nowrap=&quot;nowrap&quot;&gt;.

In the first table, that gives the descendant div a computed &quot;white-space&quot; of &quot;nowrap&quot;. But in the second table, it does not, for some reason. The only difference is that the second table has an explicit width on its &lt;td&gt; element (which in this example is quite large, so it&apos;s not causing wrapping by being the thing that constrains the width).

Devtools shows me that this nowrap=&quot;nowrap&quot; behavior involves the following UA stylesheet rule:
&gt; td[Attributes Style] {
&gt;     white-space: -webkit-nowrap;
&gt; }

And apparently -webkit-nowrap has some magic &quot;width&quot; dependence, or something...? not sure. Anyway, Firefox and Edge are consistent on this -- they render both tables with no line wrapping.

Chrome/Blink matches WebKit, for now, though I reported this in their bug tracker as https://bugs.chromium.org/p/chromium/issues/detail?id=821915</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1406480</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2018-03-14 13:04:48 -0700</bug_when>
    <thetext>(Note: the devtools referenced in comment 0 are from Chrome, but I assume they correspond to a UA stylesheet that&apos;s common between Blink &amp; WebKit.  Rendering-wise, I tested in Safari 11 on High Sierra and got &quot;Actual Results&quot; from comment 0.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896925</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-07 16:25:04 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 153 and using JSFiddle from Comment 0 and it shows &quot;td has specified width:&quot; does not respect &quot;no wrap&quot; while both Firefox Nightly 106 and Chrome Canary 107 matches with each other. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896930</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-07 16:43:52 -0700</bug_when>
    <thetext>Let&apos;s try to merge Chromium / Blink patch.

https://github.com/WebKit/WebKit/pull/4114</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898645</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-14 23:02:46 -0700</bug_when>
    <thetext>Committed 254505@main (cb185fe86778): &lt;https://commits.webkit.org/254505@main&gt;

Reviewed commits have been landed. Closing PR #4351 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898646</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-14 23:03:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/99953830&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>