Fri, 16 Jan 2015 18:13:44 +0100
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: overflowing anonymous block should not have marker |
michael@0 | 7 | --> |
michael@0 | 8 | <html><head> |
michael@0 | 9 | <title>text-overflow: anonymous block</title> |
michael@0 | 10 | <style type="text/css"> |
michael@0 | 11 | @font-face { |
michael@0 | 12 | font-family: DejaVuSansMono; |
michael@0 | 13 | src: url(../fonts/DejaVuSansMono.woff); |
michael@0 | 14 | } |
michael@0 | 15 | html,body { |
michael@0 | 16 | color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | .test { |
michael@0 | 20 | text-overflow:ellipsis; |
michael@0 | 21 | overflow:hidden; |
michael@0 | 22 | width:50%; |
michael@0 | 23 | height:10em; |
michael@0 | 24 | |
michael@0 | 25 | border:1px solid black; |
michael@0 | 26 | white-space:pre; |
michael@0 | 27 | margin-left:2em; |
michael@0 | 28 | margin-bottom:2em; |
michael@0 | 29 | line-height:1.5em; |
michael@0 | 30 | } |
michael@0 | 31 | i { |
michael@0 | 32 | display:inline-block; |
michael@0 | 33 | height: 3em; |
michael@0 | 34 | width: 5em; |
michael@0 | 35 | background: blue; |
michael@0 | 36 | font-style:normal; |
michael@0 | 37 | } |
michael@0 | 38 | span { |
michael@0 | 39 | position:relative; |
michael@0 | 40 | background:pink; |
michael@0 | 41 | top:40px; |
michael@0 | 42 | left:16em; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | .t1 {width:6em;} |
michael@0 | 46 | .t2 {width:2em;} |
michael@0 | 47 | .t3 {width:25em;} |
michael@0 | 48 | .t4 {width:17.5em;} |
michael@0 | 49 | |
michael@0 | 50 | input { font-family:DejaVuSansMono; } |
michael@0 | 51 | input::-moz-placeholder { |
michael@0 | 52 | overflow:hidden; |
michael@0 | 53 | text-overflow:ellipsis; |
michael@0 | 54 | } |
michael@0 | 55 | input.t5::-moz-placeholder { |
michael@0 | 56 | text-overflow:"X"; |
michael@0 | 57 | } |
michael@0 | 58 | |
michael@0 | 59 | </style> |
michael@0 | 60 | |
michael@0 | 61 | </head><body> |
michael@0 | 62 | |
michael@0 | 63 | |
michael@0 | 64 | <div class="test t1"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div> |
michael@0 | 65 | <div class="test t2"><x>Some overly long<i style="display:block;">anonymous<br>block</i>and uninformative sentence</x></div> |
michael@0 | 66 | <div class="test t3"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div> |
michael@0 | 67 | <div class="test t4"><x>Some overly <span>long<i style="display:block;">anonymous<br>block</i>and</span> uninformative sentence</x></div> |
michael@0 | 68 | |
michael@0 | 69 | <input size="4" placeholder="placeholder"> |
michael@0 | 70 | <input size="4" dir="rtl" placeholder="placeholder"> |
michael@0 | 71 | <input size="4" class="t5" placeholder="placeholder"> |
michael@0 | 72 | <input size="4" class="t5" dir="rtl" placeholder="placeholder"> |
michael@0 | 73 | |
michael@0 | 74 | </body> |
michael@0 | 75 | </html> |