Visit Mozilla.org

Talk:CSS:-moz-box-sizing

From MDC

At this precise url

http://www.xulplanet.com/references/elemref/ref_StyleProperties.html#prop_-moz-box-sizing

it is written

  • content-box: The width and height properties specify the size of the element including the padding.
  • padding-box: The width and height properties specify the size of the element. The padding, border and margin are added outside of this size.

but I think this is wrong. The definition terms and the definition descriptions, as written, are anti-intuitive, are counter-intuitive; they look mismatched to me. The definitions should be reversed. Someone needs to verify the accuracy of the above info before filing up the documentation on -moz-box-sizing.

GT 13:17, 20 October 2005 (PDT)

As far as I can recall "content-box" is the current (default) way, that the CSS Spec defines, (does not count padding or border in width/height. and "padding-box" counts padding in teh calculation, while "border-box" is IE mode, where width/height specify to border-edge. --Callek 00:00, 1 November 2005 (PST)

[edit] Box model used by Internet Explorer

Readams, You say that the border-box is the box model used by Internet Explorer. That's not true. It's the padding-box in BackCompat mode (backward compatible rendering mode) and it's the content-box in CSS1Compat mode (standards compliant rendering mode). --GT 31 January 2006

Gt, feel free to remove the "this is... in IE" portion of that, I feel describing the IE model in here may be overkill, but could perhaps be a "See Also" article somewhere (Maybe not on MDC) --Callek 21:30, 31 January 2006 (PST)
I feel that describing the IE model in relationship to -moz-box-sizing values is a good thing. I only wanted to point out the correct info on the IE box model chosen/triggered by doctype declaration in relation to [-moz-]box-sizing values. I am for adding cross-browser support info (and other useful, helpful cross-browser info) in this documentation project. --GT 1 February 2006
So am I, but I am not for adding incorrect information, as I do not have the time to verify your findings (though they do sound correct to my memory), you are free to correct the problem on the main page. --Callek 22:02, 1 February 2006 (PST)
I was wrong. I went to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie60/html/cssenhancements.asp to make sure+verify and it's the border-box, not padding-box as I thought. I am really sorry for all this. Maybe we should add that some (not all) doctype declarations (those with a full url, XHTML) will trigger IE6 and IE7 into standards compliant rendering mode where the CSS1 box model is implemented correctly.--GT 2 February 2006