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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-overflow/marker-string-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<!--
     1.6 +    Any copyright is dedicated to the Public Domain.
     1.7 +    http://creativecommons.org/licenses/publicdomain/
     1.8 +
     1.9 +    Test: text-overflow:<string>
    1.10 +-->
    1.11 +<html><head>
    1.12 +<title>text-overflow: text-overflow:&lt;string&gt;</title>
    1.13 +<style type="text/css">
    1.14 +@font-face {
    1.15 +  font-family: DejaVuSansMono;
    1.16 +  src: url(../fonts/DejaVuSansMono.woff);
    1.17 +}
    1.18 +html,body {
    1.19 +    color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
    1.20 +}
    1.21 +
    1.22 +.test {
    1.23 +  overflow:hidden;
    1.24 +  width:20ch;
    1.25 +  height:3em;
    1.26 +  white-space:nowrap;
    1.27 +  margin-left:2em;
    1.28 +  position:relative;
    1.29 +}
    1.30 +span {
    1.31 +  margin: 0 -0.5ch;
    1.32 +}
    1.33 +m {
    1.34 +  margin: 0;
    1.35 +  position:relative;
    1.36 +}
    1.37 +mr {
    1.38 +  position:absolute;
    1.39 +  right:0;
    1.40 +}
    1.41 +.rlo {
    1.42 +  unicode-bidi: bidi-override; direction:rtl;
    1.43 +}
    1.44 +.lro {
    1.45 +  unicode-bidi: bidi-override;
    1.46 +}
    1.47 +.rtl {
    1.48 +  direction:rtl;
    1.49 +}
    1.50 +.ltr {
    1.51 +  direction:ltr;
    1.52 +}
    1.53 +
    1.54 +.t1 m { margin: 0 -0.5ch; }
    1.55 +
    1.56 +</style>
    1.57 +
    1.58 +</head><body>
    1.59 +
    1.60 +
    1.61 +<div class="test t1"><m>&nbsp;x</m></div>
    1.62 +<div class="test rtl t1"><m>&nbsp;x</m></div>
    1.63 +<div class="test t2"><span>xx</span></div>
    1.64 +<div class="test rtl t2"><span>xx</span></div>
    1.65 +
    1.66 +<div class="test t2" style="width:3ch"><span>xx</span></div>
    1.67 +<div class="test rtl t2" style="width:3ch"><span>xx</span></div>
    1.68 +<div class="test"><m>X</m><mr>X</mr></div>
    1.69 +<div class="test"><m>X</m><mr>X</mr></div>
    1.70 +
    1.71 +</body>
    1.72 +</html>

mercurial