[Webkit-unassigned] [Bug 38527] New: Cannot override display:table-cell on td or display:table on table.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 4 09:30:06 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38527

           Summary: Cannot override display:table-cell on td or
                    display:table on table.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.hyperborea.org/journal/wp-content/uploads/2
                    010/05/tabletest.html
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kelson at pobox.com


Created an attachment (id=55023)
 --> (https://bugs.webkit.org/attachment.cgi?id=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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list