CSS Font And Background Color Check

RuleSets of AccessMonitor - the validator of web accessibility practices

CSS Font And Background Color Check

Description

The “CSS Font And Background Color Check” evaluates whether CSS rules explicitly define both the font color and the background color.

Example outcome

I identified 1 CSS rule that does not specify either the font color or the background color.

Impact

Fixes

To address missing font and/or background color:

  1. Locate the custom styles missing the font and/or background color.
  2. Update the CSS rules to explicitly declare both the color (font) and background-color

Resources