1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>CSS Test: Solving for width of block-level non-replaced elements in normal flow when 'width' is 'auto'
</title>
5 <link rel=
"author" title=
"Microsoft" href=
"http://www.microsoft.com/">
6 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#blockwidth">
7 <meta name=
"flags" content=
"">
8 <meta name=
"assert" content=
"When width is auto and the combination of border widths, padding widths, scrollbar widths, width, and non 'auto' margin widths are larger than the width of the containing block, the margin widths are treated as 0.">
9 <style type=
"text/css">
17 background-color: orange
;
18 border-left: 10px solid orange
;
19 border-right: 10px solid orange
;
28 background-color: blue
;
37 <p>Test passes if the orange and blue boxes below are the same width.
</p>