In article Brian wrote:[color=blue]
> Lauri Raittila wrote:[color=green]
> > In article Brian wrote:
> >[color=darkred]
> >> I thought of this. It works in Opera, but not in Mozilla. I think
> >> Opera is wrong: Floating the cite should make it block level.[/color]
> >
> > You are mistaken. Weather or not float is block element makes
> > absolutely no difference.[/color]
>
> Right. But the point I was making is that if it is inline, but
> floated, than the browser is supposed to treat that element as if it
> were block. At least, that's how I interpret the spec.[/color]
Yes. But float is taken away from flow, and does onle affect to line
boxes.
[color=blue][color=green][color=darkred]
> >> The block box is then created below the blockquote element.[/color]
> >
> > No, it is created and aligned to top of next line box, as you can
> > easily test.[/color]
>
> I did test. Only Opera put the cite inside the blockquote box. Mozilla
> and MSIE 5.01/Win2k did not.[/color]
It's bot inside the box in any really, as it is floated... The question
is not that. Put height:8em;border:1px soid red; for blockquote. How do
you know it is inside? Put border for it in Opera. Is it really inside?
[color=blue]
>
http://www.tsmchughs.com/test/quote[/color]
Try in window sized so that quote is dropped one line in Opera. Is it
inside box?
[color=blue][color=green]
> >
http://www.w3.org/TR/CSS2/visuren.html#floats[/color]
>
> 'float'
>
> left
> The element generates a block box that is floated to the left. Content
> flows on the right side of the box, starting at the top (subject to
> the 'clear' property). The 'display' is ignored, unless it has the
> value 'none'.
>
> Note the "generates a block box" bit.[/color]
That is because how else could you give it a width?
Read this (same origin):
A floated box must have an explicit width (assigned via the 'width'
property, or its intrinsic width in the case of replaced elements). Any
floated box becomes a block box that is shifted to the left or right
until its outer edge touches the containing block edge or the outer edge
of another float. The top of the floated box is aligned with the top of
the current line box (or bottom of the preceding block box if no line box
exists). If there isn't enough horizontal room on the current line for
the float, it is shifted downward, line by line, until a line has room
for it.
And this:
http://www.w3.org/TR/CSS2/visuren.html#float-rules
Are you still thinking same?
[color=blue][color=green]
> > | A float is a box that is shifted to the left or right on the
> > | current line.[/color]
>
> Hm. That *does* support your argument that Opera is correct.[/color]
[color=blue][color=green]
> > | The top of the floated box is aligned with the top of the current
> > | line box (or bottom of the preceding block box if no line box
> > | exists).[/color]
>
> But this part is not so clear. If float makes it block, then floating
> <cite> will push it to the bottom of <blockquote>, which is what I see
> in Moz and MSIE.[/color]
Float should not have effect on flow. There is current line-box, if float
would be on same line.
[color=blue][color=green]
> > It is bug in Mozilla. There is no doubt of it. This example is
> > directly from CSS2 and CSS2.1, and is displayed incorrectly in
> > Mozilla:
http://www.student.oulu.fi/~laurirai...t/test023.html[/color]
>
> This looks different than what I see because the order of the elements
> is different. If you put that image at the end of the <P> element,
> than in Moz and MSIE, the image will float *below* the <P>, not inside it.[/color]
It proves there is bug in Mozilla. Because I *thought* you would be able
compare examples. I did this only because I know how hard it is to
somepeople believe that mozilla has bug.
I actually even bothered looking bugzilla, and found this:
http://bugzilla.mozilla.org/show_bug.cgi?id=50630
Maybe you believe D. Baron and Hixie better than me.
[color=blue][color=green]
> > Compare with this:
> >
http://www.w3.org/TR/CSS2/visuren.html#img-floateg (only image and
> > rest of meaningless text is different.)[/color]
>
> There, too, the order of the elements is different.[/color]
Yes, but meaning is same.
http://www.w3.org/TR/CSS2/visuren.html#img-floateg
| Formatting would have been exactly the same if the document had been:
<BODY>
<P>Some sample text
<IMG src=img.gif alt="This image will illustrate
floats">
that has no other...
</BODY>
Compare it to this:
http://www.student.oulu.fi/~laurirai...t/test023.html
<BODY>
<P>Some sample text
<IMG src="../css/middle/blue.gif" alt="This image will
illustrate floats">
that has no other...
</BODY>
Can you spot one difference?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.