SIA-R85Paragraphs of text are not all italics
Accessibility requirements
This rule is not required for conformance to any accessibility requirements.
Description
This rule checks that paragraphs of text are not all italics.
Applicability
This rule applies to every element that has a semantic role of paragraph
and is visible.
Expectations
- The element does not have a computed
font-style
ofitalics
.
Assumptions
This rule makes no assumptions.
Accessibility support
This rule has no known accessibility support concerns.
Examples
Passed
This paragraph of text is not made all italics using font-style
:
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nec diam
ullamcorper, cursus nulla non, congue purus. Cras vehicula risus lacus, ac
placerat diam vestibulum a. Maecenas lobortis enim interdum nisl vehicula
eleifend. Sed et velit nulla.
</p>
Failed
This paragraph of text is made all italics using font-style
:
<style>
p {
font-style: italics;
}
</style>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nec diam
ullamcorper, cursus nulla non, congue purus. Cras vehicula risus lacus, ac
placerat diam vestibulum a. Maecenas lobortis enim interdum nisl vehicula
eleifend. Sed et velit nulla.
</p>
Inapplicable
This paragraph of text is hidden and is therefore inapplicable:
<p hidden>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nec diam
ullamcorper, cursus nulla non, congue purus. Cras vehicula risus lacus, ac
placerat diam vestibulum a. Maecenas lobortis enim interdum nisl vehicula
eleifend. Sed et velit nulla.
</p>