Skip to content

Instantly share code, notes, and snippets.

@melvinstanly
Created April 22, 2021 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinstanly/8a56cc19d54acc7d4a85297dc35b43a7 to your computer and use it in GitHub Desktop.
Save melvinstanly/8a56cc19d54acc7d4a85297dc35b43a7 to your computer and use it in GitHub Desktop.
Using html in :before / :after psuedo content
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