Category
Top Front-end Bloggers
25 Sources
- Adactio
- Adam Argyle
- Addy Osmani
- Brad Frost
- Christian Heilmann
- CSS Wizardry
- Dave Rupert
- David Walsh Blog
- Ethan Marcotte
- Human Who Codes
- Jake Archibald's blog
- Jens Oliver Meiert
- Jonathan Snook
- Kent C. Dodds Blog
- Lea Verou’s blog
- overreacted
- Philip Walton
- phpied
- QuirksBlog
- Rachel Andrew
- remy sharp's b:log
- Sara Soueidan
- Tim Kadlec
- Una Kravets Online
- Zach Leatherman
AdactioTop Front-end Bloggersread at source
See you later, Amsterdam!
Brad FrostTop Front-end Bloggers3 min read
Putting AI & Design Systems to work
I just got off stage at the phenomenal Detach! Conference in Fortaleza, Brazil. I gave my presentation using my custom eddie-slides framework, which embeds psychedelic visualizations from bf-visualzzz and showcases our course websites , my blog , and Black Friday sale webpage .…
remy sharp's b:logTop Front-end Bloggers1 min read
HUMAN.md by Briana (Mazzio) May [link]
This is a really good bit of writing (and reading). I'm not a huge fan of the animations, partly because they are constantly jittery, but also because there was some jankiness when being forced to scroll to the next part - BUT it did slow down how I read it and let me sit with the thoughts longer. I particularly liked: Our job is to know the rule cold, and then break it on purpose, in public, with a reason. Hard agree on this particular point. I also enjoyed how it didn't try to argue for or against AI but to talk think about our (human) role today and acknowledge that this is a working draft that can, should and will change even after 6 months. Original link: www.human-md.ai
Christian HeilmannTop Front-end Bloggersread at source
Avoiding the AIceberg - How blindly trusting tech hurts us all
Notes of my talk at the German Science Society about the current state of AI and our approach to it. It is a lot like the blind belief in technology that cost a lot of people their lives when the Titanic sank.
Adam ArgyleTop Front-end Bloggersread at source
WWW Ep261 Openai Nerfed Your Tokens
Ep #261 OpenAI Nerfed Your Tokens Robbie and I sip Jephtha Creed and talk OpenAI pricing changes, agents Tamagotchis, hill climbing and quality gauntlets, frameworks and LLMs, agent-friendly CLIs, and the hunt for a Zelda Switch past the scalpers. ⤷ whiskey.fm · yout…
Brad FrostTop Front-end Bloggersread at source
Manuela Costa · Design Systems & AI
Manuela Costa's website is such fun!
Lea Verou’s blogTop Front-end Bloggers9 min read
Nudeps: bundler-like imports, none of the baggage
The goal is light-build, not no-build You npm install a package (e.g. vue ), you write import { createApp } from "vue" , and it works — as long as there is a bundler in between. Without one, the browser has no idea what "vue" is: it only understands URLs, and node_modules/ was…
AdactioTop Front-end Bloggersread at source
Wednesday night session in Amsterdam
AdactioTop Front-end Bloggersread at source
Land by Maggie O’Farrell
If you hear the words “post-apocalyptic” used to describe a novel, you’re probably going to think of sci-fi scenarios. Plague. Nuclear war. Climate devastation. But these are all global apocalypses. History is filled with local apocalypses. Which means that the world is filled with post-apocalyptic stories. Ireland is a post-apocalyptic landscape. The apocalypse was an Gorta Mór , the Great Hunger, the Famine. Sometimes it’s referred to as “the patato famine”, which is odd because it wasn’t potatoes that starved, it was people. Over a million people. Maggie O’Farrell’s book Land is a post-apocalyptic novel set in the late 19th century, a generation after an Gorta Mór . It’s an odd book that shifts its focus throughout. I can’t tell if it’s trying to be ambitious or if it’s just rambling, but either way, it’s somewhat frustrating. The first quarter or so of the book is when it’s at its most powerful and intriguing. We’re introduced to the world of cartography on the west coast of Ireland before being whisked away to a more ancient time. It’s in this first section that we also get flashbacks to the apocalypse that shaped everything that comes afterwards. Had the novel stopped about a third or a quarter of the way in, I think I would’ve found it a thought-provoking work. But it keeps going. And this is where it starts to lose its energy. The narrative morphs into a globe-spanning family saga. There’s nothing wrong with family sagas, but it feels like a very different book to the one we started with. Don’t get me wrong—I like a good genre-hop! But they’re tricky to pull off, and I don’t think this quite managed it.
CSS WizardryTop Front-end Bloggersread at source
Web-Perf Wednesday 018 – Soft Navigations Lift the CrUX Pass Rate
CrUX’s latest data shows how including SPA soft navigations will raise Core Web Vitals pass rates without sites suddenly becoming faster.
AdactioTop Front-end Bloggersread at source
Going to Amsterdam. brb
Brad FrostTop Front-end Bloggers3 min read
Skills to pay the bills...and address your design system's check engine light
We like to make things and help people. That's why I've become fascinated by AI agent skills; I see them as exciting new ways to help people and make things better. So allow me (...and The Beastie Boys, our Eddie design system, and Opus 5.5) to introduce bradfrost/skills ! These…
Jens Oliver MeiertTop Front-end Bloggersread at source
Why I Don’t Like (and Don’t Recommend) Website Checklists
Checklists are built for bulk—but quality websites are bespoke.
AdactioTop Front-end Bloggersread at source
Reading Eat the Ones You Love by Sarah Maria Griffin.
AdactioTop Front-end Bloggersread at source
The nature of my job has completely changed · Rach Smith’s notes & nuggets
My almost life long, enduring special interest has been writing code to create things. I like to think I’m pretty good at it. Instead of doing that, I’m writing requirements, answering questions, reading and reviewing lines and lines (and lines), and QA testing the results. There’s no flow to be found in this approach. Instead of my workday flying by, I’ll work 4 hours and it will feel like 6. I’m exhausted from parsing so much information. I also can’t go back. adactio.com/links/22837
AdactioTop Front-end Bloggersread at source
Computing with CSS Layout
This document tries to answer one question: how much can CSS compute on its own? A heckuva lot, as it turns out! I don’t understand all of this, but I’m very impressed. adactio.com/links/22836
AdactioTop Front-end Bloggersread at source
Monday afternoon house session
Brad FrostTop Front-end Bloggers4 min read
Foundations matter more than ever
Oh boy! Our biggest sale of the year starts today; you can master design systems, join a vibrant community, and save over 33% on all of our courses . That's right, it's that time of the year where we bust out our Black Friday tap-dancing shoes. We know that tap dancing can be…
Sara SoueidanTop Front-end Bloggers27 min read
The CSS caret-* properties and custom caret accessibility
What do you usually think about when you think about focus indicators? Probably outlines? Maybe borders and background color changes, too? That’s what I would normally think about. When we talk about focus indicators, the discussion usually revolves around outlines, borders, and…
Jens Oliver MeiertTop Front-end Bloggersread at source
Two Underappreciated Observations About Our Exposure to Other Humans
On hidden dynamics and quiet autonomy.
Dave RupertTop Front-end Bloggersread at source
Conventional Commit rules everything around me
There’s a community standard out there called Conventional Commit for structured git-commit messages. If you don’t know about it already, it recommends a strict type(scope?): description format for describing a code change in a repo. A normal git commit history might look like this: > git log --oneline 9d30ff6 fix typo 3062496 oops d0b38ad shit b5f8df7 redesign site That’s all well and good, but lacks a bit of structure and detail for a big project with lots of contributors. That’s where Conventional Commit comes in. Instead of a git-commit message like add login page , it might look like this: feat: add user login endpoint Or you can “scope” it to a particular section of your application: feat(auth): add user login endpoint There’s even a ! flag to signal a breaking change to your coworkers: feat!: remove all authentication API endpoints The predefined conventional commit types cover most types of changes: fix: , feat: , chore: , docs: , style: , refactor: , perf: , test: , build: , and ci: . I find these cover most situations but I’m also a bad boy and like to break rules, so I’ll throw in custom types like wip: , a11y: , hotfix: , or an rm: (as a treat) when I feel it adds clarity to the work. But why would anyone voluntarily conform to a standard like this? My answer is… a feeling . Look at our git-log history now: > git log --oneline 9d30ff6 fix(input): restore focus state on input 3062496 style(checkbox): update tokens to tokens v2 d0b38ad chore: update dependencies via dependabot b5f8df7 feat(auth): add user login endpoint ... In a noisy repo that’s increasingly getting noisier (thanks, robots) anywhere you can add predictability is a net-positive. The cumulative effect over time is that you have a highly-scannable, uniform history of what’s happening in your project. Conventional Commit can even help with code review. A style: fix that adds dozens of npm packages should be a signal that you need to break up the work. Types might also inform if you route all a11y: commits to the local expert for code review. And a refactor! breaking change should signal coworkers to be extra-cautious in review and may trigger other process-oriented workflows like broadcasting the upcoming breaking change to anyone in the blast radius. And because it’s a community standard, like the Custom Element Manifest , you can build tooling around it like commitlint . As its name implies, commitlint is a linter that gates all commit messages from your entire team to ensure they abide in the type(scope): description format. I personally tend to avoid adding extra tooling to enforce simple conventions, but I might change my mind on this because the benefits start compounding. If my commits were all similarly formatted, I could also automate our entire changelog and semantic versioning bumps for releases. fix: = PATCH feat: = MINOR any!: = MAJOR Of course, Conventional Commit and Semver itself aren’t perfect but it adds a degree of predictability about the impact of a change from the description alone. Abiding in the Conventional Commit format is a small micro-adjustment to my process, but it has potential to positively impact the entire project and I like those sorts of zero-dollar improvements. Extending Conventional Commit beyond commits One place you’ll also want to extend conventional commit to is pull request titles . Not technically a git-commit message, but if you squash and merge commits the PR title tends to become the commit message by default. Preferring or enforcing conventional commit in pull request titles helps preserve our pristine commit history. If you’re doing pull request titles, why not use them for issue titles too: #123 > bug(input): required focus indcator missing #122 > feat(checkbox): update tokens to v2 #112 > chore: update dependencies from depdendabot #106 > feat(input): make input more engaging There’s harmony when the issue and the solution are matching. Having the type in the issue title sets a clear deliverable; a bug: needs a fix: to resolve it. Consider these duplicate issues for the same bug: #189 > 4.2.7 Focus Visible [bug] [components] [severity:HIGH] #210 > bug(input): focus indicator is missing Which one would get picked up first? I’d argue that even with labels like [bug] and [severity:HIGH] that the second one would be easier to fix because it gives the developer almost all the information they need to fix the issue. It makes the issue a little more actionable and that’s what you want. If every issue is an investigation, nothing gets done. Triaging issues takes cognitive bandwidth . Labels are great at grouping and providing queryable views, but when scanning a list of issues pairing both the tag and the title to determine the ask adds an extra cognitive tax. I’m projecting here, but uniform data in your PRs and issue queues could also allow you to collect stats on which components or areas of your application are the most buggy and expensive to maintain. It can tell you who’s getting saddled with all the bugs or which issue filer is adding too much feature debt. And it can help your team quantify your recurring maintenance tasks that might be hiding because it gets rolled into other work. That might be valuable to an organization. Unconventional usage of Conventional Commit Now let’s extend beyond the practical. I’m finding the Conventional Commit format to be so useful, I’ve started rolling them out to a lot of different places (surprise, coworkers!). One example is our folder full of random scripts/ in the monorepo. What was a randomized list of dozens of scripts and tests… scripts/ ├── docs-tokens.mjs ├── playwright-cli.mjs ├── storybook-compat-table.mjs ├── style-dictionary.mjs ├── sync-fluent-fluent-custom-elements-manifest.mjs ├── validate-themes.mjs └── visual-review-harness.mjs Can become an organized paradise of co-located responsibility: scripts/ ├── build/ │ └── themes-style-dictionary.mjs ├── docs/ │ ├── storybook-generate-compat-table.mjs │ ├── tokens-generate-table.mjs │ └── sync-fluent-custom-elements-manifest.mjs └── test/ ├── playwright-cli.mjs └── playwright-visual-review-harness.mjs └── themes-validator.mjs I’ve found those Conventional Commit types tend to map well to areas of responsibility for repo-level scripts. Manage docs, tests, build tasks, and so on all fit under the Conventional Commit umbrella and it adds some much needed organization to the junk drawer of copy-pasta and generated helper scripts. And if your scripts/ folder is following the Conventional Commit format… why not roll that out to your scripts in package.json : { "scripts": { "docs:generate": "node ./scripts/docs/generate-storybook-compat-table.mjs && node ./scripts/docs/generate-storybook-tokens-table.mjs", "build:themes": "node ./scripts/build/themes-style-dictionary.mjs", "test:themes": "node ./scripts/test/themes-validator.mjs" } } Built-in npm features like pre* and post* hooks mess up our perfect naming system a bit. A prebuild:themes task reads fine but predocs:generate is a bit marble-mouthy. But that’s an eye-twitching discrepancy I’m willing to accept to abide in what npm gives me for free. Then… if you’ve added Conventional Commit to your scripts/ and your "scripts" and are living that agentic coding life, why not apply the same organization principle to your skills/ folder? skills/ ├── build/ │ ├── themes/SKILL.md ├── docs/ │ ├── component-jsdoc/SKILL.md │ ├── storybook/SKILL.md │ └── technical-writing/SKILL.md └── test/ ├── playwright-tests/SKILL.md ├── visual-tests/SKILL.md └── writing-tests/SKILL.md This looks great… it falls apart in the real world. Skills installed from the internet don’t abide in this format. Having some skills nested and others not creates a feeling of unease, so a flatter folder structure for skills is probably better. That said, it’s not uncommon to need a skill to inform your model about your repo-level scripts and those are places you can still maintain parity. skills/ ├── build-themes/SKILL.md ├── docs-storybook/SKILL.md ├── docs-components/SKILL.md ├── docs-technical-writing/SKILL.md ├── grill-me/SKILL.md ├── i-have-adhd/SKILL.md ├── test-playwright/SKILL.md ├── test-visual-review/SKILL.md └── test-writing/SKILL.md While applying Conventional Commit to your skills/ folder is a bit impractical, one area I can confirm it does help is organizing your agent chats. Fire off a handful of agents and it can get confusing about which one is doing what task, even with their autogenerated chat label. I’ve found it super helpful to ask your bot to rename its chat using the Conventional Commit format. Try it out and bask in the uniform list of tasks. To get this to work consistently in the GitHub Copilot app, I had to modify my session prompt in Sessions > App instructions: At the start of every new chat, before answering my first request, call `rename_session` using `type(scope): description`. Do this even for non-coding chats. Rename only once unless I ask otherwise. I’m not sure how it works in your preferred agent manager, but I assume you could write a skill or put it in your AGENTS.md , but I’d have a conversation with your coworkers first before codifying your obsessive-compulsions in the project repo. Join me in my obsession You might have read all this and said, “This is a man who –in a world of chaos– is looking to over-manage a small thing like title text so that he can feel in control of his own life!” and to that I’d say… Probably. I like to think I’ve just hit the point in my life where I don’t want to spend an single brain cell thinking about how I should format title text or name a file. I wasn’t this passionate about Conventional Commit a year ago, I think I got radicalized. Generative AI almost certainly plays a big part where every robot names files and fixes different every time. That’s built-in to its dice-roll mechanic. Knowing there’s a chaos agent in the mix, I feel a need to find low-hanging fruit for consistency and (for right now) this feels pretty good to me.
AdactioTop Front-end Bloggersread at source
The speakers at #FFconf have such excellent taste!
Adam ArgyleTop Front-end Bloggersread at source
WWW Ep260 Will AI Kill Us All Jev Says 87
Ep #260 Will AI Kill Us All? Jev Says: 87% Robbie and I sip Courage & Conviction, talk Jev, gates that skip the LLM slop, the paperclip problem , model degradation and thinking levels, Ocarina of Time remake vs. digital ownership, and an arrow through the living room window.…
Adam ArgyleTop Front-end Bloggersread at source
Animation Evolution
animation? where how why now
Jens Oliver MeiertTop Front-end Bloggersread at source
CSS Deduplication and File Size: What’s Left After Compression
Analyzing 1,882 style sheets from 123 sites for the performance impact of automated declaration deduplication, after Gzip and Brotli compression.
CSS WizardryTop Front-end Bloggersread at source
Web-Perf Wednesday 017 – Prebid Stops Re-downloading Its Manifest
Prebid 11.48 makes its jsDelivr manifest cacheable, removing 67 KB of repeat downloads for sites that use the web bundler.
Lea Verou’s blogTop Front-end Bloggers5 min read
Candidate Statement for the 2026 W3C TAG Election
Group photo of the W3C TAG in July 2022 with me to the left of Sir Tim Berners-Lee (inventor of the Web and TAG chair emeritus). Photo credit: Dan Appelquist I had the great honor of being elected to the TAG by the W3C membership in 2020 and again in 2022 , serving two terms…
Adam ArgyleTop Front-end Bloggersread at source
WWW Ep259 Your AI Agents Dont Need You Anymore
Ep #259 Your AI Agents Don't Need You Anymore Robbie , bourbon and whatnot. We chat Doorway , dark factories, gauntlet loops that beat the slop out of your code, the Creator Micro , Glimmer getting jelly of Claude, engineering vs. coding, CSS scroll axis , and Jeff the mower…
Adam ArgyleTop Front-end Bloggers6 min read
PropFLIP
FLIP, but the invert is 4 custom properties and CSS does the play
AdactioTop Front-end Bloggersread at source
Six Gutenberg Revolutions in a Row—Asterisk
An interview with Ken Liu and Ada Palmer: The vast majority of computing power on Earth is human brains, and a huge amount of it is dedicated to worrying about where lunch is coming from tomorrow. If you want to free up computing power, solve poverty. adactio.com/links/22833
Jens Oliver MeiertTop Front-end Bloggersread at source
How to Create, Edit, and Validate AWAGAM Blocklists
Extending the tooling for the AWAGAM request blocker, a new editor is available to set up and test blocklists and blocklist bundles.
AdactioTop Front-end Bloggersread at source
Monday session
David Walsh BlogTop Front-end Bloggers2 min read
STRG: S3-Compatible, AI-Native Cloud Storage (Sponsored)
Asset management is big business within the web world. The larger that our web apps grow, the larger the number of assets and their file size naturally increases. With that increase, you need to worry about increasing costs and vendor complexity! Luckily I’ve discovered a service which fixes all of those problems! Welcome to STRG: […] The post STRG: S3-Compatible, AI-Native Cloud Storage (Sponsored) appeared first on David Walsh Blog .
AdactioTop Front-end Bloggersread at source
Lunch on the beach in the November sunshine.
Adam ArgyleTop Front-end Bloggersread at source
Ponpon Mania Comic Ux
Next-gen feeling comic UX, love it. Arrow keys step through the panels while the music keeps going. Chapter 1 of Ponpon Mania: try it!
AdactioTop Front-end Bloggersread at source
Stranded - Richard’s Blog
The great span : We are to Apollo 13 as Apollo 13 is to Shackleton. adactio.com/links/22830
Adam ArgyleTop Front-end Bloggersread at source
WWW Ep258 The Future Called Its Using CSS2
Ep #258 The Future Called. It's Using CSS2. Robbie and I sip Chicken Cock small batch bourbon (bubble gum, I swear) and talk building a mobile app with Claude , MySpace coming back, 2026 being 2006 but way more expensive, CSS infinity , Prop for That , whether to yell at you…
Christian HeilmannTop Front-end Bloggersread at source
Pardon my dust 2 – redesigning christianheilmann.com
Shifting my blog away from Godaddy and Wordpress has become a full-on redesign of the site. You can check it out now and I explain some of the CSS magic I added.
Dave RupertTop Front-end Bloggersread at source
Pseudo-pseudo-classes for maximum interactive demos!
Have you ever wanted to display all variants of a Button next to each other in your Storybook like your designer did in Figma? But then you come to a screeching halt when you realize :hover , :active , :focus don’t work without user-interaction? Blergh. Whatever can we do? I got nerd-sniped by this problem in the ShopTalk Discord when Nils said he was trying to build a simple state machine demo for his components. A handful of immediate options came to my head: Style states using .is-hover utility classes (à la SMACSS ) Create a system of [data-state="hover"] attributes and copy over styles Build some over-the-top Playwright-based screenshot contraption Each of those approaches has trade-offs for me. I don’t want to ship extra component styles or manage duplicate global styles. And if I’m building a Playwright contraption for a CSS demo… yeesh, I should probably back away from the keyboard. When Nils mentioned he was using web components, I realized I might have an ace up my sleeve for a simple’ish solution to this problem. See the Pen Pseudo-pseudo-states Demo! by Dave Rupert ( @davatron5000 ) on CodePen . There’s a handful of Advanced Web Component Tips & Tactics happening in this demo like adoptedStyleSheets , ElementInternals , and custom state sets but the approach is pretty lightweight. I scan the custom element’s styles, clone the interactive bits, rewrite styles like :hover state to :state(hover) and add the new stylesheet inside the component. What I like about this approach compared to the other ideas I had is: Styles owned by the component - No “magic” global styles or utilities. Appended styles also owned by the component - No global conflicts. Interactive states use regular HTML/CSS - Avoid managing interactive state in JavaScript when possible. Write once, ship once - I don’t write or ship duplicate :hover and .is-hover styles to customers. Low maintenance - Beyond the initial setup, it’s automatic and I’m resilient to component style updates. Want an end-to-end walkthrough of how it all works? Please, follow me… Adopting stylesheets in your web components In web components, we’d typically author our styles in a CSS tagged template literal: const MyButtonStyles = css` /* Change the host-element itself */ :host(:hover) { background: pink; scale: 1.1; } /* Update a child element based on the host-element interaction */ :host(:hover) button { background: pink; scale: 1.1; } /* Or put the interaction on the interactive child-element */ button:hover { background: pink; scale: 1.1; } ` Then we create a new “constructed stylesheet” and populate the stylesheet with the styles we wrote. That stylesheet then attaches to our component by adding it to the Shadow Root’s array of adoptedStyleSheets . /* Create a new constructed stylesheet */ const MyButtonStyleSheet = new CSSStyleSheet() MyButtonStyleSheet.replaceSync(MyButtonStyles) class MyButton extends HTMLElement { constructor() { /* Setup and create shadowroot */ super(); this.attachShadow({ mode: "open" }) /* Adopt the constructed stylesheet */ this.shadowRoot.adoptedStyleSheets = [MyButtonStyleSheet] /* ... etc */ } } The component will now render its styles without a tag or inline tag in the template. If we put two MyButton components on the page, they’ll share the same stylesheet in memory which is a pretty neat efficiency gain for style application. adoptedStyleSheets aren’t limited to web components, but they’re still pretty niche. But the web component ecosystem’s pattern of using adoptedStyleSheets for style application will come in handy later when we want to apply our new custom states. Attach internals to unlock custom states Before we jump to the grand finale, there’s one other unique-to-web-components feature we need to talk about first: ElementInternals . In a web component class you can call attachInternals() which allows you to dip into the element’s guts and mutate the innards of your spicy div . An example of this might be setting an ARIA role: class MyButton extends HTMLElement { constructor() { super(); this._internals = this.attachInternals() this._internals.role = "button" } } customElements.define('my-button', MyButton) The accessibility inspector will report a role of button for your custom element. Setting ARIA role is a weak example because both and Element.role = "button" both work pretty seamlessly. But ElementInternals brings other ✨superpowers✨ like adding form validation behaviors that you can’t do on a normal div . One newer capability of ElementInternals is that it allows you to create your own custom pseudo-classes and apply styles using :state() . class MyScrollingElement extends HTMLElement { constructor() { super(); this._internals = this.attachInternals() } connectedCallback() { this.addEventListener('scroll', this.handleScroll) this.addEventListener('scrollend', this.handleScrollEnd) } /* Use arrow functions to avoid `this` complications */ handleScroll = (_event) => { this._internals.states.add('scrolling') } handleScrollEnd = (_event) => { this._internals.states.delete('scrolling') } } Now you can style your element when it’s scrolling using :state(scrolling) and you’re manipulating the element’s internal state, not modifying HTML in the DOM. :host { overflow-y: scroll; transition: background 0.2s; } :host(:state(scrolling)) { background: pink; } Isn’t that cool? With great power comes great spider-mans, of course, but having your own custom pseudos is a thing you can do now with web components. Mimic native pseudo-states using custom states Now that we have a loose grasp on all the pieces we need to make our demo work, the next steps are: Find all our components and loop through them Copy their interactive rules to a new constructed stylesheet Replace :hover with :state(hover) Adopt the constructed stylesheet in the component Attach internals and imperatively set the state Here’s a simplified version of what’s happening in the CodePen version. /* A bit of pseudo-code here... */ const MyButtons = document.querySelectorAll('my-button'); const sheet = new CSSStyleSheet(); MyButtons.forEach(async (button, index) => { const isDefined = await customElements.whenDefined(button.localName); // Grab the stylesheet from the first if(isDefined && index === 0) { // Get current CSS rules const cssRules = Array.from( button.shadowRoot.adoptedStyleSheets[0].cssRules ) .filter(rule => rule.cssText.includes(':hover')) .map(rule => rule.cssText.replaceAll(':hover', ':state(hover)')); // Update the stylesheet contents sheet.replaceSync(cssRules.join('')); } // Adopt the stylesheet button.shadowRoot.adoptedStyleSheets = [...button.shadowRoot.adoptedStyleSheets, sheet] // Attach internals and set the state if(button.dataset.state == 'hover') { const _internals = button._internals ?? button.attachInternals(); _internals.states.add('hover'); } }) And that’s the gist of the trick: clone the pseudo-class states and set imposter custom states. I’m hand-waving some of the more complex bits like button:hover {} needs to be rewritten to :host(:state(hover)) button {} , but again, feel free to read the code. And my demo makes a couple assumptions I know won’t scale: All elements use the same static stylesheet (e.g. it doesn’t change per component). Each only has one adoptedStyleSheet. Hard-coded to HTMLButtonElement -specific interactions. Assumes you either don’t have ElementInternals already setup or already externally expose them and you know that @public property name. Next steps might be to make this a bit more robust and support all the other platform pseudo-classes like :popover-open , :user-invalid , or :playing . An agent could probably do this, not me though. I’m tired. Shadow DOM isn’t that bad, actually. Shadow DOM often gets a bad rap even in web component circles. I fully understand the friction there. Everyone’s first test drive of Shadow DOM styling almost always ends up in flames, leading to a poor unboxing experience that’s hard to shake off. That said, I feel like this demo captures a glimpse at some of the unique ✨superpowers✨ you get when styling with Shadow DOM. When coming from a global styles world, that loss of control can feel frustrating. But in my experience, with Shadow DOM encapsulation you’re gaining predictability and precise control by keeping everything local. You could probably figure out a way to do this with global styles. It’d be more difficult with roboclass-based scoping from something like CSS Modules, but I think it’s possible. But I imagine you’d have to parse through all the global document.styleSheets and that seems like a lot of work to add a :hover state demo to a . Style encapsulation here saves a lot of work. If you got all the way here and still hate Shadow DOM, I’d love to read a post of yours about where it broke down for you. But if you use Shadow DOM on the regular, I’d love to hear why it’s great. This has been my mantra for awhile now, but I think the web component community can do more about promoting the benefits. For example, there’s only two articles about adoptedStyleSheets on CSS-Tricks which seems low. In the meantime, while I try to convince my bosses to let me blog for a living, I’ve got my free course guidebook online and you can check it out.
QuirksBlogTop Front-end Bloggersread at source
The Valley bubble
I expected something to happen around the AI hype after the US elections. I didn’t expect it to happen so soon . Too early to tell yaddah yaddah, and the hype could very well continue for another few months, but did any AI-related stock ever tumble before now? Silicon Valley exists in its own reality bubble. Hell, the entire US tech scene inhabits a bubble whose main feature is relentless self-flagellation. Apparently they’re all Guilty and will all be Punished. (Then again, the US is fundamentally a Calvinist country.) Sanity prevails outside the US. Sometimes. For now I’ll stick to my idea : the Valley is creating something with the appeal of a 19th-century factory, complete with oppressed and estranged workers, without delivering the sole benefit of such factories: cheaper IT and other services. They want to get rid of the middle classes whose salaries they have to pay so badly that they forgot to create an appealing product. The Valley doesn’t understand how fed up normal people are with AI. This is the first time ever a technological advance is so cordially disliked, and the Valley is not equipped to detect that. It has no experience with being disliked by normal people. Also, so far many of the Valley’s consumer tech innovations were free . AI isn’t free, or even cheap, as we’ll see in the coming months, once credit dries up. The Valley’s position will be damaged permanently, and tech will lose its centre of gravity, its global Schwerpunkt . I don’t think there will be a replacement. I think we’re moving to a multi-hub world, and I think that’s a good development. Sure, inertia will keep the Valley important for decades to come, but it’s lost its natural dominance of the hearts and minds of the world. Permanently. None of this is a judgement on AI itself. I refuse to do anything about it until its true costs are known, after the hundreds of billions per year (month?) of free money from clueless investors dry up. All the while I acknowledge that there is something there that will change programming — just not as radically as the US-based doomsayers think. AI can copy, it cannot innovate.
AdactioTop Front-end Bloggersread at source
Thursday session
Adam ArgyleTop Front-end Bloggers2 min read
Bye Deno, Hello Cloudflare
and wassup Astro
Brad FrostTop Front-end Bloggersread at source
In Your Face - Meeting reminder app for Mac, Windows, iPhone, and iPad | In Your Face
In Your Face is one of my favorite apps for making sure my ADHD brain shows up to meetings and events on time.
remy sharp's b:logTop Front-end Bloggers1 min read
Yesteryear [book]
Excellent psychological thriller. I really enjoyed this book from debut author Caro Claire Burke - reading it on holiday over 5 days, probably not the "ideal" holiday read though - it's heavy stuff. Following the character of Natalie - who from the first few chapters I really quickly disliked their entire ethos. But it's never as simple as a horrible person, and we're able to look under the surface of what made this Tradwife and the impact on her life. The story is split between two times where Natalie is in the modern world and one that's very much not the modern world (where activities include washing clothes takes the entire day and leave her hands completely numb). It's hard to talk about the details of the story without giving too much up about the arc of the story - which I don't want to give away. I will say that it's brilliantly written and the characters are wonderfully complicated and flawed, and the Natalie character is written as complex without being compromising. The content is hard work, and if like me you're not a fan of the Tradwife movement and what it really represents in society, the payoff is worthwhile.
AdactioTop Front-end Bloggersread at source
Wednesday session
CSS WizardryTop Front-end Bloggersread at source
Web-Perf Wednesday 016 – Lighthouse 13.6 Can Lift Scores Without a Faster Site
Lighthouse 13.6 changes simulated FCP and LCP, so PageSpeed Insights scores can improve even when the page itself has not changed.
AdactioTop Front-end Bloggersread at source
честитке, Serbia Parabéns, Brazil Congratulations, USA
AdactioTop Front-end Bloggersread at source
Tuesday session
Dave RupertTop Front-end Bloggersread at source
Write mo'
I decided not to do #NaNoWriMo this year. Part of that is because I’ve never done it. Never even attempted it. Don’t even want to. Writing a novel is a life goal of mine, but cramming it all into one month isn’t for me. November is impossibly busy. But I do think it would be cool to have a big excuse for avoiding all those obligations. “Dave, come to this holiday party!” “Sorry, I’m writing a novel.” “Dave, come work at the school’s fall carnival!” “Sorry, I’m writing a novel.” “Dave, pay attention to your kids!” “Sorry, I’m writing a novel.” See, that level of self-preservation and pre-emptive boxing out of other responsibilities would be so cool. Like cigarettes cool. Despite not having a novel excuse, I am feeling compelled to wri’ mo’ this month. Whether it’s autumnal ghosts or pumpkin spices, there’s a draw pulling me back to my text editor. A vapor of creativity stolen by corporate dementors and their infernal machines, seeping back into my lifeless shell. Last week I powered through a handful of short stories by Arthur C. Clarke. Vintage sci-fi inspires me. Partly because the experimental short form factor containing a single “ What If? ” thought experiment seems achievable and because most of the stories are complete shit. In a modern world of blockbuster movie adaptations and eight volume octologies, vintage sci-fi sets the bar real low. One story I came across was The Nine Billion Names of God . The audiobook has a sick-ass cover of a skeleton in a cracked space helmet on a dying planet with a giant sun rising in the distance. You can pause this and get through it in ten minutes. Nothing in the story relates to that cover. Rather, the story is about two Western men that work for a fancy computer company that makes the Mark V . They’re hired by a group of Tibetan monks to help them write a program that will procedurally generate the nine billion names of God which they believe will bring about the end of the world. The Mark V will shorten the task of writing down all the possible names of God from 15,000 years of manual writing down to 100 days! Incredible productivity gains! AAABBBAAA AAABBBABA AAABBBACA AAABBBADA AAABBBAEA AAABBBAFA AAABBBAGA AAABBBAHA AAABBBAIA AAABBBAJA AAABBBAAB AAABBBABB AAABBBACB AAABBBADB AAABBBAEB AAABBBAFB AAABBBAGB AAABBBAHB AAABBBAIB AAABBBAJB AAABBBAAC AAABBBABC AAABBBACC AAABBBADC AAABBBAEC AAABBBAFC AAABBBAGC AAABBBAHC AAABBBAIC AAABBBAJC AAABBBAAD AAABBBABD AAABBBACD AAABBBADD AAABBBAED AAABBBAFD AAABBBAGD AAABBBAHD AAABBBAID AAABBBAJD AAABBBAAE AAABBBABE AAABBBACE AAABBBADE AAABBBAEE AAABBBAFE AAABBBAGE AAABBBAHE AAABBBAIE AAABBBAJE AAABBBAAF AAABBBABF AAABBBACF AAABBBADF AAABBBAEF AAABBBAFF AAABBBAGF AAABBBAHF AAABBBAIF AAABBBAJF AAABBBAAG AAABBBABG AAABBBACG AAABBBADG AAABBBAEG AAABBBAFG AAABBBAGG AAABBBAHG AAABBBAIG AAABBBAJG ... ... ... ... ... ... ... ... ... ... THIS STORY HAS NO MODERN DAY PARALLELS. An altruistic sex cult from a specific locale using a mountain of money to hasten the end of the world with their enormous computers that endlessly generate combinations of nonsense words that they believe will summon God… well, that would be a work of cheesy science fiction, not real life. The Nine Billion Names of God flipped a switch in me and has renewed my courage to write more. As someone with ideas about ideas burning holes in my head, it’d be worthwhile to offload some of my cognitive surplus. I don’t have any solid plans, words-per-day goals, charts, graphs, storyboards, outlines, or some Benjamin Franklin life hack schedule to make this happen. Instead I have an Obsidian vault with a hundred unsorted drafts. I don’t want to commit myself to publishing every day, but my goal is to get up and spend thirty minutes to an hour each day writing something . I want to carve out time before work, before doing my puzzles, before doom-scrolling the news. I want to use those premium dopamine reserves –the flavorful floating creme of consciousness that comes from a good night’s sleep, not the metallic bitter dregs distilled from caffeine and stimulants– I want to savor and use that precious natural dopamine on writing. My promise to you, dear reader, is that I will write more this month. I will write no less than nine billion stories and/or blog posts by the end of November. And upon completing my works, I can shed this mortal coil and leave this forsaken world.
AdactioTop Front-end Bloggersread at source
Bad AI doesn’t smell | Clearleft
The best way to avoid AI mistakes is to run research the old-fashioned way; get out there and run research in the field and complete your own analysis of the findings. It may take a little longer, but truly valuable research is worth the effort. adactio.com/links/22825
Adam ArgyleTop Front-end Bloggersread at source
WWW Ep257 Local Engineer Runs Out Of Tokens
Ep #257 Local Engineer Runs Out of Tokens, Discovers "Programming" Robbie and I sip a rye and talk token budgets, Copilot getting yanked mid-workflow, SDD with worktrees, whether frameworks still matter, slop as a choice, Jeff the cliff-diving lawnmower, and Amp as the…
Jens Oliver MeiertTop Front-end Bloggersread at source
How to Upgrade From HTML Minifier 4 to 5
A checklist to work through the breaking changes when updating from HTML Minifier 4.0.0, released in 2019.
Jens Oliver MeiertTop Front-end Bloggersread at source
How to Switch From HTML Minifier Next 9 to HTML Minifier 5
A checklist to move from HTML Minifier Next to HTML Minifier—now maintained again—which is mostly a matter of renaming.
AdactioTop Front-end Bloggersread at source
Twenty years ago today, I signed up for Twitter. Ten years ago, I wrote about the first ten years: https://adactio.com/journal/11436 I can’t say I miss it.
Rachel AndrewTop Front-end Bloggers6 min read
Making features generic in CSS
CSS has two new positional alignment keywords as part of CSS Box Alignment Level 3: flow-start and flow-end. These are defined as aliases for the existing flex-start and flex-end keywords. Therefore, in a supporting browser, the following two lines should align flex items to the end of the flex container (the right assuming you are ... Making features generic in CSS
AdactioTop Front-end Bloggersread at source
Palaces Of The Crow by Ray Nayler
I really liked Ray Nayler’s The Mountain In The Sea . I also liked The Tusks Of Extinction . But reading those back-to-back gave me pause: At times it seems to relish in describing the worst that humanity is capable of. It starts to veer into misanthropy. I said: I hope that the next Ray Nayler book I read won’t tip over into wallowing in the worst of our species. Well, when I cracked open Palaces Of The Crow , my mind was immediately put at ease. And I mean immediately. Before the story even begins, the book opens with two quotes. One is the closing passage of Darwin’s On The Origin Of Species describing “the war of nature”, but the other quote is from Kropotkin: Mutual aid is as much a law of nature as mutual struggle. That sums up the themes of Palaces Of The Crow . On the one hand, we do indeed get the worst that humans are capable of. But on the other hand, we also get not only the best that humans are capable of, but non-humans too. As with The Mountain In The Sea , this is a terrestrial first-contact story. We’ve gone from cephalopods to corvids. And we’ve gone from the near future back to Eastern Europe during the Second World War. I’m always nervous of any piece of popular entertainment that attempts to feature the Holocaust, but I feel that here it’s done with respect. It never comes across as gratuitous. There are four main human characters; a Polish boy in the Soviet army, a Lithuanian Jewish girl, a young boy who never speaks, and a Roma girl. The narrative is set almost entirely within a forest. At times this book reminded me of The Vaster Wilds by Lauren Groff . Both stories feature a young woman trying to survive in the wilderness. But whereas The Vaster Wilds is ultimately a tale of the individual, Palaces Of The Crow is very much a story of the group. And whether that group comprises humans, crows, or both, the message is clear: Social animals are built to survive only among one another. There is a cautionary subplot involving another denizen of the forest who goes it alone. His fate is very different to that of the group. A story of four youngsters in a forest during World War II sounds like it should be a brutal survivalist tale. But Palaces Of The Crow has more in common with Rebecca Solnit’s A Paradise Built In Hell and Rutger Bregman’s Humankind . Towards the end, the text sometimes can’t resist saying the subtext out loud, but this is a minor quibble with what is otherwise a beautifully constructed work. I’m not going to lie, Palaces Of The Crow is absolutely devastating in places. But it’s also life-affirming. I know that sounds trite, but this book is the opposite of trite. It’s visceral and unflinching and beautiful.
remy sharp's b:logTop Front-end Bloggers1 min read
The Memory Police [book]
A weird story. Not quite sure what to make of it! Definitely surreal, and unlike any story I’ve read before. I did find I was trying to make sense of it, wondering if the protagonist was stuck in purgatory, but as the book finished, I don't think that was that was the point. It’s a good story, and engagingly written, but hard to apply to the real world. Although the questions that are repeatedly raised about the idea of memory and how these have different meaning to different people was definitely food for thought. Also worth adding, as surreal as it was, it managed to be equally bleak! A good read, though not quite suited to the poolside holiday I read it from!
QuirksBlogTop Front-end Bloggersread at source
Things AI cannot do
Last week I did my first tests in nearly nine years. I’m planning to redo the viewport tests , and I created a new test page . I also wrote an article about meta viewports that will be published eventually. I thoroughly enjoyed myself and was surprised how easy it was for me to slip back into compatibility testing patterns. My reflexes are still there, but I only test on three mobile devices and that saves some time. Then it occurred to me that, while AI can write my article if I give it notes, it cannot do fundamental browser compatibility research. That’s it. That’s the entire blog post.
Ethan MarcotteTop Front-end Bloggers2 min read
The ship is anchor’d safe and sound.
A favorite actor just passed away.
remy sharp's b:logTop Front-end Bloggers2 min read
My 2027 Web Platform Feature Ranking [blog]
Like my peers, I've decided to publish my personal ranking preference for the 2027 interop project. I'm doing this from a phone, so I can't link to the others that have published theirs, but I think it's interesting to see and compare what we feel is important.
Adam ArgyleTop Front-end Bloggersread at source
Scroll Axis Design System Rule
Design system rule: Y scroll = scroll trigger X scroll = scroll driven
Jens Oliver MeiertTop Front-end Bloggersread at source
Whether AI Will Be Catastrophic for Software Development Depends on Maintenance—and a Decision
Maintenance and intent play the decisive role in how AI will impact software development.
Christian HeilmannTop Front-end Bloggersread at source
Without-love – a creative coding challenge
Calling out an creative coding challenge to win tickets for WeAreDevelopers events. Can you turn Lao Tzu quotes into something cool? And yes, we gave the tasks to AI agents, too.
CSS WizardryTop Front-end Bloggersread at source
Web-Perf Wednesday 015 – Failed Modulepreloads Need to Recover
WebKit fixes failed modulepreloads that could block recovery, while Safari and Firefox improve performance tooling and browser responsiveness.
Christian HeilmannTop Front-end Bloggersread at source
Pardon my dust – re-homing 21 years of blog content of christianheilmann.com
"Currently I am having a lot of SSL problems and performance issues with this blog and the problem is my hosting. So I am re-writing 21 years worth of blogging to another stack and will re-home the content. Watch me."
Brad FrostTop Front-end Bloggers1 min read
Playing My World: Helsinki Cathedral
I'm so happy about this I could cry. For years, I've "played" my visual world: objects, architecture, cityscapes, landscapes, and anything interesting. I map the shapes and patterns I see to shapes and patterns on the fretboard. I make little compositions with those shapes and…
remy sharp's b:logTop Front-end Bloggers1 min read
As You Wake, Break the Shell [book]
Love, grief, connection and plants. This was a really endearing story of love unfolding. Sure, it's a bit twee, but it's a nice change from doom. Solarpunk I think. It makes me smile when I read the touching moments between Cora and Signey. There's a nice technical feature of this book that I've not encountered before. The early chapters are in the 50s, I can't remember exactly, but it might been chapter 52, then the following chapter would be 741, then we might go back to the 50s or continue in the 700s. I've read books that jump back and forth in time, but I find it really hard to keep track, because dates have meaning - whereas the jump in chapters simply indicated we've moved in a significant amount through time. I thought this was a brilliant method. My review is bouncing around quite a bit, but this really lived up to my expectations of a Becky Chambers book (I loved The Long Way to a Small, Angry Planet). There were so many moments I found myself smiling in a way that you might observing a tiny loving moment between two people. There's some interesting ideas brought up, specifically around what life and love is, but also in the context of plants, which did make me think a little (though I don't think that was particularly the purpose). Some of these ideas are similar to the idea that we might kill and eat a cow, but not kill and eat a cat, and the book doesn't try to explain it, but rather points to these contradictions. Also, the way it ends definitely lends itself to a further chapter in the story. I do hope we can follow these characters more (unlike the Wayfarers series which abandoned the characters of each previous book). I loved the story. This was a book that filled my cup.
Jens Oliver MeiertTop Front-end Bloggersread at source
Automatic Internal Linking in WordPress, a Plugin: ntrnllnk
To automatically improve internal links on your WordPress site, consider ntrnllnk to manage in-content links and related posts.
Dave RupertTop Front-end Bloggersread at source
Arc-like automatic picture-in-picture in Chromium
There’s a lot to miss about Arc (RIP), but the feature I miss the most has got to be automatic picture-in-picture. You start a video and when you change tabs to jump to another task, the video anchored itself to the corner of your desktop. Go back to the video tab and it slurps up into the video player area. A perfect experience with no interruption. I switched back to Edge (for work) and missed Auto-PiP a lot. I tried building a custom browser extension to restore the functionality myself but hit a platform limitation with the mix of WebExtensions , PageVisibility , and MediaSession APIs you need to get it to work seamlessly. You had to configure each site in a dropdown and run a script each MediaSession… it asked a lot of the user. There’s been a handful of Chromium flags and experiments to add “Auto-PiP” over the years, but nothing did it as well as Arc did… until… about://flags#browser-initiated-automatic-picture-in-picture Chrome 142 introduced a new browser-initiated-automatic-picture-in-picture flag and it behaves the same as Arc. The browser does all the work popping the video in-and-out when expected. I couldn’t believe this near-exact replica was hiding in plain sight all this time! But I couldn’t use it because the flag didn’t exist in Edge 😭 I started up a couple internal threads about it last year but it went nowhere. When the topic came up again this year, I mentioned to Greg Whitworth , “Y’know there’s a flag in Chrome that does Auto-PiP great…” and that next week the flag showed up in Canary and I’m happy to say it’s available today in mainline Edge 156. If you missed that feature in Arc and didn’t know it existed in Chrome or felt crushed by it not existing in Edge… then head over and turn on the flag today, I think you’ll be happy. The only thing it’s missing for me are the juicy physics-based animations that let you two-finger swipe and throw the picture-in-picture window around and pinch-zoom to resize. But it feels like the bones are there. And it feels like a good time to remind my fellow Edge users that Edge has a little feedback form inside the Three Dots menu > Help and Feedback > Send Feedback.
Jonathan SnookTop Front-end Bloggers2 min read
New iPhone
My social media was abuzz around the launch of the new iPhones. I have a 15 Pro Max and was thinking that the 18 might be the generation I’d make the upgrade for. I used to do every other year but I didn’t see the leaps and bounds in improvements with the 17 to tickle that FOMO…
Jake Archibald's blogTop Front-end Bloggers64 min read
JPEG XL vs AVIF for web use-cases
JPEG XL has landed, but how does it compare?
Zach LeathermanTop Front-end Bloggers1 min read
All of my 300+ browser tabs are beautiful
I am a habitual tab hoarder so I created a Firefox addon to help me manage every one of my very special browser tabs. Sort tabs by oldest, unload them, find duplicates, and consolidate tabs to a single window — buncha useful stuff in there! Download from Mozilla Addons Source…
phpiedTop Front-end Bloggers2 min read
Debugging download initiator
I was recently debugging why an image was being downloaded. In Chrome devtools, in the network panel, the column for "initiator" was pointing to the end of the HTML document. But that wasn't true and I suspect when Chrome gives up on trying to figure out the actual code location, the default is the HTML […]
Human Who CodesTop Front-end Bloggers4 min read
Introducing PR Comment Inbox
PR Comment Inbox helps authors track and respond to every conversation in a busy GitHub pull request.
Kent C. Dodds BlogTop Front-end Bloggersread at source
You Own the Outcome: Product Engineering in the Age of AI
Agents are great at producing code. The valuable work left for you is deciding what should exist, how it should behave, and what you're willing to trade for it.
overreactedTop Front-end Bloggersread at source
How I Vibed a Proof of Conway’s Conjecture
You can just prove things, apparently.
Philip WaltonTop Front-end Bloggersread at source
Modern Web Types
Addy OsmaniTop Front-end Bloggersread at source
Brownfield Agentic Engineering
What it takes to run agents in a codebase older than the team
Una Kravets OnlineTop Front-end Bloggersread at source
Modern CSS theming with light-dark(), contrast-color(), and style queries
Combine three new CSS features to build fully adaptive themed components.
Tim KadlecTop Front-end Bloggersread at source
Losing Focus