[CSS21] 10.3.1 should not mention 'left' and 'right'

http://www.w3.org/TR/CSS21/visudet.html#inline-width currently says:
  # A computed value of 'auto' for 'left', 'right', 'margin-left' or
  # 'margin-right' becomes a used value of '0'. 
I believe the mention of 'left' and 'right' here are incorrect,
since 'auto' values for 'left' and 'right' are resolved as described
in the sentence immediately preceding the section (according to the
rules in section 9.4.3).  For example, in:
  <span style="position:relative; right:5px">hi</span>
the value of 'left' used for layout is '-5px', not '0'.

So I think the "'left', 'right', " in the sentence above should be
removed.


Perhaps we should also clarify that sentence above:
  # For Points 1-6 and 9-10, the values of 'left' and 'right' used
  # for layout are determined by the rules in section 9.4.3. 
to be clearer that this is the case when 'position' is 'relative',
and that when 'position' is 'static' the values used for layout are
'0'.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Saturday, 31 January 2009 01:48:30 UTC