Last active
February 18, 2024 15:55
-
-
Save Potherca/3a1bcdb58326128f0a13b1424f14a7f4 to your computer and use it in GitHub Desktop.
Can `!important` be used as an ID or class? YES IT CAN! HTML5LOLZFTW! https://dabblet.com/gist/3a1bcdb58326128f0a13b1424f14a7f4
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
/** | |
* Can `!important` be used as an ID or class? YES IT CAN! HTML5LOLZFTW! | |
* | |
* Visit either: | |
* - https://gist.github.com/Potherca/3a1bcdb58326128f0a13b1424f14a7f4 | |
* - http://dabblet.com/gist/3a1bcdb58326128f0a13b1424f14a7f4 | |
*/ | |
div { | |
color: lime !important; | |
} | |
#\!important { | |
color:blue !important; | |
} | |
.\!important { | |
color:red !important; | |
} |
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
<div id="!important" class="!important">This is important!</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment