layout/reftests/text-overflow/table-cell.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:ellipsis on table-cell
michael@0 7 -->
michael@0 8 <html><head>
michael@0 9 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
michael@0 10 <title>Test text-overflow:ellipsis on table-cell</title>
michael@0 11 <style type="text/css">
michael@0 12 @font-face {
michael@0 13 font-family: DejaVuSansMono;
michael@0 14 src: url(../fonts/DejaVuSansMono.woff);
michael@0 15 }
michael@0 16 html,body {
michael@0 17 color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
michael@0 18 }
michael@0 19
michael@0 20 .table {
michael@0 21 color: black;
michael@0 22 display: table;
michael@0 23 table-layout: fixed;
michael@0 24 height: 5em;
michael@0 25 width: 5em;
michael@0 26 }
michael@0 27 .row {
michael@0 28 display: table-row;
michael@0 29 }
michael@0 30 .cell {
michael@0 31 display: table-cell;
michael@0 32 white-space: nowrap;
michael@0 33 overflow: hidden;
michael@0 34 text-overflow: ellipsis;
michael@0 35 }
michael@0 36 </style>
michael@0 37 </head>
michael@0 38 <body>
michael@0 39 <div class="table">
michael@0 40 <div class="row">
michael@0 41 <div class="cell">||||||||||||||</div>
michael@0 42 </div>
michael@0 43 <div class="row">
michael@0 44 <div class="cell"><span>||||||||||||||</span></div>
michael@0 45 </div>
michael@0 46 </div>
michael@0 47 </body></html>

mercurial