A Third Browser Bug...
blog.duvallj.pw·79w
Preview
Report Post

TL;DR: hey check out this weird CodePen I made


So at work, I had the opportunity to write a small tool that dumps the current state of the document into a single static HTML file, making no network requests. For the most part, it turned out to be a lot simpler than I expected! DOM APIs are really good nowadays (all hail querySelectorAll). It should have taken me like 3 hours tops, from starting up the editor to pushing the PR, but instead it took all day, because of one very weird bug.

Virtual StyleSheets

One thing I learned poking around in our app for a bit is that, not all <style> elements have to be present in the document! That’s right, you can define CSS rules entirely in JavaScript, never having their state sho…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help