MikeDre
11/5/2019 - 2:40 PM

Outline images without alt tags

Outline images without alt tags

/* missing lang on <html> */
html:not([lang]),
html[lang=""] {
  border-top: 20px solid red;
}

/* missing alt on <img> */
img:not([alt]),
img[alt=""] {
  border: 5px dashed red;
}

/* missing role and aria-label on <canvas> */
canvas:not([role]),
canvas:not([aria-label]),
canvas[role=""],
canvas[aria-label=""] {
  border: 5px dashed red;
}