Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/the-xhtml-syntax/parsing-xhtml-documents/xml-stylesheet-blocking.xhtml - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="support/simple-style.css?pipe=trickle(d2)"?>
<head>
<script><![CDATA[
window.observedZIndex = getComputedStyle(document.documentElement).zIndex;
]]></script>
<title>xml-stylesheet blocks script execution and rendering</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io" />
<script src="/resources/testharness.js"/>
<script src="/resources/testharnessreport.js"/>
</head>
<body>
<script><![CDATA[
test(function() {
assert_equals(window.observedZIndex, "3", "XML processing instruction should've blocked script execution and rendering");
});
]]></script>
</body>
</html>