layout/reftests/box-properties/CSS21-t100303-simple.xhtml

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
michael@0 2 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 3 <head>
michael@0 4 <title>CSS 2.1 Test Suite: Block-level, non-replaced elements in normal flow</title>
michael@0 5 <!--
michael@0 6
michael@0 7 THIS IS NOT THE FULL TEST. IT HAS BEEN MODIFIED TO WORK
michael@0 8 AROUND THE FOLLOWING BUG:
michael@0 9 https://bugzilla.mozilla.org/show_bug.cgi?id=423306
michael@0 10 BY MAKING THE INTERMEDIATE ELEMENT NOT HAVE CHANGING 'direction'
michael@0 11
michael@0 12 -->
michael@0 13 <link rel="author" title="L. David Baron" href="http://dbaron.org/" />
michael@0 14 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
michael@0 15 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" />
michael@0 16 <meta name="flags" content="" />
michael@0 17 <style type="text/css"><![CDATA[
michael@0 18
michael@0 19 body { direction: ltr; }
michael@0 20 div { height: 1px; }
michael@0 21
michael@0 22 /* containing block */
michael@0 23 body > div {
michael@0 24 margin: 0 17px 0 3px;
michael@0 25 border: medium solid transparent;
michael@0 26 border-width: 0 154px 0 157px;
michael@0 27 padding: 0 6px 0 2px;
michael@0 28 width: 350px;
michael@0 29 }
michael@0 30 /* parent that is not containing block */
michael@0 31 /* COMMENTED OUT PER WORKAROUND DESCRIBED AT TOP */
michael@0 32 /* body > div > div { display: inline; } */
michael@0 33 /* test element */
michael@0 34 body > div > div > div {
michael@0 35 margin: 0 10px 0 6px;
michael@0 36 border: medium solid transparent;
michael@0 37 border-width: 0 12px 0 5px;
michael@0 38 padding: 0 17px 0 9px;
michael@0 39 }
michael@0 40
michael@0 41 /* COMMENTED OUT PER WORKAROUND DESCRIBED AT TOP */
michael@0 42 body > div, /* body > div > div, */ body > div > div > div { direction: ltr; }
michael@0 43 body > div.trtl > div > div { direction: rtl; }
michael@0 44 /* COMMENTED OUT PER WORKAROUND DESCRIBED AT TOP */
michael@0 45 /* body > div.prtl > div { direction: rtl; } */
michael@0 46 body > div.cbrtl { direction: rtl; }
michael@0 47 body > div.mlauto > div > div { margin-left: auto; }
michael@0 48 body > div.mrauto > div > div { margin-right: auto; }
michael@0 49
michael@0 50 body > div.wauto > div > div { width: auto; }
michael@0 51 body > div.wnarrow > div > div { width: 127px; }
michael@0 52 body > div.wwide > div > div { width: 415px; }
michael@0 53
michael@0 54 /*
michael@0 55 * make a background on the containing block that is red
michael@0 56 * everywhere except where the test should draw its background
michael@0 57 */
michael@0 58 body > div.wnarrow { background-image: url(CSS21-t100303-green-outside-170px.png); }
michael@0 59 body > div.wwide { background-image: url(CSS21-t100303-green-outside-458px.png); }
michael@0 60 body > div.wauto { background-image: url(CSS21-t100303-green-outside-334px.png); }
michael@0 61 body > div.wauto.mlauto { background-image: url(CSS21-t100303-green-outside-340px.png); }
michael@0 62 body > div.wauto.mrauto { background-image: url(CSS21-t100303-green-outside-344px.png); }
michael@0 63 body > div.wauto.mlauto.mrauto { background-image: url(CSS21-t100303-green-outside-350px.png); }
michael@0 64
michael@0 65 /*
michael@0 66 * The only results in the markup rather than using selectors
michael@0 67 * are whether the div ends up aligned to the left edge (atl),
michael@0 68 * the right edge (atr), or centered (atc). Things with auto
michael@0 69 * widths always count as atl, to make the style rules simpler
michael@0 70 * (though they abut both edges).
michael@0 71 */
michael@0 72 body > div.atl { background-position: 8px 0; }
michael@0 73 body > div.atl.mlauto { background-position: 2px 0; }
michael@0 74
michael@0 75 body > div.atr.wnarrow { background-position: 172px 0; }
michael@0 76 body > div.atr.wnarrow.mrauto { background-position: 182px 0; }
michael@0 77 body > div.atr.wwide { background-position: -116px 0; }
michael@0 78 body > div.atr.wwide.mrauto { background-position: -106px 0; }
michael@0 79
michael@0 80 /* Can only be atc when mlauto and mrauto and wnarrow. */
michael@0 81 body > div.atc.wnarrow { background-position: 92px 0; }
michael@0 82
michael@0 83 /*
michael@0 84 * make a background on the test div that is green only within
michael@0 85 * its desired width and red elsewhere
michael@0 86 */
michael@0 87 body > div.wnarrow > div > div { background-image: url(CSS21-t100303-green-in-170px.png); }
michael@0 88 body > div.wwide > div > div { background-image: url(CSS21-t100303-green-in-458px.png); }
michael@0 89 body > div.wauto > div > div { background-image: url(CSS21-t100303-green-in-334px.png); }
michael@0 90 body > div.wauto.mlauto > div > div { background-image: url(CSS21-t100303-green-in-340px.png); }
michael@0 91 body > div.wauto.mrauto > div > div { background-image: url(CSS21-t100303-green-in-344px.png); }
michael@0 92 body > div.wauto.mlauto.mrauto > div > div { background-image: url(CSS21-t100303-green-in-350px.png); }
michael@0 93 /* move position to border-edge */
michael@0 94 body > div > div > div { background-position: -5px 0; }
michael@0 95
michael@0 96 /* for debugging */
michael@0 97 /* body > div { background: transparent ! important; } */
michael@0 98 /* body > div > div > div { background: orange ! important; } */
michael@0 99
michael@0 100 ]]></style>
michael@0 101 </head>
michael@0 102 <body>
michael@0 103
michael@0 104 <div class="atl wauto"><div><div></div></div></div>
michael@0 105 <div class="atl wauto trtl"><div><div></div></div></div>
michael@0 106 <div class="atl wauto prtl"><div><div></div></div></div>
michael@0 107 <div class="atl wauto prtl trtl"><div><div></div></div></div>
michael@0 108 <div class="atl wauto cbrtl"><div><div></div></div></div>
michael@0 109 <div class="atl wauto cbrtl trtl"><div><div></div></div></div>
michael@0 110 <div class="atl wauto cbrtl prtl"><div><div></div></div></div>
michael@0 111 <div class="atl wauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 112 <div class="atl wauto mlauto"><div><div></div></div></div>
michael@0 113 <div class="atl wauto mlauto trtl"><div><div></div></div></div>
michael@0 114 <div class="atl wauto mlauto prtl"><div><div></div></div></div>
michael@0 115 <div class="atl wauto mlauto prtl trtl"><div><div></div></div></div>
michael@0 116 <div class="atl wauto mlauto cbrtl"><div><div></div></div></div>
michael@0 117 <div class="atl wauto mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 118 <div class="atl wauto mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 119 <div class="atl wauto mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 120 <div class="atl wauto mrauto"><div><div></div></div></div>
michael@0 121 <div class="atl wauto mrauto trtl"><div><div></div></div></div>
michael@0 122 <div class="atl wauto mrauto prtl"><div><div></div></div></div>
michael@0 123 <div class="atl wauto mrauto prtl trtl"><div><div></div></div></div>
michael@0 124 <div class="atl wauto mrauto cbrtl"><div><div></div></div></div>
michael@0 125 <div class="atl wauto mrauto cbrtl trtl"><div><div></div></div></div>
michael@0 126 <div class="atl wauto mrauto cbrtl prtl"><div><div></div></div></div>
michael@0 127 <div class="atl wauto mrauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 128 <div class="atl wauto mrauto mlauto"><div><div></div></div></div>
michael@0 129 <div class="atl wauto mrauto mlauto trtl"><div><div></div></div></div>
michael@0 130 <div class="atl wauto mrauto mlauto prtl"><div><div></div></div></div>
michael@0 131 <div class="atl wauto mrauto mlauto prtl trtl"><div><div></div></div></div>
michael@0 132 <div class="atl wauto mrauto mlauto cbrtl"><div><div></div></div></div>
michael@0 133 <div class="atl wauto mrauto mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 134 <div class="atl wauto mrauto mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 135 <div class="atl wauto mrauto mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 136 <div class="atl wnarrow"><div><div></div></div></div>
michael@0 137 <div class="atl wnarrow trtl"><div><div></div></div></div>
michael@0 138 <div class="atl wnarrow prtl"><div><div></div></div></div>
michael@0 139 <div class="atl wnarrow prtl trtl"><div><div></div></div></div>
michael@0 140 <div class="atr wnarrow cbrtl"><div><div></div></div></div>
michael@0 141 <div class="atr wnarrow cbrtl trtl"><div><div></div></div></div>
michael@0 142 <div class="atr wnarrow cbrtl prtl"><div><div></div></div></div>
michael@0 143 <div class="atr wnarrow cbrtl prtl trtl"><div><div></div></div></div>
michael@0 144 <div class="atr wnarrow mlauto"><div><div></div></div></div>
michael@0 145 <div class="atr wnarrow mlauto trtl"><div><div></div></div></div>
michael@0 146 <div class="atr wnarrow mlauto prtl"><div><div></div></div></div>
michael@0 147 <div class="atr wnarrow mlauto prtl trtl"><div><div></div></div></div>
michael@0 148 <div class="atr wnarrow mlauto cbrtl"><div><div></div></div></div>
michael@0 149 <div class="atr wnarrow mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 150 <div class="atr wnarrow mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 151 <div class="atr wnarrow mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 152 <div class="atl wnarrow mrauto"><div><div></div></div></div>
michael@0 153 <div class="atl wnarrow mrauto trtl"><div><div></div></div></div>
michael@0 154 <div class="atl wnarrow mrauto prtl"><div><div></div></div></div>
michael@0 155 <div class="atl wnarrow mrauto prtl trtl"><div><div></div></div></div>
michael@0 156 <div class="atl wnarrow mrauto cbrtl"><div><div></div></div></div>
michael@0 157 <div class="atl wnarrow mrauto cbrtl trtl"><div><div></div></div></div>
michael@0 158 <div class="atl wnarrow mrauto cbrtl prtl"><div><div></div></div></div>
michael@0 159 <div class="atl wnarrow mrauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 160 <div class="atc wnarrow mrauto mlauto"><div><div></div></div></div>
michael@0 161 <div class="atc wnarrow mrauto mlauto trtl"><div><div></div></div></div>
michael@0 162 <div class="atc wnarrow mrauto mlauto prtl"><div><div></div></div></div>
michael@0 163 <div class="atc wnarrow mrauto mlauto prtl trtl"><div><div></div></div></div>
michael@0 164 <div class="atc wnarrow mrauto mlauto cbrtl"><div><div></div></div></div>
michael@0 165 <div class="atc wnarrow mrauto mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 166 <div class="atc wnarrow mrauto mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 167 <div class="atc wnarrow mrauto mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 168 <div class="atl wwide"><div><div></div></div></div>
michael@0 169 <div class="atl wwide trtl"><div><div></div></div></div>
michael@0 170 <div class="atl wwide prtl"><div><div></div></div></div>
michael@0 171 <div class="atl wwide prtl trtl"><div><div></div></div></div>
michael@0 172 <div class="atr wwide cbrtl"><div><div></div></div></div>
michael@0 173 <div class="atr wwide cbrtl trtl"><div><div></div></div></div>
michael@0 174 <div class="atr wwide cbrtl prtl"><div><div></div></div></div>
michael@0 175 <div class="atr wwide cbrtl prtl trtl"><div><div></div></div></div>
michael@0 176 <div class="atl wwide mlauto"><div><div></div></div></div>
michael@0 177 <div class="atl wwide mlauto trtl"><div><div></div></div></div>
michael@0 178 <div class="atl wwide mlauto prtl"><div><div></div></div></div>
michael@0 179 <div class="atl wwide mlauto prtl trtl"><div><div></div></div></div>
michael@0 180 <div class="atr wwide mlauto cbrtl"><div><div></div></div></div>
michael@0 181 <div class="atr wwide mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 182 <div class="atr wwide mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 183 <div class="atr wwide mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 184 <div class="atl wwide mrauto"><div><div></div></div></div>
michael@0 185 <div class="atl wwide mrauto trtl"><div><div></div></div></div>
michael@0 186 <div class="atl wwide mrauto prtl"><div><div></div></div></div>
michael@0 187 <div class="atl wwide mrauto prtl trtl"><div><div></div></div></div>
michael@0 188 <div class="atr wwide mrauto cbrtl"><div><div></div></div></div>
michael@0 189 <div class="atr wwide mrauto cbrtl trtl"><div><div></div></div></div>
michael@0 190 <div class="atr wwide mrauto cbrtl prtl"><div><div></div></div></div>
michael@0 191 <div class="atr wwide mrauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 192 <div class="atl wwide mrauto mlauto"><div><div></div></div></div>
michael@0 193 <div class="atl wwide mrauto mlauto trtl"><div><div></div></div></div>
michael@0 194 <div class="atl wwide mrauto mlauto prtl"><div><div></div></div></div>
michael@0 195 <div class="atl wwide mrauto mlauto prtl trtl"><div><div></div></div></div>
michael@0 196 <div class="atr wwide mrauto mlauto cbrtl"><div><div></div></div></div>
michael@0 197 <div class="atr wwide mrauto mlauto cbrtl trtl"><div><div></div></div></div>
michael@0 198 <div class="atr wwide mrauto mlauto cbrtl prtl"><div><div></div></div></div>
michael@0 199 <div class="atr wwide mrauto mlauto cbrtl prtl trtl"><div><div></div></div></div>
michael@0 200
michael@0 201 </body>
michael@0 202 </html>

mercurial