layout/reftests/text-overflow/anonymous-block-ref.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
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 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/licenses/publicdomain/
michael@0 5 -->
michael@0 6 <html><head>
michael@0 7 <title>text-overflow: anonymous block</title>
michael@0 8 <style type="text/css">
michael@0 9 @font-face {
michael@0 10 font-family: DejaVuSansMono;
michael@0 11 src: url(../fonts/DejaVuSansMono.woff);
michael@0 12 }
michael@0 13 html,body {
michael@0 14 color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
michael@0 15 }
michael@0 16
michael@0 17 .test {
michael@0 18 overflow:hidden;
michael@0 19 width:50%;
michael@0 20 height:10em;
michael@0 21
michael@0 22 border:1px solid black;
michael@0 23 white-space:pre;
michael@0 24 margin-left:2em;
michael@0 25 margin-bottom:2em;
michael@0 26 line-height:1.5em;
michael@0 27 }
michael@0 28 i {
michael@0 29 display:inline-block;
michael@0 30 height: 3em;
michael@0 31 width: 5em;
michael@0 32 background: blue;
michael@0 33 font-style:normal;
michael@0 34 }
michael@0 35 span {
michael@0 36 position:relative;
michael@0 37 background:pink;
michael@0 38 top:40px;
michael@0 39 left:16em;
michael@0 40 }
michael@0 41
michael@0 42 .t1 {width:6em;}
michael@0 43 .t2 {width:2em;}
michael@0 44 .t3 {width:25em;}
michael@0 45 .t4 {width:17.5em;}
michael@0 46
michael@0 47 input { font-family:DejaVuSansMono; }
michael@0 48
michael@0 49 </style>
michael@0 50
michael@0 51 </head><body>
michael@0 52
michael@0 53
michael@0 54 <div class="test t1"><x>Some ove<m>&#x2026;</m><span><i style="display:block;">anonymous<br>block</i>and</span> unin<m>&#x2026;</m></x></div>
michael@0 55 <div class="test t2"><x>So<m>&#x2026;</m><i style="display:block;">anonymous<br>block</i>an<m>&#x2026;</m></x></div>
michael@0 56 <div style="position:absolute;"><div class="test t3" style="border-style:none;padding:1px"><x>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<m style="padding-left:16em">&#x2026;</m></div></div>
michael@0 57 <div class="test t3"><x>Some overly <span>l&nbsp;&nbsp;&nbsp;</span><span><i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
michael@0 58 <div class="test t4"><x>Some overly <m>&#x2026;</m><span>long<i style="display:block;">anonymous<br>block</i>a&nbsp;&nbsp;</span> uninformative sentence</x></div>
michael@0 59
michael@0 60 <input size="4" placeholder="pla&#x2026;">
michael@0 61 <input size="4" dir="rtl" placeholder="der&#x2026;">
michael@0 62 <input size="4" placeholder="plaX">
michael@0 63 <input size="4" dir="rtl" placeholder="Xder">
michael@0 64
michael@0 65 </body>
michael@0 66 </html>

mercurial