[Webkit-unassigned] [Bug 13598] <td> tag can cause Webkit to generate empty space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 5 10:03:56 PDT 2012


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





--- Comment #10 from Julien Chaffraix <jchaffraix at webkit.org>  2012-09-05 10:04:09 PST ---
(From update of attachment 162205)
View in context: https://bugs.webkit.org/attachment.cgi?id=162205&action=review

> Source/WebCore/rendering/AutoTableLayout.cpp:436
> +                    if (!((m_layoutStruct[pos].logicalWidth.isPercent() || m_layoutStruct[pos].logicalWidth.isFixed())) && totalPercent > 0 && fixedWidth <= cellMinLogicalWidth)

I don't think that's right. How about calc() / viewport relative logical width(s)? How about the future if we support other values? If you want to handle only 'auto' wdith, you should probably check it explicitly and not check anything non-auto.

> LayoutTests/fast/table/table-colspan-cell-widths.html:6
> +    cellspacing: 0;
> +    cellpadding: 0;

This is wrong and you can see that in the TEXT dump as your cells are wider than your absolute width.

|cellspacing| and |cellpadding| are HTML attributes not CSS properties. The CSS equivalent are resp. border-spacing and padding.

AFAICT you don't need the padding rule as we use the cells' border boxes to compute our widths but could be wrong.

> LayoutTests/fast/table/table-colspan-cell-widths.html:19
> +        <td width="100%">
> +            <div style="width: 50px; background-color: green;"> </div>
> +        </td>            

This doesn't make much sense to not set a background-color on your cell as you don't see that it's properly sized.

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