Skip to content

Commit

Permalink
feat: blur images with missing or unhelpful alt tags (resolves #389) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Sep 10, 2020
1 parent f4a02ca commit 6fd361a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scss/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ article {
audio {
max-width: 100%;
}

// Blur imags which are missing alt tags altogether
// or whose alt tags begin with "This image has an empty alt attribute"
img:not([alt]),
img[alt^="This image has an empty alt attribute"] {
filter: blur(10px);
}
}

video {
Expand Down

0 comments on commit 6fd361a

Please sign in to comment.