[Webkit-unassigned] [Bug 78905] 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 16:21:46 PST 2012


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





--- Comment #3 from Joe Thomas <joethomas at motorola.com>  2012-02-17 16:21:46 PST ---
(In reply to comment #2)
> (From update of attachment 127666 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=127666&action=review
> 
> > Source/WebCore/rendering/RenderBox.cpp:-2151
> > -        if (includeBorderPadding) {
> > -            // It is necessary to use the border-box to match WinIE's broken
> > -            // box model.  This is essential for sizing inside
> > -            // table cells using percentage heights.
> > -            result -= borderAndPaddingLogicalHeight();
> > -            result = max<LayoutUnit>(0, result);
> > -        }
> 
> This looks like it was an intentional quirk?  This didn't change any other test results?

The comment says that it is done to match with WinIE. But I tested with IE9 and it gives me the same height for table-cell and child element. Looks like IE changed their behavior. 

Also as per the spec http://www.w3.org/TR/css3-ui/#box-sizing0, if     box-sizing is set to content-box, the padding and border of the element are laid out and drawn outside the specified width and height. This cannot be achieved if we subtract padding and border values.

Layout test in local machine gives lots of unwanted failures, so I will wait for the bot. It might fail some tests.

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