Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / link-disabled-attr-parser.html
blob1ec1ab98d060eacd09987960d1c98959f439a541
1 <!DOCTYPE html>
2 <html>
3 <head>
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>
9 </head>
10 <body>
11 <div id="test"></div>
12 <script>
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");
18 </script>
19 </body>
20 </html>