[Webkit-unassigned] [Bug 8423] html { display:table; } renders incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 20 15:15:57 PDT 2008


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





------- Comment #8 from hyatt at apple.com  2008-03-20 15:15 PDT -------
Yeah, looks like we just require it to be a block-level element, so we're
correct according to CSS2.1 (just with misrendering).

This code in adjustRenderStyle enforces that:

if (style->display() != BLOCK && style->display() != TABLE && style->display()
!= BOX &&
            (style->position() == AbsolutePosition || style->position() ==
FixedPosition || style->floating() != FNONE ||
             (e && e->document()->documentElement() == e))) {
            if (style->display() == INLINE_TABLE)
                style->setDisplay(TABLE);
            else if (style->display() == INLINE_BOX)
                style->setDisplay(BOX);
            else if (style->display() == LIST_ITEM) {
                // It is a WinIE bug that floated list items lose their
bullets, so we'll emulate the quirk,
                // but only in quirks mode.
                if (!m_strictParsing && style->floating() != FNONE)
                    style->setDisplay(BLOCK);
            }
            else
                style->setDisplay(BLOCK);
        }


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