Success Criteria 1.4.12
Failure
This techniques applies to text content created in markup languages that support text style properties.
The purpose of this technique is identify and test a failure condition where part of the content clips and is unreadable when the user overrides the spacing of the text within the boundaries set out in the Text Spacing success criteria. In general, this failure occurs when there is no way for a user agent's layout engine to honor all the layout overrides in the HTML for the user defined font spacing. Some of the ways in which this can occur include:
The code below is what is implemented in the DOM before the user implements any CSS test spacing overrides. The text renders correctly in the box and doesn't interfere with the next paragraph.
<div style="font-size:100%; width:120px; height:90px; border: thin solid gray;">
Now is the time for all good men to come to the aid of their country.
</div>
<p>Now is the time for all good men to come to the aid of their country.</p>
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
The code below is what is implemented in the DOM before the user implements any CSS test spacing overrides. The text renders correctly in the box and doesn't interfere with the next paragraph.
<div style="font-size:100%; width:120px; height:85px; overflow: hidden; border: thin solid gray;"> Now is the time for all good men to come to the aid of their country. </div> <p>Now is the time for all good men to come to the aid of their country.</p>
Now is the time for all good men to come to the aid of their country.
Now is the time for all good men to come to the aid of their country.
Provide links to external resources that are relevant to users of the technique. This section is optional.