[CSS 2.1][Section 10.3.7] Calculating width and margin-left for abs. pos. with max-width constraint

Hello all,

I'd like to get feedback (comments, suggestions, etc) on the following 2
testcases:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/absolute-non-replaced-width-025.htm

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/absolute-non-replaced-width-026.htm

Bear in mind that I will remove the <blockquote> in the testcases before
submitting them.

1- Are those 2 testcases correct?

2- Firefox 3.6.10, Chrome 6.0.472.63 and Konqueror 4.5.1 render the
testcases with no red.
Opera 10.62 build 6438 render both testcases with the green square on the
left, therefore showing the red "FAIL" square.

3- One issue that puzzles me is that the spec [1] says to
{
set 'auto' values for 'margin-left' and 'margin-right' to 0, and [if]
(...) 5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve
for 'width'."
}

a) is setting the 'margin-left: auto' to 0 and 'margin-right: auto' to 0
permanent or done only for the purposes of calculating width?

b) if width is auto, then its used value can be calculated and the
equation provided by the spec is clear. But then if after applying the
max-width constraint, the margin-left may be changed by an earlier step of
the algorithm provided.
[I am trying to explain something and I'm not sure I am saying this
correctly]

[1]: Section 10.3.7 Calculating width and margins, Absolutely positioned,
non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width

regards, G�rard
-- 
CSS 2.1 Test suite RC2 (October 1st 2010)
http://test.csswg.org/suites/css2.1/20101001/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Monday, 11 October 2010 04:34:31 UTC