@stowball `document.querySelector('video').playbackRate = 100.0;` works.
The ad is over faster, and the playback speed reverts to 1.0 when the actual video starts, which is nice. Only issue is the overlay is on a separate timer, so the last frame of the ad for the intended length of the ad
Possibly 🌶️ but I'm vibing atomic/pure #jest tests rn. I've wasted a lot my life on bugs from side-effects in `beforeEach` etc.
Sure they are longer, but doing setup/teardown inside each test makes it
- less error prone
- easy to reason about
- easy to refactor
#javascript
@stowball I got JIT compiling working in my project 🎉, so I'm doing pseudos now. A potential stumbling block with using '()' for the syntax, is it's difficult to extend to pseudos like `:nth-child(2)`. I'm currently thinking a more traditional syntax scales better: https://t.co/QFWz1rpk3w
I've been wanting to #opensource an #atomicCSS tool I've made as a side project. The idea is, you give it your #designtokens and it generates all the CSS classes you would ever want to use that adhere to your #designsystem
I'm interested, would anybody else find this useful?
The current implementation is very limited. But nothing so far seems like a showstopper.
So, there would be lots to do. But I'm interested in early opinions/feedback, so I can start to formulate an informed, long term direction, or decide it's not worth it
It'd also ship with a default set of design tokens, which I've scrounged from various places. Mostly @scottdejonge and his work on #turretCSS. So, if you don't have time to create an entire design system, you could still use it.