mirror of
https://github.com/servo/servo
synced 2026-05-10 09:02:30 +02:00
32 lines
781 B
HTML
32 lines
781 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<meta charset="utf-8">
|
|
<title>Select rendering invalidation</title>
|
|
<link rel="author" href="mailto:masonf@chromium.org">
|
|
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element">
|
|
<link rel="match" href="select-invalidation-ref.html">
|
|
|
|
<style>
|
|
select {
|
|
color: red;
|
|
}
|
|
</style>
|
|
|
|
<select id=select>
|
|
<option>The down arrow should be green</option>
|
|
<option>value B</option>
|
|
</select>
|
|
|
|
<script>
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
select.style.color = "lime";
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
document.documentElement.classList.remove("reftest-wait");
|
|
});
|
|
});
|
|
});
|
|
});
|
|
</script>
|