blob: c37f3b7d46eb167466588cb3bcd91947f5efc676 [file] [log] [blame]
<head>
<style>
@import url("data:text/css,#test{}");
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function test() {
if (document.styleSheets[0].cssRules[0].styleSheet.parentStyleSheet == document.styleSheets[0])
document.getElementById('test').innerHTML = 'PASS';
}
</script>
<body onload='test()'>
Test that StyleSheet.parentStyleSheet works properly. You should see "PASS" below.
<div id="test">FAIL</div>