Re: [css3-writing-modes] recent edits

On Nov 12, 2010, at 3:05 AM, John Daggett wrote:

> Here's the example I was playing with, it sets up two rows of four
> blocks each with variations in writing-mode within each block:
> 
> http://people.mozilla.org/~jdaggett/tests/verticalmargins.html
> 
> Renderings in three implementations:
> 
>  Webkit trunk/OSX screenshot:
>  http://people.mozilla.org/~jdaggett/tests/webkit-vertical-margins.png
> 
>  IE8/XP screenshot:
>  http://people.mozilla.org/~jdaggett/tests/ie8-vertical-margins.png
> 
>  IE9beta/Win7 screenshot:
>   

I see two main issues here.

(1) IE8 is not collapsing margins between sibling blocks in some circumstances.  This is clearly fixed in IE9, so I don't think we have to worry about that issue.  If you state that a block whose writing-mode differs from its parent establishes a block formatting context, all the right rules for margin-collapsing are well known.

(2) The second issue is what to do with perpendicular block flows as far as computing their logical widths (case #3, case #4, etc.).  WebKit hasn't made a decision here, and I agree it needs to be specified.  I do think the draft has some red text saying that this needs to be specified though.  I put in some code that uses the viewport dimension with a big FIXME, since this matches IE8.  IE9 is clearly doing something different though.  I can't really tell at first glance what they're doing.

dave

Received on Friday, 12 November 2010 16:45:19 UTC