HTML and CSS
The objective of this failure condition is to describe a problem that occurs when changing the size of text does not cause the text-based form controls to resize accordingly. This means that the user may have difficulty entering text and being able to read what they have entered because the text is not displayed at the text size required by the user.
Text-based form controls include input boxes (text and textarea) as well as buttons.
A Contact Us form has some introductory information and then form controls for users to enter their first name, last name, telephone number and email address. The heading, introductory text and form control labels have been implemented in a scalable way but the form controls themselves have not.
The HTML component:
<h1>Contact Us</h1>
<p>Please provide us with your details and we will contact you as soon as we can.
Note that all of the form fields are required.</p>
<div>
<label for="fname">First Name</label>
<input type="text" name="fname" id="fname">
</div>
<div>
<label for="lname">Last Name</label>
<input type="text" name="lname" id="lname">
</div>
<div>
<label for="phone">Telephone</label>
<input type="text" name="phone" id="phone">
</div>
<div>
<label for="email">Email</label>
<input type="text" name="email" id="email">
</div>
<input type="submit" name="Submit" value="Submit" id="Submit">
The CSS component:
h1 { font-size: 2em; }
p, label { font-size: 1em; }
input {font-size: 12pt;}