layout/reftests/box-properties/box-sizing-3.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

michael@0 1 <!DOCTYPE html>
michael@0 2 <html lang="en-US">
michael@0 3 <head>
michael@0 4 <title>test of box-sizing</title>
michael@0 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
michael@0 6 <meta http-equiv="Content-Style-Type" content="text/css">
michael@0 7 <style type="text/css">
michael@0 8
michael@0 9 body { font-size: 10px; line-height: 1; }
michael@0 10 table { border-spacing: 0; margin: 0; }
michael@0 11 td { border: 1px solid; padding: 1px solid; }
michael@0 12
michael@0 13 td > div { width: 100px; }
michael@0 14
michael@0 15 td#bscontent > div > div { box-sizing: content-box; }
michael@0 16 td#bspadding > div > div { box-sizing: padding-box; }
michael@0 17 td#bsborder > div > div { box-sizing: border-box; }
michael@0 18
michael@0 19 td > div > div {
michael@0 20 margin-left: 1%;
michael@0 21 border-left: 2px solid;
michael@0 22 padding-left: 4%;
michael@0 23 padding-right: 8%;
michael@0 24 border-right: 16px solid;
michael@0 25 margin-right: 32%;
michael@0 26
michael@0 27 background: yellow;
michael@0 28 margin-bottom: 1px;
michael@0 29 }
michael@0 30
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34
michael@0 35 <table><tr>
michael@0 36
michael@0 37 <td id="bscontent"><div>
michael@0 38
michael@0 39 <!-- box-sizing: content-box -->
michael@0 40 <div style="width: auto">A B</div>
michael@0 41 <div style="width: -moz-max-content">A B</div>
michael@0 42 <div style="width: -moz-min-content">A B</div>
michael@0 43 <div style="width: -moz-fit-content">A B</div>
michael@0 44 <div style="width: -moz-available">A B</div>
michael@0 45 <div style="width: 50px">A B</div>
michael@0 46 <div style="width: 60%">A B</div>
michael@0 47
michael@0 48 </div></td>
michael@0 49
michael@0 50 <td id="bspadding"><div>
michael@0 51 <!-- box-sizing: padding-box -->
michael@0 52 <div style="width: auto">A B</div>
michael@0 53 <div style="width: -moz-max-content">A B</div>
michael@0 54 <div style="width: -moz-min-content">A B</div>
michael@0 55 <div style="width: -moz-fit-content">A B</div>
michael@0 56 <div style="width: -moz-available">A B</div>
michael@0 57 <div style="width: 50px">A B</div>
michael@0 58 <div style="width: 60%">A B</div>
michael@0 59
michael@0 60 </div></td>
michael@0 61
michael@0 62 <td id="bsborder"><div>
michael@0 63 <!-- box-sizing: border-box -->
michael@0 64 <div style="width: auto">A B</div>
michael@0 65 <div style="width: -moz-max-content">A B</div>
michael@0 66 <div style="width: -moz-min-content">A B</div>
michael@0 67 <div style="width: -moz-fit-content">A B</div>
michael@0 68 <div style="width: -moz-available">A B</div>
michael@0 69 <div style="width: 50px">A B</div>
michael@0 70 <div style="width: 60%">A B</div>
michael@0 71
michael@0 72 </div></td>
michael@0 73
michael@0 74 </tr></table>
michael@0 75
michael@0 76 </body>
michael@0 77 </html>

mercurial