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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-overflow/anonymous-block.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,75 @@
     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: overflowing anonymous block should not have marker
    1.10 +-->
    1.11 +<html><head>
    1.12 +<title>text-overflow: anonymous block</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 +  text-overflow:ellipsis;
    1.24 +  overflow:hidden;
    1.25 +  width:50%;
    1.26 +  height:10em;
    1.27 +
    1.28 +  border:1px solid black;
    1.29 +  white-space:pre;
    1.30 +  margin-left:2em;
    1.31 +  margin-bottom:2em;
    1.32 +  line-height:1.5em;
    1.33 +}
    1.34 +i {
    1.35 +  display:inline-block;
    1.36 +  height: 3em;
    1.37 +  width: 5em;
    1.38 +  background: blue;
    1.39 +  font-style:normal;
    1.40 +}
    1.41 +span {
    1.42 +  position:relative;
    1.43 +  background:pink;
    1.44 +  top:40px;
    1.45 +  left:16em;
    1.46 +}
    1.47 +
    1.48 +.t1 {width:6em;}
    1.49 +.t2 {width:2em;}
    1.50 +.t3 {width:25em;}
    1.51 +.t4 {width:17.5em;}
    1.52 +
    1.53 +input { font-family:DejaVuSansMono; }
    1.54 +input::-moz-placeholder {
    1.55 +  overflow:hidden;
    1.56 +  text-overflow:ellipsis;
    1.57 +}
    1.58 +input.t5::-moz-placeholder {
    1.59 +  text-overflow:"X";
    1.60 +}
    1.61 +
    1.62 +</style>
    1.63 +
    1.64 +</head><body>
    1.65 +
    1.66 +
    1.67 +<div class="test t1"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
    1.68 +<div class="test t2"><x>Some overly long<i style="display:block;">anonymous<br>block</i>and uninformative sentence</x></div>
    1.69 +<div class="test t3"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
    1.70 +<div class="test t4"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div>
    1.71 +
    1.72 +<input size="4" placeholder="placeholder">
    1.73 +<input size="4" dir="rtl" placeholder="placeholder">
    1.74 +<input size="4" class="t5" placeholder="placeholder">
    1.75 +<input size="4" class="t5" dir="rtl" placeholder="placeholder">
    1.76 +
    1.77 +</body>
    1.78 +</html>

mercurial