Last active
June 29, 2020 06:28
-
-
Save mrkpatchaa/a6de8dbeafc93494dacc6e0c5d00a406 to your computer and use it in GitHub Desktop.
Accessibility and security in CSS #css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Unsecure target _blank */ | |
a[target$="blank"]:not([rel*="noopener"]):not([rel*="noreferrer"]) { | |
outline: 2px dotted red; | |
} | |
/* Links going nowhere */ | |
a:is(:not([href]), [href=""], [href="#"]) { | |
outline: 2px dotted red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment