[Webkit-unassigned] [Bug 25016] max-width and max-height are not overriding the width and height properties when 'display' set to 'table'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 28 13:00:38 PDT 2012


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


Julien Chaffraix <jchaffraix at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pravind.2k4 at gmail.com,
                   |                            |robert at webkit.org




--- Comment #11 from Julien Chaffraix <jchaffraix at webkit.org>  2012-09-28 13:01:03 PST ---
> I'm not sure how table height gets computed, but if you look in RenderBox::computeLogicalHeight, it only calculates margins.  I suspect the height is updated by it's children or something.

The logical height computation is in RenderTable::layout(). We need to check for the min / max logical height and update |computedLogicalHeight| accordingly.

Note that the effect of min / max width / height on tables is undefined in CSS 2.1 (http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width) so we will need to evaluate what other browsers are doing in some corner cases (e.g. should we shrink our content if max-height is defined? (we never shrink our height currently as it would violate CSS 2.1 tables: we could make a cell smaller than the minimum height for its content))

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