Westbrook Johnson

Westbrook Johnson @westbrook

Location:
Brooklyn
Joined:
Jul 7, 2018

Westbrook Johnson
articles - 26 total

Testing with JS is like magic, but is it science?

If that title doesn't get you riled up, I know what will... Last time on "Testing Web...

Learn More 3 1Sep 16 '23

Enter, it screams... I mean, it streams

Have you ever thought to write an event listener like the following? const button =...

Learn More 0 2Jul 28 '23

Testing Web Components with @web/test-runner

So, you write web components and you're interested in expanding the work you put into unit testing...

Learn More 10 1Mar 16 '23

Testing Accessibility with Shadow Roots

Recently, I had the opportunity to discuss the difficulties, learnings, and victories or developing...

Learn More 28 1Feb 22 '22

Who doesn't love some `<slot />`s?

It does seem like I enjoy a good &lt;slot&gt;&lt;/slot&gt;. I mean, look, I wrote about them all the...

Learn More 26 10Nov 24 '21

Some things to know about Lit

When reviewing software with which you have little experience, it's pretty common to attempt to...

Learn More 31 8Oct 4 '21

Doing a FLIP with lit-html@2.0

UPDATE: (20 March 2021) Add support for window.matchMedia('(prefers-reduced-motion: no-preference)')....

Learn More 40 0Dec 29 '20

Mind the `document.activeElement`!

The element that currently has focus in your HTML at any point in time can be accessed as document.ac...

Learn More 39 3Feb 19 '20

Things We did for the First Time in 2019...

Hi, I'm Westbrook and I'm a front-end engineer. 👋🏼 I've been doing this CSS/HTML/JS thing for more...

Learn More 5 4Dec 31 '19

`composed: true` considered harmful?

Disclaimer: it was brought to my attention that in my desire to strike a very click-bait-like pose...

Learn More 66 9Nov 7 '19

Not Another To-Do App: Part 10

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 9 0Oct 1 '19

Not Another To-Do App: Part 9

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 6 0Sep 18 '19

Not Another To-Do App: Part 8

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 6 0Sep 10 '19

Not Another To-Do App: Part 7

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 6 0Sep 6 '19

Not Another To-Do App: Part 6

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 8 0Aug 31 '19

Not Another To-Do App: Part 5

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 8 0Aug 26 '19

Not Another To-Do App: Part 4

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 16 0Aug 25 '19

Not Another To-Do App: Part 3

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 6 0Aug 19 '19

Not Another To-Do App: Part 2

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of....

Learn More 7 0Aug 15 '19

Not Another To-Do App

Getting your hands dirty and feet wet with Open Web Component Recommendations...sort of: Par...

Learn More 32 0Aug 7 '19

Is the Suspense Getting to You?

Learn More 7 1Jul 31 '19

Turning up to Lit

Upgrading from Polymer 2.0 to LitElement

Learn More 10 0Jul 24 '19

Your Portal Content through a LitElement

Now that we can build portal content with shadow DOM and custom elements, let's take advantage of LitElement to make the process even easier!

Learn More 20 3Jul 12 '19

LitElement To-Do App

LitElement To-Do App: And, how it compares to React as well as Vue.

Learn More 34 0Jul 5 '19

Why Would Anyone Use Constructible Stylesheets, Anyways?

Let's learn together what a Constructible Stylesheet is and how they might be used for fun and profit.

Learn More 31 2Jun 12 '19

Your Content in Shadow DOM Portals

Before we had Portals we had Portals, and they were a gift of the framework gods. What does and should an OG Portal look like when brought to you in Vanilla JS?

Learn More 24 0Apr 27 '19