box-sizing: Invalid Statements in Documentation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

box-sizing: Invalid Statements in Documentation

Axel Dahmen
At https://developer.mozilla.org/En/CSS/Box-sizing it says:

"It is possible to use this property to emulate the behavior of browsers
that do not correctly support the CSS box model specification."

This is quite a pejorative statement and it should be corrected.

Actually, inventing content-width as the determinate value for the width
property was a bad change in mind of the W3C. In fact, it was the border-box
layout that determined the calculation of the width property right from the
beginning in CSS1. CSS3 now just corrects a CSS2 design flaw.

Many designers will welcome the return of the border-box layout. Now finally
it is possible again to assign both, a padding, a border AND a width of 100%
to correctly display full width backgrounds without a need to perform try &
error kind of width calculations.

Axel Dahmen
www.axeldahmen.de

_______________________________________________
dev-documentation mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-documentation
Reply | Threaded
Open this post in threaded view
|

Re: box-sizing: Invalid Statements in Documentation

Eric Shepherd
You should feel free to make appropriate edits to the documentation;  
we encourage anyone to do so.

Sent from my iPhone

On Mar 20, 2010, at 11:12 AM, "Axel Dahmen"  
<[hidden email]> wrote:

> At https://developer.mozilla.org/En/CSS/Box-sizing it says:
>
> "It is possible to use this property to emulate the behavior of  
> browsers that do not correctly support the CSS box model  
> specification."
>
> This is quite a pejorative statement and it should be corrected.
>
> Actually, inventing content-width as the determinate value for the  
> width property was a bad change in mind of the W3C. In fact, it was  
> the border-box layout that determined the calculation of the width  
> property right from the beginning in CSS1. CSS3 now just corrects a  
> CSS2 design flaw.
>
> Many designers will welcome the return of the border-box layout. Now  
> finally it is possible again to assign both, a padding, a border AND  
> a width of 100% to correctly display full width backgrounds without  
> a need to perform try & error kind of width calculations.
>
> Axel Dahmen
> www.axeldahmen.de
> _______________________________________________
> dev-documentation mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-documentation
_______________________________________________
dev-documentation mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-documentation
Reply | Threaded
Open this post in threaded view
|

Re: box-sizing: Invalid Statements in Documentation

L. David Baron
In reply to this post by Axel Dahmen
On Saturday 2010-03-20 16:12 +0100, Axel Dahmen wrote:

> At https://developer.mozilla.org/En/CSS/Box-sizing it says:
>
> "It is possible to use this property to emulate the behavior of
> browsers that do not correctly support the CSS box model
> specification."
>
> This is quite a pejorative statement and it should be corrected.
>
> Actually, inventing content-width as the determinate value for the
> width property was a bad change in mind of the W3C. In fact, it was
> the border-box layout that determined the calculation of the width
> property right from the beginning in CSS1. CSS3 now just corrects a
> CSS2 design flaw.

That's not true.  CSS1 and CSS2 are consistent in 'width' being
content-box.

It's just that many of the early implementations of CSS behaved
differently from what CSS1 said.

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-documentation mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-documentation