[Webkit-unassigned] [Bug 13538] Adjacent absolutely positioned element and siblings in CSS table placed below adjacent replaced content (<img>/<object>/etc.)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 4 17:24:14 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=13538





------- Comment #9 from hyatt at apple.com  2007-12-04 17:24 PDT -------
Real table cells use vertical-align:middle by default.  CSS tables default to
vertical-align:baseline. This is an unfortunate difference between the two,
especially since the baseline of table cells is actually very poorly defined.

The bug here is that RenderTableCell::baselinePosition always uses the first
content it encounters to determine a baseline.  In this case that is the
absolutely positioned div.  The behavior of this method is definitely
incorrect, since we should be looking for a real baseline (like inline-block
does).  In this case the canvas element establishes a real first line baseline,
so we should be respecting it.

Changing this method will be kind of dangerous and might break existing tables,
but it might be worth trying to improve.  In the meantime, the author could
work around the problem with a vertical-align:middle on the table cells.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list