[Webkit-unassigned] [Bug 78905] New: Padding and border double-counted against percentage height when a child of a table-cell uses box-sizing:border-box

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 17 09:07:41 PST 2012


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

           Summary: Padding and border double-counted against percentage
                    height when a child of a table-cell uses
                    box-sizing:border-box
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: data:text/html;charset=utf-8,<!DOCTYPE%20html>%0A<tabl
                    e>%0A%20<tr>%0A%20%20<td%20style%3D"width%3A%2050px%3B
                    %20height%3A%2050px%3B%20padding%3A%200%3B%20backgroun
                    d%3A%20red%3B">%0A%20%20%20<div%20style%3D"height%3A10
                    0%25%3B%20border%3A%205px%20solid%20green%3B%20padding
                    %3A%205px%3B%20background%3A%20green%3B%20box-sizing%3
                    A%20border-box%3B"><%2Fdiv>%0A<%2Ftable>There%20should
                    %20be%20no%20red.
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tabatkins at google.com


Sorry for the hard-to-parse bug title; it's complicated.

When a child of a table cell uses box-sizing:border-box and a percentage height, its border and padding are counted twice when resolving the height.  This results in the child being shorter than it's supposed to be.

In the reduced testcase (linked from the url), the green child is set to height:100%, so it should fully cover the red table-cell.  This bug is making it smaller, so you see red poking through.

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