Shipping Stories · [ 3 min read ]
Simon Willison Ships a Cross-Browser Select Styling Specimen Page
Frustrated by browser-default select boxes, Simon Willison had Claude Fable 5.2 build a specimen page of every styling option, then published his favorite cross-browser CSS block.
Key findings
- Simon Willison published Select Styling Specimens, a page showing all ways to style HTML select boxes
- The page was generated by Claude Fable 5.2 from a single prompt, with the transcript shared publicly
- His preferred fix uses appearance: none plus an inline SVG chevron data URI for the dropdown arrow
- The resulting control renders identically in Chrome, Safari, and Firefox, replacing three divergent defaults
Simon Willison has published Select Styling Specimens, a single page that demonstrates every viable way to style an HTML <select> box — and he built it with one prompt handed to Claude Fable 5.2, whose shared transcript is public.
The prompt was blunt: Build an HTML page that shows all of the ways a select box can be styled, I plan to take screenshots in every desktop and mobile browser. Willison said frustration drove the project: HTML select boxes default to looking different in different browsers, and, in his words, are "quite ugly in Chrome."
Why does one form control need a specimen page?
The differences are not cosmetic trivia. In his comparison screenshot, the same select box renders three ways: Chrome draws it white with a black border, Safari draws it grey with no border at all, and Firefox draws it grey with a black border. The three browsers also size the control slightly differently. Ship one form and your users see three different widgets.
That drift exists because the select control is a native OS-level widget that browsers paint themselves, with minimal CSS authority granted to authors historically. The appearance property changed that: setting it to none strips the browser's chrome and hands the author full control of border, background, and padding. The catch is that stripping the default also removes the dropdown arrow, so the author has to draw a replacement — which is where most hand-rolled attempts get messy across browsers.
What CSS did Willison settle on?
After experimenting with the specimens, he picked a favorite. The block reads:
select {
appearance: none;
color: #1f2933;
padding: 0.5em 2.25em 0.5em 0.75em;
border: 1px solid #c4cbd3;
border-radius: 6px;
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75em center / 0.75em;
}
The mechanism is worth taking apart. appearance: none removes the browser's own rendering. The padding reserves 2.25em of space on the right — room for the arrow that the reset just deleted. That arrow comes back as an inline SVG data URI: a 12-by-8 viewBox containing a single chevron path (M1 1.5l5 5 5-5) stroked in #667085 at 1.5 units, positioned 0.75em from the right edge and vertically centered, scaled to 0.75em. Because the arrow lives in the background layer as pure SVG, it renders identically in every engine, and the hex color is URL-encoded directly into the string (%23667085).
The result, in his before-and-after screenshots: the same control in Chrome, Safari, and Firefox now shows a white field, a rounded 6px grey #c4cbd3 border, and a matching grey chevron — pixel-consistent in all three browsers where the defaults previously diverged in color, border, and size.
What is the takeaway for people shipping with AI?
The workflow is the quiet news here. Willison did not hand-write a style guide; he stated intent and constraints in one sentence, let Claude Fable 5.2 enumerate the options, then applied editorial judgment to pick the winner. The AI produced the search space; the practitioner chose from it. Anyone who has burned an afternoon fighting select styling across Safari and Chrome can lift the finished block, verbatim, from his post.
One prompt, one page, one reusable CSS block — that is the whole trick.
claude.ai (Original)
More from James Calloway
Show full bio
Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.
24 articles