New post: “Captured Custom Properties”. https://blog.kizu.dev/captured-custom-properties/ In a few of my latest #CSS experiments and articles, I used one naming pattern for registered custom properties that I think worth highlighting in a separate blog post. This pattern allows us to create a set of generic custom properties, covering a wide set of use cases for computing and storing their values. As usual, credits: - @5t3ph for her article about @property. Introducing @bramus/style-observer, a MutationObserver for CSS. It allows you to attach JavaScript callbacks to changes in computed values of CSS properties. 🔗 https://www.bram.us/2024/08/31/introducing-bramus-style-observer-a-mutationobserver-for-css/
Show previous comments
#1 superfan of the CSS Anchor Positioning API: https://developer.chrome.com/blog/anchor-positioning-api Used it to implement more accessible heading anchor links on `eleventy-base-blog` using sibling elements without a wrapper element 🏆 You can see it in action here: https://eleventy-base-blog-git-v9-11ty.vercel.app/blog/thirdpost/ (Chrome and Edge support this, falls back to a nested link in other browsers) Introducing @bramus/style-observer, a MutationObserver for CSS. It allows you to attach JavaScript callbacks to changes in computed values of CSS properties. 🔗 https://www.bram.us/2024/08/31/introducing-bramus-style-observer-a-mutationobserver-for-css/ My team at Apple is growing. We are looking for another web developer advocate! (And yes, someone who can live in the SF Bay Area). https://jobs.apple.com/en-us/details/200565512/web-technologies-evangelist-safari-webkit @jensimmons Would Apple consider hiring me just to fix the one bug where Safari keeps erasing all of my entire cookie history because I have the Developer toolbar enabled? 😬 @bramus if anyone misses this on windows, powertoys provides it. along with a bunch of equally gimmicky/niche tools, but thankfully all optional. https://learn.microsoft.com/en-us/windows/powertoys/mouse-utilities I built a thing: A MutationObserver for CSS, powered by CSS Transitions and `transition-behavior: allow-discrete`. https://github.com/bramus/style-observer You can use this to track changes in any CSS Property, including Custom Properties (except in Chrome bc it has an `allow-discrete` bug 😭) Here’s a video of it in action: a callback gets executed when – and only when – any of the tracked CSS properties (`--variable1`, `--variable2`, `display`, or `border-width`) their computed value changes. (Recorded in Safari because of that damn Chrome bug) The last couple of years I've worked on printing on receipt printers from the web. The result is a large number of libraries available for the browser and the web. In order to make sense of them and what they do, read Receipt Printers 101: @html5test I got into POS and thermal printers from being the IT person at a grocery coop that had no budget. I keep meaning to buy the same printer on ebay just because it still feels rare to me. Something like an IBM / Toshiba 4610 which are weirdly not that expensive on ebay. Good reminder: don't lazy load hero or product images. https://cloudfour.com/thinks/stop-lazy-loading-product-and-hero-images/ It hurts both your UX and your Largest Contentful Paint (LCP) score. If your LCP is still bad, here's good information on finding out why: https://whitep4nth3r.com/blog/your-bad-lcp-score-might-be-a-backend-issue/ It's one of those few-ish performance things that can easily be more back-end than front-end. @chriscoyier that is a great reminder. Sometimes it’s easy to fall down the optimse all the things route. Thanks! Great to see Safari Technology Preview 202 add support for View Transition types. These makes it easier to work with several view transitions on the same page (read: different animations), without the declarations of the one affecting the other. If you’re more into reading, here’s a written version of that video: https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-types
Show previous comments
scroll snap + scroll driven animation carousel 💡 in the mobile size it looks a lot like the iOS app switcher eh? try it!? https://codepen.io/argyleink/pen/MWMQJQy ↪ https://nerdy.dev/container-query-carousel-with-scroll-driven-animation Ironically, doesn’t work on iOS. :-) Now, for extra credit… how can you detect a click on one of the edges of the cards in the back of the stack and have it scroll-snap to that card in the foreground position? Not sure Tim Berners-Lee’s vision was to have 148 requests transfer 5.3 MB of assets to deliver 15 KB of text
Show previous comments
...and disable basic browser navigation with half-assed javascript intercepting the user's clicks, then blame the end user for being backwards when the end user complains about this. @urlyman @jwildeboer while in the mean time consuming an inordinate amount of resources on your local computer…
Show previous comments
@bramus @FirefoxNightly hey @cheeaun would this help with the weird empty space above the keyboard? @bramus I don’t see a WebKit standards position issue for this. Has one been filed? https://github.com/WebKit/standards-positions/issues Nice. Would be great if browsers could also emulate those changes in svh/dvh wink wink nudge nudge. 🚧 What is blocking=render and why on earth would you do that?! A look at the new blocking attribute and a few use-cases: https://csswizardry.com/2024/08/blocking-render-why-whould-you-do-that/ @csswizardry I think another viable use case is defining *some* custom elements as it helps avoid the flash of the element being undefined. To me that frees up the undefined state from needing to serve the defined state (i.e. more equitable progressive enhancement — the experiences don’t need to be exactly the same). Progressive enhancement can be punished with a bad CLS score, but I think this is a more convenient way to avoid it (with its own cost of course). |
@Moss Another one cb;dr meaning "cookie banner, did not read"
For search results, I do actually sometimes click away if there is a cookie banner instead of finding out how to decline the cookies.
@Moss makes sense
it's not really a public-ation when it's not public.
@Moss
I don't disagree.
In the interim I highly recommend Archive.ph which gets around cookie bullshit and paywall