Your CSS works in the browser. Your linter says one of the elements in it doesn't exist.

That was issue #13064 on Biome, a tool that formats and checks web code. The element was <selectedcontent>, and it's very real. I fixed it in biomejs/biome#13097.

Quick background

Customizable select is the new way to style a <select> dropdown. You opt in with appearance: base-select, and then options can hold real HTML. Inside the select you can add a <button> holding <selectedcontent>, and the browser fills it with a copy of whatever option is chosen.

developermau built a pet picker with it: icon plus name in the list, name only in the closed box. To hide the icon in the closed box they wrote:

selectedcontent .icon { display: none; } 

Biome 2.5.15 flagged it: its noUnknownTypeSelector rule said selectedcontent was an unknown type selector. A type selector is the part of CSS that picks elements by tag name, like p or button. It's handy for catching typos like buton.

The cause: a list, not logic

No clever matching is involved. The rule checks the name against built in lists of HTML, SVG (drawing) and MathML (formula) tags, and also accepts custom elements, which you can spot because their names contain a hyphen (pet-card). Our element failed both checks: no hyphen, and no entry in the HTML list. That was the whole bug.

The fix, and why its position matters

Here's the change:

-pub const HTML_TAGS: [&str; 150] = [ +pub const HTML_TAGS: [&str; 151] = [ // trimmed "select", + "selectedcontent", "selectlist", 

Two things in there. Rust arrays with a written size must hold exactly that many items, so 150 became 151 along with the new name.

The bigger thing is the position. Biome looks names up with a binary search. If you've played "guess my number, higher or lower", you already know it: guess the middle, hear "higher" or "lower", throw away half, repeat. That only works when the list is sorted. A name dropped in the wrong spot can be skipped every time, so it would sit in the list and still be "unknown".

selectedcontent sorts after select (it starts with it) and before selectlist (e beats l at the seventh letter). Biome also has a test, test_selector_types, that checks every pair of neighbours in the list is in order. So getting it wrong would have failed the tests instead of failing silently for users.

Testing it

Biome tests each rule with example files and a saved snapshot of the output. I added selectedcontent and selectedcontent .icon to the rule's valid.css, the file of code it must not report. Before the fix, both lines got flagged. After it, the snapshot is clean.

It was approved and merged by dyc3 on 13 November 2026 and was part of Biome 2.6.8 two days later. Thanks, dyc3!

The lesson

When a tool says something new is "unknown", check whether it's reading from a list before you go hunting for a logic bug. Standards grow, and every tool that knows names from them is carrying a copy that needs updating.

What's the newest HTML or CSS feature your tools still don't understand? I'd love to hear which ones trip people up.

The full story, with all the code, is on my blog: https://ashokramsi.hashnode.dev/biome-selectedcontent