Skip to content

Truly independent web browser

1008 B
Raw Blame
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/fieldset-disabled-first-legend-change-ref.html">
<fieldset id="group" disabled>
    <legend><input type="checkbox" checked></legend>
</fieldset>
<script>
    requestAnimationFrame(() => {
        requestAnimationFrame(() => {
            const fragment = document.createDocumentFragment();
            const legend = document.createElement("legend");
            legend.style.display = "none";
            fragment.appendChild(legend);
            const group = document.getElementById("group");
            group.insertBefore(fragment, group.firstChild);
            requestAnimationFrame(() => {
                requestAnimationFrame(() => {
                    if (window.internals)
                        internals.signalTestIsDone("PASS");
                    else
                        document.documentElement.classList.remove("reftest-wait");
                });
            });
        });
    });
</script>
</html>