layout/reftests/bugs/419060.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
michael@0 2 "http://www.w3.org/TR/html4/strict.dtd">
michael@0 3 <html lang="en-US">
michael@0 4 <head>
michael@0 5 <title>Absolute positioning margin:auto regression</title>
michael@0 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
michael@0 7 <meta http-equiv="Content-Style-Type" content="text/css">
michael@0 8 <style type="text/css">
michael@0 9
michael@0 10 body > div {
michael@0 11 position: relative;
michael@0 12 border: medium solid;
michael@0 13 width: 600px;
michael@0 14 padding-bottom: 1.5em;
michael@0 15 }
michael@0 16
michael@0 17 body > div > div {
michael@0 18 background: blue;
michael@0 19 width: 400px;
michael@0 20 height: 1em;
michael@0 21 position: absolute;
michael@0 22 left: 0;
michael@0 23 right: 0;
michael@0 24 margin-left: auto;
michael@0 25 margin-right: 100px;
michael@0 26 }
michael@0 27
michael@0 28 </style>
michael@0 29 </head>
michael@0 30 <body>
michael@0 31
michael@0 32 <div>
michael@0 33 This div should be centered within its container:
michael@0 34 <div></div>
michael@0 35 </div>
michael@0 36
michael@0 37 </body>
michael@0 38 </html>

mercurial