4 <script src=
"../../resources/js-test.js"></script>
5 <!-- This sheet should apply -->
6 <link rel=
"stylesheet" href=
"resources/red.css">
7 <!-- But not this one -->
8 <link rel=
"stylesheet" href=
"resources/green.css" disabled
>
13 description("Adding the 'disabled' attribute to a link element causes it to disable its stylesheet");
14 var testDiv
= document
.querySelector('div#test');
15 shouldBeEqualToString("getComputedStyle(testDiv).backgroundColor", "rgb(255, 0, 0)");
16 var disabledLink
= document
.querySelector('link[disabled]');
17 shouldBeTrue("disabledLink.disabled");