Created
April 22, 2021 13:35
-
-
Save melvinstanly/8a56cc19d54acc7d4a85297dc35b43a7 to your computer and use it in GitHub Desktop.
Using html in :before / :after psuedo content
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
The reason for not allowing html inside the content parameter is the fact that CSS is designed to work in a | |
single pass-through of the page. If there were html, that would need to be styled, which means the css would | |
need to come back and process itself all over again to style that HTML after it was done styling everything else. | |
This extra functionality would rarely be used by anyone but would still come with a speed cost to everyone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment