~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/formctls/bugs/bug7543.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
 
2
<TITLE>INPUT size test</TITLE>
 
3
 
 
4
<P>All of the following <code>INPUT</code> fields have a <code>size</code> of 14:</P>
 
5
 
 
6
<FORM ACTION="#">
 
7
 <P>
 
8
  <strong>1)</strong> Browser default font:<BR>
 
9
  <INPUT TYPE=TEXT SIZE=14 value="12345678901234567890">
 
10
 </P>
 
11
 <P>
 
12
  <strong>2)</strong> Times New Roman (default in M7 Apprunner/Windows) or other serif font:<BR>
 
13
  <INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: 'Times New Roman', serif;">
 
14
 </P>
 
15
 <P>
 
16
  <strong>3)</strong> MS Sans Serif (default in IE4.x/Windows) or other sans-serif font:<BR>
 
17
  <INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: 'MS Sans Serif', sans-serif;">
 
18
 </P>
 
19
 <P>
 
20
  <strong>4)</strong> Arial or other sans-serif font:<BR>
 
21
  <INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: Arial, sans-serif;">
 
22
 </P>
 
23
 <P>
 
24
  <strong>5)</strong> Monospace font (default in Navigator 4.x):<br>
 
25
  <INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: monospace;">
 
26
 </P>
 
27
</FORM>
 
28
 
 
29
<P>
 
30
 Since the <code>INPUT</code> field in test 5 is using monospace font, it should fit exactly 14 characters (eg. the visible string should be "12345678901234", no more, no less).
 
31
</P>
 
32
<P>    
 
33
 However, when an <code>INPUT</code> field uses a proportional font - as tests 2-4 do - the specified number of visible characters is always an <em>average</em>, not an accurate value.  Try filling the field with lowercase 'l' letters or uppercase 'W':s to get the point.
 
34
</P>
 
35
 
 
36
<HR>
 
37
 
 
38
<ADDRESS>Antti.Nayha@oulu.fi</ADDRESS>
 
 
b'\\ No newline at end of file'