Safari 27 brought the customizable <select> to the iPhone. I wanted to find out whether it's ready to use across browsers, including with VoiceOver. So I built a country picker with a flag and a country code in each option. I hid the flag from screen readers with aria-hidden and tested the picker with VoiceOver in Safari on my iPhone and in several browsers on my Mac.

The select #
An option in a customizable select can contain spans. The flag is an emoji in its own span, hidden from screen readers because the country name already says the same thing:
<label for="country">Country</label>
<select id="country">
<button><selectedcontent></selectedcontent></button>
<option value="FR">
<span class="flag" aria-hidden="true">🇫🇷</span>
<span>France</span>
<span class="code">FR</span>
</option>
<option value="DE">
<span class="flag" aria-hidden="true">🇩🇪</span>
<span>Germany</span>
<span class="code">DE</span>
</option>
</select>
appearance: base-select turns on the new behaviour, on the select and on its picker:
select,
select::picker(select) {
appearance: base-select;
}
selectedcontent {
display: flex;
gap: 0.5rem;
}
The <button> is the closed select. When the selection changes, the browser copies the chosen option's children into <selectedcontent>, so the button mirrors the option. In WebKit the copy is a clone of every child node, aria-hidden included. The gap keeps “France” and “FR” apart on screen.
What VoiceOver says #
I checked it with VoiceOver on my iPhone and Mac in Safari 27.2, and on the Mac in Safari Technology Preview 255 and Chrome 157. These are the captions with France selected:
| Browser | Closed select | Same option in the list |
|---|---|---|
| Safari, iPhone | 🇫🇷 France FR | France FR |
| Safari, Mac | 🇫🇷 France FR | France FR |
| Technology Preview | 🇫🇷 France FR | France FR |
| Chrome | France FR | France FR |
Safari reads the hidden flag. It does that only on the closed select, the part VoiceOver reads every time someone moves through the form. In the list it follows aria-hidden.
Without whitespace between the spans, Safari also runs the words together. JSX removes line breaks next to tags, so JSX written with one span per line renders exactly that. With <span>France</span><span class="code">FR</span>, the closed select reads “🇫🇷FranceFR”, while the gap still shows the two words apart on screen.
I reported the Safari behaviour as WebKit bug 329465.
Where Safari gets the text #
The closed select is a pop-up button for VoiceOver. Its value is not read from the button the page shows. WebKit builds it as a string.
In the branch Safari 27.2 comes from, stringValue() returns the selected option's aria-label, and otherwise its label(). Without a label attribute, that is the option's text, collected from every text node inside it. Only script elements are skipped. The emoji is a text node, so it is part of the value. Whitespace between the spans collapses to one space. Without it, nothing separates “France” and “FR”.
The list is different. There each option is its own menu item in the accessibility tree, and VoiceOver reads it without the aria-hidden flag.
In October, WebKit changed where the value comes from when the select has its own <button> (bug 327000, 323332@main). The value is now the button's text, built by buttonLabelText(). It also appends every text node under the button and skips only scripts, so the result for my select is the same. Technology Preview 255 includes that change, and it read “🇫🇷 France FR” too.
Firefox #
Firefox 160 supports appearance: base-select only behind prefs (MDN, bug 1974787). Without them it shows the ordinary select, where an option is plain text. On my Mac, the closed select showed the flag as part of the name, “🇫🇷 France FR”, and VoiceOver read the same.
With dom.select.customizable_select.enabled turned on, CSS.supports("appearance", "base-select") returned true and Firefox drew the customizable select. VoiceOver announced it as “Country, group”, and I couldn't move into the options.
Workarounds #
For a decorative flag like this one, take it out of the text. The flag can come from CSS instead of a text node. Generated content can carry its own alternative text after a slash, and an empty one keeps it out of what a screen reader hears:
<option value="FR">
<span class="flag" data-flag="🇫🇷"></span>
<span>France</span>
<span class="code">FR</span>
</option>
.flag::before {
content: attr(data-flag) / "";
}
The CSS Generated Content draft defines the part after the slash as the alternative text. With the flag drawn this way, VoiceOver read “Country, France FR, Pop up button, Collapsed” on my iPhone. Safari 27.2 and Technology Preview on the Mac gave the same value, “France FR”. Chrome reads “France FR” with the text flag or the CSS flag.
Images work the same way. An <img> keeps its alternative text in an attribute, not in a text node:
<option value="FR">
<img class="flag" src="flags/fr.svg" alt="">
<span>France</span>
<span class="code">FR</span>
</option>
Safari 27.2, Technology Preview 255 and Chrome gave “France FR”. I left alt empty on purpose. That marks the image as decorative, so the country isn't announced twice.
aria-label on the option is not a safe workaround. In Safari 27.2 it removes the flag, and so does a label attribute, because both are read before the option's text in the code above. I tested them on a shorter option, just the flag and “France”, with aria-label="France" or label="France". Safari 27.2 read “France”. Technology Preview 255 ignores both when the select has a <button>, and it read “🇫🇷 France”.
Both workarounds have the same catch in Firefox. Without the prefs, Firefox 160 shows plain text options, and those don't draw generated content. There the CSS flag disappeared, and so did the image. The select showed “France FR”, and VoiceOver read “France FR, collapsed, pop up button”.
The demo compares the aria-hidden text flag with the CSS flag. In Safari and Chrome they look the same.
Open the demo on its own to test it with a screen reader.
In Chrome 157 this select already works the way I expected, on screen and with VoiceOver. Safari 27.2 gets the list right and reads the hidden flag only on the closed select, which is the bug I filed. In Firefox 160 on my Mac, I couldn't use it yet: without prefs it shows the ordinary select, and with them VoiceOver couldn't reach the options.