<?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>38527</bug_id>
          
          <creation_ts>2010-05-04 09:30:06 -0700</creation_ts>
          <short_desc>Cannot override display:table-cell on td or display:table on table.</short_desc>
          <delta_ts>2022-10-21 18:09:42 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://www.hyperborea.org/journal/wp-content/uploads/2010/05/tabletest.html</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>kelson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>freemabr+webkit</cc>
    
    <cc>igor.oliveira</cc>
    
    <cc>josh</cc>
    
    <cc>me</cc>
    
    <cc>rniwa</cc>
    
    <cc>rob_waring</cc>
    
    <cc>search2shokrish</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>220629</commentid>
    <comment_count>0</comment_count>
      <attachid>55023</attachid>
    <who name="">kelson</who>
    <bug_when>2010-05-04 09:30:06 -0700</bug_when>
    <thetext>Created attachment 55023
Testcase

Using CSS to override the display property on td or table does not work, but overriding the property on tr does. This can lead to strange results if a page wants to unwrap a table by making them all display:block, or display:inline.

On td elements, the developer tools show display:table-cell crossed out in the user-agent stylesheet, and display:block in the inline or attached stylesheet as active, but the computed style shows display:table-cell.   

The same applies for table elements and display:table, or for trying to override either with display:inline instead.  In all cases the default values are shown crossed out, and the overridden values are shown active, but the computer style is back to the default.

On tr, however, overriding display *does* work as expected. The default display:table-row is crossed out, and the display:block from the inline stylesheet is shown as active...but the computed style and actual layout *do* reflect display:block.

This can make for some unexpected behavior if a page tries to unwrap a table (for small-screen display, for instance), as the table rows will stop behaving as rows, but the cells will continue to behave as table cells.

Found in Chrome 4 and Safari 4, and confirmed in the WebKit r58686 nightly. Firefox 3.6 and Opera 10.5 successfully override the values, while Internet Explorer 8 does not change any of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576060</commentid>
    <comment_count>1</comment_count>
    <who name="Rob Waring">rob_waring</who>
    <bug_when>2012-03-12 04:20:16 -0700</bug_when>
    <thetext>I can confirm this bug, it&apos;s currently causing me pain trying create a responsive design.

Thanks

Rob</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>891251</commentid>
    <comment_count>2</comment_count>
    <who name="Brandon Freeman">freemabr+webkit</who>
    <bug_when>2013-05-20 10:47:17 -0700</bug_when>
    <thetext>I want to add to this bug, not because it really is a bug, but I don&apos;t think what it is doing is quite complete.  It looks like webkit won&apos;t override the display properties because a doctype isn&apos;t declared.  So, you would need &lt;!DOCTYPE html&gt; at the top of your document.  Now, this is all fine and dandy, but it seems to only enforce this on td, and not th or any other part of the table.  This seems silly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068683</commentid>
    <comment_count>3</comment_count>
    <who name="Joey Hoer">me</who>
    <bug_when>2015-02-12 11:37:23 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; I want to add to this bug, not because it really is a bug, but I don&apos;t think
&gt; what it is doing is quite complete.  It looks like webkit won&apos;t override the
&gt; display properties because a doctype isn&apos;t declared.  So, you would need
&gt; &lt;!DOCTYPE html&gt; at the top of your document.  Now, this is all fine and
&gt; dandy, but it seems to only enforce this on td, and not th or any other part
&gt; of the table.  This seems silly.

This resolved the issue for me, but I agree that this should be considered a bug, and should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1105679</commentid>
    <comment_count>4</comment_count>
    <who name="vuntie">search2shokrish</who>
    <bug_when>2015-06-30 07:03:09 -0700</bug_when>
    <thetext>Hi All,
I have this same problem for responsive design. I do have &lt;!DOCTYPE html&gt; on my webpage but still doesn&apos;t work. However, if i append my css code internally instead of external css,  it works or override the inline css. I really don&apos;t understand why it doesn&apos;t work when i keep same css code in external css though. 

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125981</commentid>
    <comment_count>5</comment_count>
    <who name="WebDevJoshB">josh</who>
    <bug_when>2015-09-15 09:21:30 -0700</bug_when>
    <thetext>This is still a bug in responsive design. It wasn&apos;t an issue for me until the last Chrome update 45.0.2454.85. I do have a doctype declared, and the problem still exists.

For mobile, I have my code and CSS to display a table&apos;s table-cells as intended on mobile landscape view (media query: less than 599px wide), but for mobile portrait (media query: less than 480px), table cells are set to display:block and width:100%.

Initially when the page loads, everything works, but if you switch from portrait to landscape back to portrait, or if you&apos;re in a web browser and keep resizing your screen at those responsive breakpoints, the portrait tables will appear as a hybrid of display:table-cell and display:block. I have no other CSS overriding the section, and when using Dev Tools to check the styles, the useragent overrides the display setting to table-cell.

I created a codepen for this: http://codepen.io/WebDevJoshB/pen/JYGBvB

Be sure to resize the browser a few times at those break points mentioned above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1126054</commentid>
    <comment_count>6</comment_count>
    <who name="WebDevJoshB">josh</who>
    <bug_when>2015-09-15 11:13:58 -0700</bug_when>
    <thetext>sorry, can&apos;t see how to update. This only happens when there are more than two table cells. On two, things are fine. When I increase to 3 or greater, that&apos;s when the issue appears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1126070</commentid>
    <comment_count>7</comment_count>
    <who name="WebDevJoshB">josh</who>
    <bug_when>2015-09-15 11:34:00 -0700</bug_when>
    <thetext>I found a solution; if you set the containing table row &lt;tr&gt; to display:table-cell, it will render as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886375</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-24 10:59:35 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 on macOS 12.6 using attached test case, Safari is broken in following cases:

Unwrapped Table (Block)

Unwrapped Table (Inline)

Mixed Table (Cells Only)

Mixed Table (Cells and Table)

Chrome Canary 106 and Firefox Nightly 104 matches with each other. Just wanted to share updated status. If it is duplicate of any other bug, please mark it as so. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886469</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-24 21:48:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/97531834&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907472</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-21 18:09:42 -0700</bug_when>
    <thetext>I think it was a quirk which I removed since now Safari Technology Preview 156 matches with Chrome Canary 109 and Firefox Nightly 108.

Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>55023</attachid>
            <date>2010-05-04 09:30:06 -0700</date>
            <delta_ts>2010-05-04 09:30:06 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>tabletest.html</filename>
            <type>text/html</type>
            <size>2559</size>
            <attacher>kelson</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjx0aXRsZT5UYWJs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