layout/reftests/text-overflow/table-cell.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-overflow/table-cell.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     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:ellipsis on table-cell
    1.10 +-->
    1.11 +<html><head>
    1.12 +<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    1.13 +        <title>Test text-overflow:ellipsis on table-cell</title>
    1.14 +        <style type="text/css">
    1.15 +@font-face {
    1.16 +  font-family: DejaVuSansMono;
    1.17 +  src: url(../fonts/DejaVuSansMono.woff);
    1.18 +}
    1.19 +html,body {
    1.20 +    color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
    1.21 +}
    1.22 +
    1.23 +            .table {
    1.24 +                color: black;
    1.25 +                display: table;
    1.26 +                table-layout: fixed;
    1.27 +                height: 5em;
    1.28 +                width: 5em;
    1.29 +            }
    1.30 +            .row {
    1.31 +                display: table-row;
    1.32 +            }
    1.33 +            .cell {
    1.34 +                display: table-cell;
    1.35 +                white-space: nowrap;
    1.36 +                overflow: hidden;
    1.37 +                text-overflow: ellipsis;
    1.38 +            }
    1.39 +        </style>
    1.40 +    </head>
    1.41 +    <body>
    1.42 +        <div class="table">
    1.43 +            <div class="row">
    1.44 +                <div class="cell">||||||||||||||</div>
    1.45 +            </div>
    1.46 +            <div class="row">
    1.47 +                <div class="cell"><span>||||||||||||||</span></div>
    1.48 +            </div>
    1.49 +        </div>
    1.50 +</body></html>

mercurial