Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / replaced-elements-001.htm
blob89270cdc0a9fddf89c84ebe6c52269abf7c291ec
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
4 <head>
6 <title>CSS Test: replaced elements - margin</title>
8 <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
9 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width">
10 <meta name="flags" content="">
11 <meta name="assert" content="Block-level, replaced elements with margin-left: auto and margin-right: auto should be centered within their respective parent block">
13 <style type="text/css">
14 div
16 background-color: green;
17 margin: 1em;
20 input
22 background-color: orange;
23 display: block;
24 margin-left: auto;
25 margin-right: auto;
26 width: auto;
28 </style>
30 </head>
32 <body>
34 <p>Below, there should be 2 orange boxes horizontally centered within their respective green bars.</p>
36 <div>
37 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="">
38 </div>
40 <form action="">
41 <div>
42 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="">
43 </div>
44 </form>
46 </body>
47 </html>