Previous Message
Next Message

Re: [css-d] Re: Right adjust last word in a paragraph

Sent by Rijk van Geijtenbeek on 19 January 2003 17:05


On Sun, 19 Jan 2003 13:52:35 +1000, Kevin W [EMAIL-REMOVED]> wrote:

>> Interesting. But as long as the position is static, the display isn't 
>> forced to 'block', so I'm not convinced it should render on the next 
>> line. IMHO this is a buglet in Opera.
>
> I'm not sure I quite understand you.
>
> Section 9.7, point 2 clearly says: "...(if) 'position' has the value 
> 'absolute' or 'fixed', 'display' is set to 'block'..."  In this case, 
> position is indeed set to absolute, so display should be set to block.  
> Adding an explicit "display: block;" into the source makes Mozilla behave 
> exactly like Opera.

But at which point should the original as-if-static left and top 
coordinates be extracted? From my reading of the spec, this is meant to be 
done regarding the elements 'initial' inline position, so before it is set 
to block, shifted to a new line etcetera. Mozilla and MSIE do this; Opera 
doesn't.

See also http://www.meyerweb.com/eric/css/tests/css2/sec09-08-04.htm for a 
demo; especially this rule:
  SPAN.mark {position: absolute; top: auto; left: -2em; color: maroon;}
... clearly assumes that the positioned element stays on the same line.

This code is diectly taken from the CSS2 spec, end of section 9.8:

"The two hyphens acting as change bars are taken out of the flow and 
positioned at the current line (due to 'top: auto')"
  http://www.w3.org/TR/CSS2/visuren.html#q29

-- 
 If you don't like having choices    |  Rijk van Geijtenbeek
 made for you, you should start      |   Documentation & QA
 making your own. -  Neal Stephenson |  [EMAIL-REMOVED] M
Previous Message
Next Message

Message thread: