<!DOCTYPE html>
<html class=reftest-wait>
<link rel=author href="mailto:[email protected]">
<link rel=help href="https://github.com/whatwg/html/issues/9799">
<link rel=match href="select-option-images-ref.html">
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<select style="appearance:base-select">
<button>button</button>
<option><img alt="" src="/images/green-16x16.png">green-16x16</option>
<option class=two><img alt="" src="/images/red-16x16.png">red-16x16</option>
</select>
<script>
(async () => {
await test_driver.bless();
const select = document.querySelector('select');
select.showPicker();
// <img> elements should still be rendered after removing and re-appending
const option = document.querySelector('option.two');
option.remove();
select.appendChild(option);
document.documentElement.classList.remove('reftest-wait');
})();
</script>