baseline-1.html (1061B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html lang="en-US"> 4 <head> 5 <title>Text baseline positioning test</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <!-- 8 The primary font MarkA has a small line height. The fallback font 9 (used for the character '1') will probably have a maximum ascent 10 greater than the ascent plus half leading of MarkA, but this 11 should not adversly affect the positioning of characters from the 12 primary font. Currently the maximum ascent of the fallback font 13 has no effect on the position, but if a future implementation 14 considers the fallback font in the position, this test may need to 15 be modified to accommodate. 16 --> 17 <style type="text/css"> 18 @font-face { 19 font-family: "MarkA"; 20 src: url(../fonts/markA.ttf); 21 } 22 input { 23 font-family: "MarkA", sans-serif; 24 font-size: 32px; 25 } 26 </style> 27 </head> 28 <body> 29 <input size="2" value="AAAAAAAA1"> 30 </body> 31 </html>