Version: (using KDE KDE 3.2.0) Installed from: Unlisted Binary Package OS: Linux Absolute positioning on the body element has no effect whatsoever. This works in Mozilla, Opera, and under some conditions within IE.
Created an attachment (id=5092) [details] test case This test case should show a 100x100 pixel box rendered in the center of the screen (using -50px negative margins), but does not.
Created an attachment (id=5093) [details] test case (working) This test case is identical to the previous one except the styling rules are applied to a div element rather than the body element. It works.
By the way. The test cases above work correctly in Mozilla and Opera, but for some reason not in IE. This is strange because the original HTML that the test case came from did work in IE, and used absolute positioning on the body tag also.
Testcase works fine with konqueror 3.3beta1. At least 3.3 will fix this (hopefully).
Reopening. The testcase at stake is 5092. 5093 is only there for reference.
CVS commit by ggarand: only disallow fixed positioning (on body in quirk mode), not relative/absolute. regression tested. CCMAIL: 77048-done@bugs.kde.org, 76982-done@bugs.kde.org M +8 -0 ChangeLog 1.277 M +3 -3 rendering/render_body.cpp 1.34 --- kdelibs/khtml/ChangeLog #1.276:1.277 @@ -1,2 +1,10 @@ +2004-08-19 Germain Garand <germain@ebooksfrance.org> + + * rendering/render_body.cpp (setStyle): only disallow fixed positioning + on body, not relative/absolute (#77048, #76982). + + * rendering/render_box.cpp (paintBackgroundExtended): make sure backgrounds paint + in the border box and not just in the padding box (WC merge - meyerweb.com/unsorted/bg-position.html). + 2004-08-18 Leo Savernik <l.savernik@aon.at> --- kdelibs/khtml/rendering/render_body.cpp #1.33:1.34 @@ -46,6 +46,6 @@ void RenderBody::setStyle(RenderStyle* s { // qDebug("RenderBody::setStyle()"); - // ignore position: on body - if (style->htmlHacks() && style->position() != STATIC) + // ignore position: fixed on body + if (style->htmlHacks() && style->position() == FIXED) style->setPosition(STATIC);
You need to log in before you can comment on or make changes to this bug.