Style: Colour Contrast
Colour Contrast is available only with the beta version of Firefox Accessibility Extension.
Dialog Box
Colour Contrast List
- This list itemizes foreground and background color combinations of following elements: headers (
H#),tableand the children elements,div,p,span,ul,ol,li,option,inputelements which display text that should be legible -- buttons (submit,reset, andbutton) and data entry fields (text,file,password), etc. - The Extension examines elements with distinct IDs and first occurrence of each element with text that does not have an ID.
- The Extension does not consider the color of a background image of the text.
- The Extension does not consider the size or weight of the font.
- Selecting an item in the list, by clicking on the item or by using the arrow keys, highlights the corresponding element in the browser, and populates the Example display of the color combination.
- Selecting an item with colored background, by clicking on the item or by using the arrow keys, displays related accessibility statement in the Accessibility Information area.
- Columns
- Order (Hidden) - The sequence in which the items appear on the page is displayed.
- Text - The text content of the element is displayed.
- Type - The
classattribute of the element is displayed; if theclassattribute is not available, this entry is left blank. - Tag - The name of the element with the color combination is displayed.
- Colour - The
colorattribute or theCSS colorproperty of the element is displayed; if neither is available, the default forecolor of the element is displayed. - BGColor - The
bgcolorattribute or theCSS background-colorproperty of the element is displayed; if neither is available, the default background color of the element is displayed. - Luminosity - The index of contrast between the Colour and BGColor of the element is displayed.
Note: To get this index, the luminositites of Colour and BGColor are calculated from the RGB color code, and then the larger luminosity of the two is divided by the smaller luminosity.
Example
- The text Example of (Colour) on (BGColor) is displayed in the color combination of the selected item.
Accessibility Information
- Fail: contrast ratio is below the minimal acceptable level (3:1)
- Warn: contrast ratio is below the optimal acceptable level (5:1)
- Colour contrast cannot be determined for windows containing frames.
- ToDo: Avoid using the deprecated color attribute on HTML elements for specifying color; use CSS instead.
fontelement is deprecated andcolorattribute forfontelement should not be used.
Buttons
- View Summary - opens a new browser window and displays the contents of the dialog box in the new browser window, allowing the user to see/print the entire data set.
- Close Window - closes the dialog box.
