Page tree
Skip to end of metadata
Go to start of metadata


When using Compliance Deputy, you may notice some false positive when it comes to background color contrast ratios.  While it is always good to check each color contrast ratio error that is flagged, some may be caused by the CSS Background property short hand version.



Ensuring that a contrast ratio of at least 4.5:1 exists between text (and images of text) and background behind the text. (WCAG 2.0)



Content has invalid contrast ratio color=#333 background=#fff url( repeat-x;

Color Contrast Ratio Tool

WebAIM Color Contrast Checker


To fix this issue, remove the background color from the short hand version and add it as a separate background-color property.


Short hand background color:

      background: #fff url( repeat-x;
      /* background-color: #fff; */

Fix - separate background color property:

      background: url( repeat-x;
      background-color: #fff; 
      color: #333;     
  • No labels