Peter Kröner
sir_pepe@mastodon.social
<p>Frontend technology trash panda, DevRel @ Storyblok</p><p>Also at sirpepe.bsky.social on bluesky</p>
Posts
-
View post
Somebody on LinkedIn asked for my approach to global CSS in #Webcomponents with Shadow DOM: 1. Import CSS as Strings (via Vite) 2. Shove CSS into the CSSStyleSheet Constructor 3. Add the results to the ShadowRoot&#39;s adopted stylesheets 4. Delete all of the above once Safari supports CSS module scripts This is how you future-proof your projects: be aware of what&#39;s coming to the platform and prepare your workarounds to be easily removable when the new features arrive ✨ #webdev #...
-
View post
Ah, good ol&#39; internet. A: “I&#39;d like to get rid of Foo. Is Bar any good?” B: “Here&#39;s my opinion on something completely different.” C: “Just grow a pair and keep using Foo.” D: “Did you know that you can disable the annoying parts of Foo by sacrificing a baby goat at midnight?” Some things never change.
-
View post
If I were publishing a new full-stack framework based upon an existing test suite, I would make sure “Hello World” worked. But at least they did think to add the universal disclaimer! 👉 https://github.com/cloudflare/vinext/issues/22
-
View post
Found a library where CLAUDE.md is longer than the single file of actual code in the library.
-
View post
☝️ Remember how a few #JavaScript versions ago the ordering of object keys became deterministic across browsers? Turns out this does NOT mean “strictly chronological”: #webdev
-
View post
The Incredible Overcomplexity of the Shadcn Radio Button 👉 https://paulmakeswebsites.com/writing/shadcn-radio-button/ #react #webdev
-
View post
The Screen Wake Lock API rules. If you need your app to keep the screen on, this API is comparatively simple to use and works in every browser. 👉 https://developer.mozilla.org/en-US/docs/Web/API/WakeLock #webdev #javascript
-
View post
Gestern Aufnahme von @workingdraft mit @muhdiekuh zum Speaker-Dasein auf Konferenzen. Es ist laaaaaang geworden. Release ist am am 29. Oktober 🎙️
-
View post
🙋 Ladies, gents, and dear non-binary pals: I could really use some work. Here&#39;s what I do best: - Workshops: entertaining deep dives into JS, TS, web components, frontend performance, general vanilla webdev - Development: performance-oriented vanilla frontends &amp; refactoring of impenetrable legacy dumpster fires (esp. React, CSS) - DevRel: yapping &amp; writing about anything related to web frontends - General coaching &amp; code review for frontend technologies Get in t...
-
View post
Aufnahme @workingdraft mit @Schepp - es gibt wieder einen Browser-News-Roundup!
-
View post
Moar @workingdraft - diesmal mit @deadparrot und @muhdiekuh zu React und TypeScript 🔥
-
View post
Time to tackle Temporal @workingdraft 🤓
-
View post
Wait, what? There is a way to disable certain web component features via a static class field? Just randomly stumbled upon this in the specs. Can&#39;t find much documentation, but it works in Chrome and Firefox at least. 👉 https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-define #webcomponents #webdev #javascript
-
View post
🤢 Behold! The most broken #CSS that still sort of works! I wondered why CSS.supports(&quot;filter&quot;, &quot;blur(&quot;) returned true. Well, it turns out that a standard-conforming CSS parser does not distinguish between } and EOF or between ) and EOF. And filter function arguments are all optional. So ending the stylesheet with &quot;blur(&quot; has the same effect as &quot;blur(0px)&quot; with all braces properly closed. The whole story: https://mastodon.s...