OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>white-space normal: zero width non-breaking space</title> | 4 <title>white-space normal: zero width non-breaking space</title> |
5 <style type="text/css"> | 5 <style type="text/css"> |
| 6 @font-face { font-family: myahem; src: url(../../../resources/Ahem.ttf); } |
6 /* setup */ | 7 /* setup */ |
7 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; co
lor: white; } | 8 .control { display: inline; font: 1em/1 myahem, sans-serif; background: red;
color: white; } |
8 * { white-space: normall; font: inherit; } | 9 * { white-space: normall; font: inherit; } |
9 div { display: block; margin: 1em; } | 10 div { display: block; margin: 1em; } |
10 span { display: inline; } | 11 span { display: inline; } |
11 | 12 |
12 /* test */ | 13 /* test */ |
13 div { font: 20px/1 Ahem; width: 4em; background: red; color: green; } | 14 div { font: 20px/1 myahem; width: 4em; background: red; color: green; } |
14 </style> | 15 </style> |
15 </head> | 16 </head> |
16 <body> | 17 <body> |
17 <div class="control">Ahem_font_required_for_this_test.</div> | 18 <div class="control">Ahem_font_required_for_this_test.</div> |
18 <p>There should be a green block below, no red.</p> | 19 <p>There should be a green block below, no red.</p> |
19 | 20 |
20 <div> | 21 <div> |
21 xxxx | 22 xxxx |
22 xxxx | 23 xxxx |
23 </div> | 24 </div> |
24 | 25 |
25 </body> | 26 </body> |
26 </html> | 27 </html> |
OLD | NEW |