OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>Test for text-overflow: ellipsis using SVG font</title> | |
5 <style> | |
6 | |
7 @font-face { | |
8 font-family: 'ABCFont'; | |
9 src: local('☺'), url('../../svg/custom/resources/ABCFont.svg#ABCFont') forma
t('svg'); | |
10 font-weight: normal; | |
11 font-style: normal; | |
12 } | |
13 | |
14 .ellipsis { | |
15 width: 180px; | |
16 margin: 0 0 20px 0; | |
17 border: 1px solid black; | |
18 text-overflow: ellipsis; | |
19 overflow: hidden; | |
20 white-space: nowrap; | |
21 } | |
22 | |
23 .svgfont { | |
24 font-family: 'ABCFont'; | |
25 } | |
26 </style> | |
27 </head> | |
28 <body> | |
29 | |
30 This test checks that the text-overflow: ellipsis property is handled correctly
when using an SVG font.<br><br> | |
31 | |
32 Pass if some text is shown followed by an ellipsis (NOT just the ellipsis by its
elf). | |
33 <br><br> | |
34 | |
35 <div class="ellipsis svgfont"> | |
36 abc abc abc abc abc abc abc abc abc abc | |
37 </div> | |
38 | |
39 </body> | |
40 </html> | |
OLD | NEW |