| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/link-load-utilities.js"></script> |
| <script> |
| function checkResult() |
| { |
| testPassed("Fired Load event."); |
| shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test"), "rgb(0, 0, 255)" /* blue */); |
| testFinished(); |
| } |
| </script> |
| <link rel="stylesheet" href="resources/stylesheet-with-import.css" onload="checkResult()" onerror="testFailed('Fired Error event. Should have fired Load event.')"> |
| </head> |
| <body> |
| <p>This tests that a Load event is fired at an HTML Link element once all @import'ed stylesheets are loaded by a style sheet. This test PASSED if there are only PASS messages below. Otherwise, it FAILED.</p> |
| <h1 id="test"><!-- Test element --></h1> |
| <pre id="console"></pre> |
| </body> |
| </html> |