CARVIEW |
On this page:
F4: Failure of Success Criterion 2.2.2 due to using text-decoration:blink without a mechanism to stop it in less than five seconds
Important Information about Techniques
See Understanding Techniques for WCAG Success Criteria for important information about the usage of these informative techniques and how they relate to the normative WCAG 2.0 success criteria. The Applicability section explains the scope of the technique, and the presence of techniques for a specific technology does not imply that the technology can be used in all situations to create content that meets WCAG 2.0.
Applicability
Cascading Style Sheets.
This failure relates to:
User Agent and Assistive Technology Support Notes
Description
CSS defines the blink
value for the text-decoration
property. When used, it causes any text in elements with this property to
blink at a predetermined rate. This cannot be interrupted by the user, nor
can it be disabled as a user agent preference. The blinking continues as
long as the page is displayed. Therefore, content that uses
text-decoration:blink
fails the Success Criterion because
blinking can continue for more than three seconds.
Examples
Failure Example 1
A product list page uses the text-decoration:blink
style
on an element to draw attention to sale prices. This fails the
Success Criterion because users cannot control the blink.
Example Code:
<p>My Great Product <span style="text-decoration:blink">Sale! $44,995!</span></p>
Resources
Resources are for information purposes only, no endorsement implied.
Related Techniques
Tests
Procedure
Examine inline styles, internal stylesheets, and external stylesheets for the
text-decoration
property with a value of "blink".If the property is used, determine if the ID, class, or element identified by selectors on which this property is defined are used in the document.
Expected Results
If step #1 and step #2 are true, the content fails the success criterion.
This Web page is part of Techniques and Failures for Web Content Accessibility Guidelines 2.0 (see the latest version of this document). The entire document is also available as a single HTML file. See the The WCAG 2.0 Documents for an explanation of how this document fits in with other Web Content Accessibility Guidelines (WCAG) 2.0 documents. To send public comments, please follow the Instructions for Commenting on WCAG 2.0 Documents.
Copyright © 2016 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and document use rules apply.