layout/reftests/text-overflow/line-clipping.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-overflow/line-clipping.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     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: When we have multiple lines of text with "text-overflow: ellipsis",
    1.10 +    an ellipsis on one line shouldn't affect the other lines.
    1.11 +-->
    1.12 +<html>
    1.13 +<head>
    1.14 +<title>Testcase for bug 886313</title>
    1.15 +<style type="text/css">
    1.16 +@font-face {
    1.17 +  font-family: DejaVuSansMono;
    1.18 +  src: url(../fonts/DejaVuSansMono.woff),url(DejaVuSansMono.woff);
    1.19 +}
    1.20 +.test {
    1.21 +  font: 16px DejaVuSansMono;
    1.22 +  text-overflow:ellipsis;
    1.23 +  overflow: hidden;
    1.24 +  width:55px;
    1.25 +  border: 1px solid black;
    1.26 +  margin-bottom: 2px;
    1.27 +}
    1.28 +</style>
    1.29 +</head>
    1.30 +<body>
    1.31 +  <div class="test">well, hello world</div>
    1.32 +  <div class="test">well, hello world!</div>
    1.33 +  <div class="test">well, helloo world</div>
    1.34 +</body>
    1.35 +</html>

mercurial