[Webkit-unassigned] [Bug 56982] New: table{border:value} causes cell borders to disappear on <table border=value>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 23 18:04:45 PDT 2011


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

           Summary: table{border:value} causes cell borders to disappear
                    on <table border=value>
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://software.hixie.ch/utilities/js/live-dom-viewer/
                    saved/888
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xn--mlform-iua at xn--mlform-iua.no


* HTML5 says that the presence of @border attribute on a table element, should lead to 1px wide borders for all cells in the table.
   http://dev.w3.org/html5/spec/rendering.html#decohints
   (See bottom of the code examples of this section.)

* Thus, according to HTML5, @border, when used inside <table>, in practise is a boolean attribute.

   And, apart from the bug(s) documented in this very bug, this is what Webkit does too.

   The bug, though, is this: if the author adds a border on the parent element - that is: on the <table> element, then the borders aroun the cells disappear.
   The same does not happen in IE, Opera, Firefox.

Example 1: Here there is a border around all cells in all Web browsers:
     <table border="1"><tr><td>...<td>...</tr></table>

Example 2: Here there is a border around all cells in "all" Web browsers - EXCEPT in Webkit
      <style>table{border:1px solid blue}
     <table border="1"><tr><td>...<td>...</tr></table>

Example3: This example is like Ex 2, except that it uses inline CSS - then the borders do not disappear.
     <table style="border:1px solid" border="1"><tr><td>...</tr></table>

Example 4:  When the value of border = "0", what then? Well, according to HTML5, there should be a 1px wide border still. And at any rate, it should be possible to undoo the styling caused by the @border. However, <table border=0> have similar bugs as documented in Example 2 and 3.

-- 
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