Version: 3.4.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre4 (3.1)) Compiler: gcc version 3.3.5 (Debian 1:3.3.5-8) OS: Linux (i686) release 2.6.10-1-686 According to the CSS 2.1 spec, section 9.3.2: "Note: For absolutely positioned elements whose containing block is based on a block-level element, [the top/right/bottom/left] property is an offset from the padding edge of that element." Konqueror offsets the absolutely positioned element from the border edge instead of the padding edge.
Created an attachment (id=10878) [details] Testcase The box containing 'wrong position' should be offset 15px from the border edges of the containing block.
We do exactly the same as Firefox and Opera.
At least Firefox 1.0.3 follows the CSS 2.1 spec. You're right about Opera, it's broken, too.
I get the same result with Firefox 1.0.3 Whey is the text green in the spec? Maybe it is under review.
Hmm. You're right, my testcase doesn't work correctly, though I definitely encountered this problem while working with a real layout. I'll work on a better testcase. I was under the impression that the green text highlighted a change from the previous version. The note is definitely not in CSS 2.0, but there's no mention of it being added in the Change appendix of the 2.1 spec.
Hmm, there seems to be a Mozilla bug. I was using generated content in the real layout, and Moz won't let me position it like Konqueror will. It's behavior matches when using real elements. Don't know if this should be closed or not. Konq doesn't follow the spec, but neither does anything else.
I think we do it correctly though. The spec is just not clear enough. We offset it from the outer padding-edge, I would call the inner padding-edge for the content edge
You need to log in before you can comment on or make changes to this bug.