[RC6] absolute-replaced-height-029 is not testing the test assert

Arron,

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/absolute-replaced-height-029.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/absolute-replaced-height-029.htm


<meta name="assert" content="An absolutely positioned replaced element
with over-constrained values solves for 'bottom'.">


In this test, the containing block (which is div#div1) has no set height
(or rather it is implicitly 'height: auto'). The computed height for
div#div1 is 15px which is caused by the inner rel. pos. div.

The test does not demonstrate the text assert. If given values
overconstrain the equation, and therefore set bottom value has to be
ignored and must be set a value that will balance the equation, then the
test as designed does not demonstrate this, does not verify somehow or
check or measure the computed bottom value.

In the test, this is the equation with values:

  0.5in : 'top'
+
  0.5in : 'margin-top'
+
  0     : 'border-top-width'
+
  0     : 'padding-top'
+
  15px  : 'height' (intrinsic height of inline replaced element)
+
  0     : 'padding-bottom'
+
  0     : 'border-bottom-width'
+
  0.5in : 'margin-bottom'
+
  0.5in : 'bottom'
===========
  15px  : height of containing block


207px != 15px

So, bottom has to be ignored and forced to have the value that will
balance the equation. So, this brings up


  0.5in : 'top'
+
  0.5in : 'margin-top'
+
  0     : 'border-top-width'
+
  0     : 'padding-top'
+
  15px  : 'height' (intrinsic height)
+
  0     : 'padding-bottom'
+
  0     : 'border-bottom-width'
+
  0.5in : 'margin-bottom'
+
 (solve): 'bottom'
===========
  15px  : height of containing block

So, the used bottom value must be -1.5in (or -144px).

Right now, I do not have an alternative proposal for this test.

2 additional remarks:

1- I will have to review again some of the previous tests in that serie
of tests.

2- Webpage debugger tools have often unreliable, wrong computed values
for properties like left, top, bottom, right, width, height, margin-*,
especially if they are subject to constraining equations (and to rules
when equation gets over-constrained) given in section 10.

Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

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

Received on Sunday, 2 September 2012 00:50:44 UTC