layout/reftests/bugs/528096-1.html

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>
michael@0 2 <!-- Test for some pieces of bug 528096; other pieces are tested in
michael@0 3 the mochitests test_font_face_parser.html,
michael@0 4 test_media_queries.html, and test_selectors.html -->
michael@0 5 <html><head>
michael@0 6 <title>Test for bug 528096 (counters and image rects)</title>
michael@0 7 <style>
michael@0 8
michael@0 9 div { display: inline-block; vertical-align: bottom;
michael@0 10 margin-right: 6px; width: 16px; height: 16px;
michael@0 11 background-color: orange; }
michael@0 12 div::before { display: inline-block; height: 16px; }
michael@0 13
michael@0 14 /* -moz-image-rect() */
michael@0 15 #i1::before {
michael@0 16 background-color: lime;
michael@0 17 background-image: -moz-image-rect((); background-color: red;);
michael@0 18 content: url("checkmark.gif");
michael@0 19 }
michael@0 20
michael@0 21 /* counter() */
michael@0 22 #c1::before {
michael@0 23 background-color: lime;
michael@0 24 content: counter((); background-color: red;);
michael@0 25 content: url("checkmark.gif");
michael@0 26 }
michael@0 27 #c2::before {
michael@0 28 background-color: lime;
michael@0 29 content: counter(foo,(); background-color: red;);
michael@0 30 content: url("checkmark.gif");
michael@0 31 }
michael@0 32
michael@0 33 /* counters() */
michael@0 34 #cs1::before {
michael@0 35 background-color: lime;
michael@0 36 content: counters((); background-color: red;);
michael@0 37 content: url("checkmark.gif");
michael@0 38 }
michael@0 39 #cs2::before {
michael@0 40 background-color: lime;
michael@0 41 content: counters(foo,(); background-color: red;);
michael@0 42 content: url("checkmark.gif");
michael@0 43 }
michael@0 44 #cs3::before {
michael@0 45 background-color: lime;
michael@0 46 content: counters(foo,"s",(); background-color: red;);
michael@0 47 content: url("checkmark.gif");
michael@0 48 }
michael@0 49 </style>
michael@0 50 </head><body>
michael@0 51
michael@0 52 <table><tr>
michael@0 53 <td>-moz-image-rect()</td>
michael@0 54 <td><div id="i1"></td>
michael@0 55 </tr><tr>
michael@0 56 <td>counter()</td>
michael@0 57 <td><div id="c1"></div><div id="c2"></div></td>
michael@0 58 </tr><tr>
michael@0 59 <td>counters()</td>
michael@0 60 <td><div id="cs1"></div><div id="cs2"></div><div id="cs3"></div></td>
michael@0 61 </tr></table>
michael@0 62
michael@0 63 <p>
michael@0 64 <a target="_blank"
michael@0 65 href="https://bugzilla.mozilla.org/show_bug.cgi?id=528096">Mozilla
michael@0 66 bug 528096</a>. There should be no red or orange, and each square
michael@0 67 should have a black checkmark in it.
michael@0 68 </p>
michael@0 69
michael@0 70 </body></html>

mercurial