This is clean and simple, I like it a lot.
Have you considered using :root instead of html ? It can cover more edge cases.
:root
html
you know ive never used :root before! sounds cool. what kind of edge cases?
Such as a document that doesn't have an <html>, for example.
lol. dev.to commented out my html
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is clean and simple, I like it a lot.
Have you considered using
:root
instead ofhtml
? It can cover more edge cases.you know ive never used :root before! sounds cool. what kind of edge cases?
Such as a document that doesn't have an <html>, for example.
lol. dev.to commented out my html