Re: [css-writing-modes] Margin Collapsing Orthogonal Flows

Le 2014-12-19 19:32, fantasai a écrit :
> Gérard has been testing Writing Modes and found an interesting
> discrepency between Webkit/Blink and Gecko:
> 
> <horizontal-tb>
>   <vertical-lr>
>     <p>I have margins</p>
>   </vertical-lr>
> </horizontal-tb>
> 
> In Firefox, the left and right margins of the <p> collapse out
> through the content edge of <vertical-lr>.
> 
> In Webkit, they are contained by <vertical-lr>'s content box.
> 
> I am wondering what is the preferred behavior in such a case:
> should these margins collapse?
> 
> ~fantasai

Reduced test:

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/child-margins-orthogonal-flow-collapsing.xht

No presence of orange square in Firefox 37.0a1 build 20141215.
Computed width of div in Firefox 37.0a1: 100px

Presence of orange square in IE11 (I don't know its minor version) and 
Chrome 39.0.2171.95.
Computed width of div in Chrome 39: 200px

Gérard

Received on Saturday, 20 December 2014 01:17:18 UTC