layout/reftests/text-overflow/marker-string-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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 m {
michael@0 31 margin: 0;
michael@0 32 position:relative;
michael@0 33 }
michael@0 34 mr {
michael@0 35 position:absolute;
michael@0 36 right:0;
michael@0 37 }
michael@0 38 .rlo {
michael@0 39 unicode-bidi: bidi-override; direction:rtl;
michael@0 40 }
michael@0 41 .lro {
michael@0 42 unicode-bidi: bidi-override;
michael@0 43 }
michael@0 44 .rtl {
michael@0 45 direction:rtl;
michael@0 46 }
michael@0 47 .ltr {
michael@0 48 direction:ltr;
michael@0 49 }
michael@0 50
michael@0 51 .t1 m { margin: 0 -0.5ch; }
michael@0 52
michael@0 53 </style>
michael@0 54
michael@0 55 </head><body>
michael@0 56
michael@0 57
michael@0 58 <div class="test t1"><m>&nbsp;x</m></div>
michael@0 59 <div class="test rtl t1"><m>&nbsp;x</m></div>
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 <div class="test t2" style="width:3ch"><span>xx</span></div>
michael@0 64 <div class="test rtl t2" style="width:3ch"><span>xx</span></div>
michael@0 65 <div class="test"><m>X</m><mr>X</mr></div>
michael@0 66 <div class="test"><m>X</m><mr>X</mr></div>
michael@0 67
michael@0 68 </body>
michael@0 69 </html>

mercurial