Created
June 24, 2020 08:06
-
-
Save sagar-gavhane/fe7a14c28fbcedc4d7317b0d6fe46f5f to your computer and use it in GitHub Desktop.
selector hunts for forbidden nesting
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
:not(figure) > figcaption, | |
:not(fieldset) > legend, | |
:not(dl) > :is(dt, dd), | |
:not(tr) > :is(td, th), | |
:not(select) > :is(option, optgroup), | |
:not(table) > :is(thead, tfoot, tbody, tr, colgroup, caption) { | |
outline: 2px dotted red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment