[Webkit-unassigned] [Bug 77028] percent width includes borders and paddings on CSS tables

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 2 02:16:32 PDT 2012


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


Julien Chaffraix <jchaffraix at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #171381|review?                     |
               Flag|                            |




--- Comment #4 from Julien Chaffraix <jchaffraix at webkit.org>  2012-11-02 02:17:55 PST ---
(From update of attachment 171381)
View in context: https://bugs.webkit.org/attachment.cgi?id=171381&action=review

> Source/WebCore/rendering/RenderTable.cpp:321
> +    if (isCSSTable && (styleLogicalWidth.isFixed() || styleLogicalWidth.isPercent()) && styleLogicalWidth.isPositive()) {

Shouldn't *any* specified width be handled in this way? This will fix the issue for percent but other values still have the issue (e.g. viewport relative length).

We should fix all cases at once by using styleLogicalWidth.isSpecified() instead of just patching our way around.

> LayoutTests/fast/table/css-table-width-with-border-padding.html:43
> +    </div>

This should probably be a check-layout.js (the upside is that it would run faster).

> LayoutTests/fast/table/css-table-width-with-border-padding.html:46
> +</html>

It would be nice to have some checks against box-sizing values as part of this too. That makes sure we don't break it (which I don't think you do).

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