layout/reftests/text-overflow/marker-string.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 Test: text-overflow:<string>
michael@0 7 -->
michael@0 8 <html><head>
michael@0 9 <title>text-overflow: text-overflow:&lt;string&gt;</title>
michael@0 10 <style type="text/css">
michael@0 11 @font-face {
michael@0 12 font-family: DejaVuSansMono;
michael@0 13 src: url(../fonts/DejaVuSansMono.woff);
michael@0 14 }
michael@0 15 html,body {
michael@0 16 color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
michael@0 17 }
michael@0 18
michael@0 19 .test {
michael@0 20 overflow:hidden;
michael@0 21 width:20ch;
michael@0 22 height:3em;
michael@0 23 white-space:nowrap;
michael@0 24 margin-left:2em;
michael@0 25 position:relative;
michael@0 26 }
michael@0 27 span {
michael@0 28 margin: 0 -0.5ch;
michael@0 29 }
michael@0 30 s {
michael@0 31 margin: 0 -0.5ch;
michael@0 32 padding: 0 11ch;
michael@0 33 }
michael@0 34 .rlo {
michael@0 35 unicode-bidi: bidi-override; direction:rtl;
michael@0 36 }
michael@0 37 .lro {
michael@0 38 unicode-bidi: bidi-override;
michael@0 39 }
michael@0 40 .rtl {
michael@0 41 direction:rtl;
michael@0 42 }
michael@0 43 .ltr {
michael@0 44 direction:ltr;
michael@0 45 }
michael@0 46
michael@0 47 .t1 { text-overflow:"" ""; }
michael@0 48 .t2 { text-overflow:"Hello World" "Hello World"; }
michael@0 49 .t3 { text-overflow:"X" "X"; }
michael@0 50
michael@0 51 </style>
michael@0 52
michael@0 53 </head><body>
michael@0 54
michael@0 55
michael@0 56 <!-- Empty marker clips text -->
michael@0 57 <div class="test t1"><span>xx</span></div>
michael@0 58 <div class="test rtl t1"><span>xx</span></div>
michael@0 59 <!-- big marker clips all text -->
michael@0 60 <div class="test t2"><span>xx</span></div>
michael@0 61 <div class="test rtl t2"><span>xx</span></div>
michael@0 62
michael@0 63 <!-- start marker that doesn't fit -->
michael@0 64 <div class="test t2" style="width:3ch"><span>xx</span></div>
michael@0 65 <div class="test rtl t2" style="width:3ch"><span>xx</span></div>
michael@0 66
michael@0 67 <!-- start + end marker, nothing to align to -->
michael@0 68 <div class="test t3"><s></s></div>
michael@0 69 <div class="test rtl t3"><s></s></div>
michael@0 70
michael@0 71
michael@0 72 </body>
michael@0 73 </html>

mercurial