[Webkit-unassigned] [Bug 9774] exeter.edu renders improperly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 1 08:37:19 PDT 2007


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





------- Comment #17 from mitz at webkit.org  2007-06-01 08:37 PDT -------
(In reply to comment #13)
> The spec doesn't say anything about it

Actually, I think the spec is pretty clear: "if the element's position is
'relative' or 'static', the containing block is formed by the content edge of
the nearest *block-level*, table cell or inline-block ancestor box"
(<http://www.w3.org/TR/2006/WD-CSS21-20061106/visudet.html#containing-block-details>).

Generating an anonymous block box doesn't make you a block-level element.

I think containingBlock() should just be changed to not return anonymous blocks
in this case. The problem is that some callers expect the current behavior, so
I think containingBlock() could have an allowAnonymousBlocks parameter that
defaults to false, and callers that need to see anonymous boxes could be
changed to pass true for that parameter.

A slightly less risky approach for now would be to make the default 'true' and
just patch the few callers that we know that need to skip anonymous blocks
(currently relativePositionOffsetY and calcPercentageHeight).


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