Version: (using KDE KDE 3.2.0) Installed from: Unlisted Binary Package An element positioned relative to some ancestor element (position:absolute with position:relative ancestor) should be (guessing by IE, Opera and Mozilla behaviour) positioned relative to the content area of that ancestor, not the element's box as whole.
Created an attachment (id=5074) [details] test case The text should be positioned within the box (top left) since that is the content area, but is actually positioned at the top left of the boxes margin area.
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.