blob: f1457c0dcf04d27a52a29fc860e94e81d432e5af [file] [log] [blame]
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Test: alternate stylesheets can be disabled by HTMLLinkElement.disabled if they have the disabled attribute already</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://html.spec.whatwg.org/#attr-link-disabled">
<link rel="match" href="HTMLLinkElement-disabled-alternate-ref.html">
<link title="alt" rel="alternate stylesheet" href="data:text/css,html { background: green }" disabled onload="document.documentElement.className = ''">
<script>
onload = function() {
const link = document.querySelector("link[rel='alternate stylesheet']");
link.disabled = false;
}
</script>