Created
January 28, 2020 00:13
-
-
Save tomhodgins/3033c8d3f8b0f7e1970b61ea7ff39fbe to your computer and use it in GitHub Desktop.
What if CSS had something like [attribute="selectors"] for matching partial tag names
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
<custom-element></custom-element> | |
<custom-element-1></custom-element-1> | |
<custom-2-element></custom-2-element> | |
<custom-element-name></custom-element-name> | |
<custom-elementname></custom-elementname> | |
<style> | |
/* equals tag name */ | |
custom-element {} | |
/* tag name starts with */ | |
(^custom-) {} | |
/* tag name ends with */ | |
($-element) {} | |
/* tag name includes */ | |
(*name) {} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment