DEV Community

Discussion on: When CSS Beat Javascript

Collapse
 
craigmc08 profile image
Craig McIlwrath

That's a neat trick! But, the two code snippets are the same, we can't see the js solution.

Collapse
 
aritdeveloper profile image
Arit Developer • Edited

Hello! There's actually no JS solution, there's the original JS implementation, and then my implementation using CSS 😄

Collapse
 
benjaminlewandowski profile image
Benjamin Lewandowski • Edited

The css solution also shows the js solution. But only in the app, maybe it's an bug…

Collapse
 
aritdeveloper profile image
Arit Developer

Hmmm that's strange! I'm seeing it render normally on desktop and mobile. Perhaps I'll flag it for the dev team.

Thread Thread
 
facundocorradini profile image
Facundo Corradini • Edited

I can confirm the bug. Weirdly enough, it looked OK the first time I read it (JS snippet first, CSS solution later), but now I'm seeing them in inverse order :s

There might be something wrong with the handling of gist on DEV...

Some comments have been hidden by the post's author - find out more