Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom/xml-stylesheet-pi-in-doctype.xhtml - WPT Dashboard Interop Dashboard
<!DOCTYPE html [<?xml-stylesheet href="data:text/css,html{z-index: 1}"?>]>
<head>
<title>xml-stylesheet processing instruction in doctype internal subset</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(async () => {
await new Promise(resolve => window.onload = resolve);
assert_equals(getComputedStyle(document.documentElement).zIndex, "auto");
});
</script>
</body>
</html>